[03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]accept exits with 9 [03:06:09]New connection [03:06:09]New thread 3067153764 created [03:06:09]Thread 3067297124 joined [03:06:09]Waiting for new connection... [03:06:09] Sock 9.Parse request [03:06:09]Sock 9.Check first char [03:06:09]Sock 9.First char is OK [03:06:09]request: POST /json_proto HTTP/1.0 [03:06:09]Method: POST [03:06:09]URL: /json_proto [03:06:09]Method is POST - this is cgi request [03:06:09]url: /json_proto [03:06:09]query_string will be loaded in cgi processing [03:06:09]execute_cgi json_proto POST (null) [03:06:09]execute_cgi path=json_proto method=POST [03:06:09]POST find Content-Length [03:06:09]Host: 172.17.47.195:8080 [03:06:09]Content-Length: 679 [03:06:09]Content-Type: application/json [03:06:09] [03:06:09]POST finish read [03:06:09]Found Content-Length = 679 [03:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.670, "sum" : 994.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 994.00, "payments": [ { "type": 0, "sum" : 994.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:09]execute_script... [03:06: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)871547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.670, "sum" : 994.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 994.00, "payments": [ { "type": 0, "sum" : 994.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:09]POST & json_proto [03:06:09]process_json_proto [03:06:09]json parsed OK: [03:06:09]protocol is kg_v1.0 [03:06:09]action value=close_receipt [03:06:09]process_action close_receipt [03:06:09]cmd_close_receipt [03:06:09]MH_GetDate [03:06:09]Write to MH i2c: F0 00 00 F0 03 E2 [03:06:09]Write i2c OK [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: F0 [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: F0 09 00 [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: F0 09 00 F0 03 00 A2 89 EF 66 96 2E 95 66 2A [03:06:09]GetLastDocTimeStamp 1726973202 [03:06:09]current date 1726974370 [03:06:09]FM_GetShiftState [03:06:09]SAM_PROTO_GetShiftState [03:06:09]wFMCommunicate request_size=4 [03:06:09]MH_SAM_APDU [03:06:09]CAPDU: 80 13 01 00 [03:06:09]Write to MH i2c: E2 08 00 F1 03 80 13 01 00 00 00 00 00 71 [03:06:09]Write i2c OK [03:06:09]MH_I2C_Read... [03:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:09]Read from MH i2c: E2 [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: E2 0E 00 [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: E2 0E 00 F1 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 34 [03:06:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [03:06:09]wFMCommunicate OK [03:06:09]SAM_PROTO_GetShiftState done [03:06:09]FM_GetShiftState done [03:06:09]opened in 1726964224 [03:06:09]opened+sec_in_day 1727050624 [03:06:09]quantity*price = 99462 [03:06:09]sum+1 = 99464 [03:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 994.00 Внесено: 1000.00 СДАЧА: 6.00 НСП 1% : 8.80 НДС 12% : 105.62 Наличными: 994.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 15 22.09.2024 03:06 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7617 ФПД: 162868937147316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T030610&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7617&fm=162868937147316&tin=02508201610067®Number=0000000000190446&sum=99400 [03:06:10]StoreToDocumentArchive [03:06:10]shift 70 fd 7617 [03:06:10]save to /storage/0070/doc_00007617 [03:06:10]save last doc name /storage/0070/doc_00007617 to /storage/kkm_last_doc_name [03:06:10]save OK [03:06:10]Clear old archive folders... [03:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:06:10]tlvbuf is 00B6F7E0 [03:06:10]SAM_PROTO_ClearQueue [03:06:10]wFMCommunicate request_size=4 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 09 00 00 [03:06:10]Write to MH i2c: E2 08 00 FE 03 80 09 00 00 00 00 00 00 73 [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 03 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [03:06:10]RAPDU: 90 00 [03:06:10]wFMCommunicate OK [03:06:10]SAM_PROTO_ClearQueue done [03:06:10]KKMCreateOFDPacket [03:06:10]OFDProtocolAddRootSTLVToBuf [03:06:10]FM_MakeSignedData [03:06:10]FM_MakeSignedData [03:06:10]SAM_PROTO_SignData [03:06:10]wFMCommunicate request_size=4 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 0D 01 02 [03:06:10]Write to MH i2c: E2 08 00 FF 03 80 0D 01 02 00 00 00 00 7B [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 03 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [03:06:10]RAPDU: 90 00 [03:06:10]wFMCommunicate OK [03:06:10]wFMCommunicate request_size=255 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 87 84 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A2 89 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C1 1D 00 00 35 04 06 00 94 [03:06:10]Write to MH i2c: E2 02 01 00 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 87 84 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A2 89 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C1 1D 00 00 35 04 06 00 94 00 00 6B [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 03 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 03 00 00 04 00 90 00 78 [03:06:10]RAPDU: 90 00 [03:06:10]wFMCommunicate OK [03:06:10]wFMCommunicate request_size=10 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 0D 02 02 05 20 E1 24 C3 B4 [03:06:10]Write to MH i2c: E2 0D 00 01 04 80 0D 02 02 05 00 20 E1 24 C3 B4 00 00 25 [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 03 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [03:06:10]RAPDU: 90 00 [03:06:10]wFMCommunicate OK [03:06:10]wFMCommunicate request_size=4 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 0D 03 02 [03:06:10]Write to MH i2c: E2 08 00 02 04 80 0D 03 02 00 00 00 00 81 [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 0B 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 0B 00 02 04 00 5F 2C F6 F5 8F 13 4E 87 90 00 6F [03:06:10]RAPDU: 5F 2C F6 F5 8F 13 4E 87 90 00 [03:06:10]wFMCommunicate OK [03:06:10]SAM_PROTO_SignData done [03:06:10]FM_MakeSignedData done [03:06:10]CreateOFDProtocolMessage [03:06:10]wFMCommunicate request_size=4 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 11 00 00 [03:06:10]Write to MH i2c: E2 08 00 03 04 80 11 00 00 00 00 00 00 81 [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 17 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 17 00 03 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D2 [03:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [03:06:10]wFMCommunicate OK [03:06:10]CreateOFDProtocolMessage done [03:06:10]OFDSenderStorePacket 7617 [03:06:10]StoreOFDPacket docnum=7617 [03:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 32 D0 07 01 28 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 4E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 87 84 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A2 89 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C1 1D 00 00 35 04 06 00 94 20 E1 24 C3 B4 5F 2C F6 F5 8F 13 4E 87 [03:06:10]CheckFolder [03:06:10]dirname=/storage/ofd_packets [03:06:10]CheckFolder done [03:06:10]ProducePacketName [03:06:10]name=ofd_packets/00007617 [03:06:10]NVStorageSaveData ofd_packets/00007617 [03:06:10]File name is /storage/ofd_packets/00007617 [03:06:10]Write 301 bytes [03:06:10]NVStorageSaveData done [03:06:10]OFDSenderStorePacket done [03:06:10]KKMCreateOFDPacket done [03:06:10]NVStorageSaveData kkm_last_timestamp [03:06:10]File name is /storage/kkm_last_timestamp [03:06:10]Write 4 bytes [03:06:10]NVStorageSaveData done [03:06:10]ExternCall_PrintAddStr [03:06:10]wPrintStart [03:06:10]Write to MH i2c: 01 00 00 04 04 08 [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: 01 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: 01 07 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: 01 07 00 04 04 00 00 00 00 00 FF 0F 1D [03:06:10]RasterBufferAndPrint [03:06:10]line Счет N : (1)871547 [03:06:10]line ИНН: 02508201610067 [03:06:10]line Контрольно-Кассовый Чек [03:06:10]line ПРОДАЖА [03:06:10]line ТРК (МРК, ГНК) : 43 [03:06:10]line Товар: 2710124130 [03:06:10]line Аи-92-К-5 [03:06:10]line 14.670 * 67.80 [03:06:10]line = 994.63 [03:06:10]line НДС 12% НСП 1% [03:06:10]line > о реализуемом товаре [03:06:10]line ОКРУГЛЕНИЕ: -0.63 [03:06:10]line ИТОГО: 994.00 [03:06:10]line Внесено: 1000.00 [03:06:10]line СДАЧА: 6.00 [03:06:10]line НСП 1% : 8.80 [03:06:10]line НДС 12% : 105.62 [03:06:10]line Наличными: 994.00 [03:06:10]line Безнал.: 0.00 [03:06:10]line Место: АЗС № 137 "Партнер Нефть" [03:06:10]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [03:06:10]line СНО: Общий режим [03:06:10]line Чек 15 22.09.2024 03:06 [03:06:10]line Смена: 70 ФФД: 1.0 [03:06:10]line ЗНМ: 0300000041 [03:06:10]line РНМ: 0000000000190446 [03:06:10]line Версия ККМ: v1.0 [03:06:10]line ФМ: 0000000002094258 [03:06:10]line ФД: 7617 [03:06:10]line ФПД: 162868937147316 [03:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T030610&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7617&fm=162868937147316&tin=02508201610067®Number=0000000000190446&sum=99400 [03:06:11]OFD Sender: Processing packet 7617 [packets to send 51, broken 50] [03:06:11]ProducePacketName [03:06:11]name=ofd_packets/00007617 [03:06:11]OFD Sender: To server: pG, [03:06:11]CommunicateWithHost lk.salyk.kg:30040 [03:06:11]ConnectInit lk.salyk.kg [03:06:11]written 0, free lines is 4095 [03:06:11]Write to MH i2c: 01 00 00 2F 04 33 [03:06:11]Write i2c OK [03:06:11]MH_I2C_Read... [03:06:11]Read from MH i2c: 01 [03:06:11]MH_I2C_Read... [03:06:11]Read from MH i2c: 01 07 00 [03:06:11]MH_I2C_Read... [03:06:11]Read from MH i2c: 01 07 00 2F 04 00 00 00 00 00 F3 0C 39 [03:06:11]RasterBufferAndPrint [03:06:11]line [03:06:11]line [03:06:11]line [03:06:11]line [03:06:11]line [03:06:11]written 0, free lines is 3321 [03:06:11]MH_Cut [03:06:11]Write to MH i2c: D1 01 00 36 04 01 0C [03:06:11]Write i2c OK [03:06:11]MH_I2C_Read... [03:06:11]Read from MH i2c: D1 [03:06:11]MH_I2C_Read... [03:06:11]Read from MH i2c: D1 01 00 [03:06:11]MH_I2C_Read... [03:06:11]Read from MH i2c: D1 01 00 36 04 00 0B [03:06:11]Write to MH i2c: 01 00 00 37 04 3B [03:06:11]Write i2c OK [03:06:11]MH_I2C_Read... [03:06:12]*** Cut start [03:06:12]*** Purtial cut [03:06:12]*** Stage 1: CUTSNS_PIN = 1 [03:06:12]Read from MH i2c: 01 [03:06:12]MH_I2C_Read... [03:06:12]*** Stop cut motor [03:06:12]*** Cut end [03:06:12]Read from MH i2c: 01 07 00 [03:06:12]MH_I2C_Read... [03:06:12]Read from MH i2c: 01 07 00 37 04 00 00 00 00 00 FF 0F 50 [03:06:12]process_action close_receipt done [03:06:12]requested_data is exist [03:06:12]produce_requested_data [03:06:12]requested_item fm.sn is exist - process it [03:06:12]wFMCommunicate request_size=4 [03:06:12]MH_SAM_APDU [03:06:12]CAPDU: 80 11 00 00 [03:06:12]Write to MH i2c: E2 08 00 38 04 80 11 00 00 00 00 00 00 B6 [03:06:12]Write i2c OK [03:06:12]MH_I2C_Read... [03:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:12]Read from MH i2c: E2 [03:06:12]MH_I2C_Read... [03:06:12]Read from MH i2c: E2 17 00 [03:06:12]MH_I2C_Read... [03:06:12]Read from MH i2c: E2 17 00 38 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 07 [03:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [03:06:12]wFMCommunicate OK [03:06:12]requested_item fd.num is exist - process it [03:06:12]SAM_PROTO_GetFieldsCounters [03:06:12]wFMCommunicate request_size=4 [03:06:12]MH_SAM_APDU [03:06:12]CAPDU: 80 13 00 00 [03:06:12]Write to MH i2c: E2 08 00 39 04 80 13 00 00 00 00 00 00 B9 [03:06:12]Write i2c OK [03:06:12]MH_I2C_Read... [03:06:12]Connected sock=7 [03:06:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 32 D0 07 01 28 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 4E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 87 84 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A2 89 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C1 1D 00 00 35 04 06 00 94 20 E1 24 C3 B4 5F 2C F6 F5 8F 13 4E 87 [03:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:06:12]Read from MH i2c: E2 [03:06:12]MH_I2C_Read... [03:06:12]Read from MH i2c: E2 62 00 [03:06:12]MH_I2C_Read... [03:06:12]Read from MH i2c: E2 62 00 39 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C1 1D 00 00 0E 04 04 00 46 00 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 28 [03:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C1 1D 00 00 0E 04 04 00 46 00 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 [03:06:12]wFMCommunicate OK [03:06:12]SAM_PROTO_GetFieldsCounters done [03:06:12]requested_item shift.num is exist - process it [03:06:12]requested_item shift.opened is exist - process it [03:06:12]req_shift_opened [03:06:12]FM_GetShiftState [03:06:12]SAM_PROTO_GetShiftState [03:06:12]wFMCommunicate request_size=4 [03:06:12]MH_SAM_APDU [03:06:12]CAPDU: 80 13 01 00 [03:06:12]Write to MH i2c: E2 08 00 3A 04 80 13 01 00 00 00 00 00 BB [03:06:12]Write i2c OK [03:06:12]MH_I2C_Read... [03:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:12]Read from MH i2c: E2 [03:06:12]MH_I2C_Read... [03:06:12]Read from MH i2c: E2 0E 00 [03:06:12]MH_I2C_Read... [03:06:12]Read from MH i2c: E2 0E 00 3A 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 7E [03:06:12]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [03:06:12]wFMCommunicate OK [03:06:12]SAM_PROTO_GetShiftState done [03:06:12]FM_GetShiftState done [03:06:12]req_shift_opened done [03:06:12]requested_item shift.open_date is exist - process it [03:06:12]req_shift_open_date [03:06:12]req_shift_open_date done [03:06:12]produce_requested_data done [03:06:12]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7617,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [03:06:12]process_action_free close_receipt [03:06:12]json_value_free [03:06:12]json_value_free done [03:06:12]process_json_proto returns [03:06:12]Send response to host [03:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7617,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [03:06:12]free response buf [03:06:12]execute_script done [03:06:12]execute_script returns [03:06:12]free content buf [03:06:12]Sock 9.Close socket [03:06:12]Sock 9.Thread stoped [03:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 EE 2B 47 00 4B 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 32 30 39 34 32 35 38 10 04 04 00 C1 1D 00 00 F4 03 04 00 63 34 EF 66 B6 04 01 00 00 D8 58 34 09 E3 78 6A F9 [03:06:12]CommunicateWithHost err = 0 [03:06:12]CheckOFDResponse [03:06:12]1017 (14) - 77093643461234 [03:06:12]1041 (16) - 0000000002094258 [03:06:12]1040 (4) - 7617 [03:06:12]1012 (4) - 21.09.2024 21:02 [03:06:12]1206 (1) - 0 [03:06:12]OFD Sender: Remove packet 7617 [03:06:12]ProducePacketName [03:06:12]name=ofd_packets/00007617 [03:06:12]NVStorageDeleteData [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:06]ConnectInit Can't connect to host [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:16]recv_with_timeout no data received [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:27]recv_with_timeout no data received [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:46]recv_with_timeout no data received [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:01]recv_with_timeout no data received [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:32]recv_with_timeout no data received [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:40]recv_with_timeout no data received [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:56]recv_with_timeout no data received [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:18]recv_with_timeout no data received [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:43]recv_with_timeout no data received [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:58]recv_with_timeout no data received [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:13]recv_with_timeout no data received [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:41]recv_with_timeout no data received [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:45]recv_with_timeout no data received [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:41:55]recv_with_timeout no data received [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:38]recv_with_timeout no data received [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:24]recv_with_timeout no data received [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:36]recv_with_timeout no data received [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:23]recv_with_timeout no data received [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:32]accept exits with 10 [03:53:32]New connection [03:53:32]New thread 3067297124 created [03:53:32]Thread 3067153764 joined [03:53:32]Waiting for new connection... [03:53:32] Sock 10.Parse request [03:53:32]Sock 10.Check first char [03:53:32]Sock 10.First char is OK [03:53:32]request: POST /json_proto HTTP/1.0 [03:53:32]Method: POST [03:53:32]URL: /json_proto [03:53:32]Method is POST - this is cgi request [03:53:32]url: /json_proto [03:53:32]query_string will be loaded in cgi processing [03:53:32]execute_cgi json_proto POST (null) [03:53:32]execute_cgi path=json_proto method=POST [03:53:32]POST find Content-Length [03:53:32]Host: 172.17.47.195:8080 [03:53:32]Content-Length: 687 [03:53:32]Content-Type: application/json [03:53:32] [03:53:32]POST finish read [03:53:32]Found Content-Length = 687 [03:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:53:32]execute_script... [03:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:53:32]POST & json_proto [03:53:32]process_json_proto [03:53:32]json parsed OK: [03:53:32]protocol is kg_v1.0 [03:53:32]action value=close_receipt [03:53:32]process_action close_receipt [03:53:32]cmd_close_receipt [03:53:32]MH_GetDate [03:53:32]Write to MH i2c: F0 00 00 3B 04 2E [03:53:32]Write i2c OK [03:53:32]MH_I2C_Read... [03:53:32]Read from MH i2c: F0 [03:53:32]MH_I2C_Read... [03:53:32]Read from MH i2c: F0 09 00 [03:53:32]MH_I2C_Read... [03:53:32]Read from MH i2c: F0 09 00 3B 04 00 BE 94 EF 66 96 2E 95 66 9D [03:53:32]GetLastDocTimeStamp 1726974370 [03:53:32]current date 1726977214 [03:53:32]FM_GetShiftState [03:53:32]SAM_PROTO_GetShiftState [03:53:32]wFMCommunicate request_size=4 [03:53:32]MH_SAM_APDU [03:53:32]CAPDU: 80 13 01 00 [03:53:32]Write to MH i2c: E2 08 00 3C 04 80 13 01 00 00 00 00 00 BD [03:53:32]Write i2c OK [03:53:32]MH_I2C_Read... [03:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:53:32]Read from MH i2c: E2 [03:53:32]MH_I2C_Read... [03:53:32]Read from MH i2c: E2 0E 00 [03:53:32]MH_I2C_Read... [03:53:32]Read from MH i2c: E2 0E 00 3C 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 80 [03:53:32]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [03:53:32]wFMCommunicate OK [03:53:32]SAM_PROTO_GetShiftState done [03:53:32]FM_GetShiftState done [03:53:32]opened in 1726964224 [03:53:32]opened+sec_in_day 1727050624 [03:53:32]quantity*price = 250012 [03:53:32]sum+1 = 250013 [03:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 16 22.09.2024 03:53 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7618 ФПД: 206870118825037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T035334&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7618&fm=206870118825037&tin=02508201610067®Number=0000000000190446&sum=250000 [03:53:34]StoreToDocumentArchive [03:53:34]shift 70 fd 7618 [03:53:34]save to /storage/0070/doc_00007618 [03:53:34]save last doc name /storage/0070/doc_00007618 to /storage/kkm_last_doc_name [03:53:34]save OK [03:53:34]Clear old archive folders... [03:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:53:34]tlvbuf is 00B9A920 [03:53:34]SAM_PROTO_ClearQueue [03:53:34]wFMCommunicate request_size=4 [03:53:34]MH_SAM_APDU [03:53:34]CAPDU: 80 09 00 00 [03:53:34]Write to MH i2c: E2 08 00 49 04 80 09 00 00 00 00 00 00 BF [03:53:34]Write i2c OK [03:53:34]MH_I2C_Read... [03:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:53:34]Read from MH i2c: E2 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 03 00 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [03:53:34]RAPDU: 90 00 [03:53:34]wFMCommunicate OK [03:53:34]SAM_PROTO_ClearQueue done [03:53:34]KKMCreateOFDPacket [03:53:34]OFDProtocolAddRootSTLVToBuf [03:53:34]FM_MakeSignedData [03:53:34]FM_MakeSignedData [03:53:34]SAM_PROTO_SignData [03:53:34]wFMCommunicate request_size=4 [03:53:34]MH_SAM_APDU [03:53:34]CAPDU: 80 0D 01 02 [03:53:34]Write to MH i2c: E2 08 00 4A 04 80 0D 01 02 00 00 00 00 C7 [03:53:34]Write i2c OK [03:53:34]MH_I2C_Read... [03:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:53:34]Read from MH i2c: E2 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 03 00 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [03:53:34]RAPDU: 90 00 [03:53:34]wFMCommunicate OK [03:53:34]wFMCommunicate request_size=255 [03:53:34]MH_SAM_APDU [03:53:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BE 94 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C2 1D 00 00 35 04 06 00 [03:53:34]Write to MH i2c: E2 02 01 4B 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 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BE 94 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C2 1D 00 00 35 04 06 00 00 00 6D [03:53:34]Write i2c OK [03:53:34]MH_I2C_Read... [03:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:53:34]Read from MH i2c: E2 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 03 00 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [03:53:34]RAPDU: 90 00 [03:53:34]wFMCommunicate OK [03:53:34]wFMCommunicate request_size=11 [03:53:34]MH_SAM_APDU [03:53:34]CAPDU: 80 0D 02 02 06 BC 25 B3 F2 7C 4D [03:53:34]Write to MH i2c: E2 0E 00 4C 04 80 0D 02 02 06 00 BC 25 B3 F2 7C 4D 00 00 25 [03:53:34]Write i2c OK [03:53:34]MH_I2C_Read... [03:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:53:34]Read from MH i2c: E2 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 03 00 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [03:53:34]RAPDU: 90 00 [03:53:34]wFMCommunicate OK [03:53:34]wFMCommunicate request_size=4 [03:53:34]MH_SAM_APDU [03:53:34]CAPDU: 80 0D 03 02 [03:53:34]Write to MH i2c: E2 08 00 4D 04 80 0D 03 02 00 00 00 00 CC [03:53:34]Write i2c OK [03:53:34]MH_I2C_Read... [03:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:53:34]Read from MH i2c: E2 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 0B 00 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 0B 00 4D 04 00 A0 96 66 68 79 AE 5C F1 90 00 45 [03:53:34]RAPDU: A0 96 66 68 79 AE 5C F1 90 00 [03:53:34]wFMCommunicate OK [03:53:34]SAM_PROTO_SignData done [03:53:34]FM_MakeSignedData done [03:53:34]CreateOFDProtocolMessage [03:53:34]wFMCommunicate request_size=4 [03:53:34]MH_SAM_APDU [03:53:34]CAPDU: 80 11 00 00 [03:53:34]Write to MH i2c: E2 08 00 4E 04 80 11 00 00 00 00 00 00 CC [03:53:34]Write i2c OK [03:53:34]MH_I2C_Read... [03:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:53:34]Read from MH i2c: E2 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 17 00 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: E2 17 00 4E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 1D [03:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [03:53:34]wFMCommunicate OK [03:53:34]CreateOFDProtocolMessage done [03:53:34]OFDSenderStorePacket 7618 [03:53:34]StoreOFDPacket docnum=7618 [03:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 E0 2E 08 01 1A 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BE 94 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C2 1D 00 00 35 04 06 00 BC 25 B3 F2 7C 4D A0 96 66 68 79 AE 5C F1 [03:53:34]CheckFolder [03:53:34]dirname=/storage/ofd_packets [03:53:34]CheckFolder done [03:53:34]ProducePacketName [03:53:34]name=ofd_packets/00007618 [03:53:34]NVStorageSaveData ofd_packets/00007618 [03:53:34]File name is /storage/ofd_packets/00007618 [03:53:34]Write 302 bytes [03:53:34]NVStorageSaveData done [03:53:34]OFDSenderStorePacket done [03:53:34]KKMCreateOFDPacket done [03:53:34]NVStorageSaveData kkm_last_timestamp [03:53:34]File name is /storage/kkm_last_timestamp [03:53:34]Write 4 bytes [03:53:34]NVStorageSaveData done [03:53:34]ExternCall_PrintAddStr [03:53:34]wPrintStart [03:53:34]Write to MH i2c: 01 00 00 4F 04 53 [03:53:34]Write i2c OK [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: 01 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: 01 07 00 [03:53:34]MH_I2C_Read... [03:53:34]Read from MH i2c: 01 07 00 4F 04 00 00 00 00 00 FF 0F 68 [03:53:34]RasterBufferAndPrint [03:53:34]line Счет N : (1)871548 [03:53:34]line ИНН: 02508201610067 [03:53:34]line Контрольно-Кассовый Чек [03:53:34]line ПРОДАЖА [03:53:34]line ТРК (МРК, ГНК) : 21 [03:53:34]line Товар: 2710194210 [03:53:34]line ДТ(л)-К-4 [03:53:34]line 32.810 * 76.20 [03:53:34]line = 2500.12 [03:53:34]line НДС 12% НСП 1% [03:53:34]line > о реализуемом товаре [03:53:34]line ОКРУГЛЕНИЕ: -0.12 [03:53:34]line ИТОГО: 2500.00 [03:53:34]line Внесено: 2500.00 [03:53:34]line СДАЧА: 0.00 [03:53:34]line НСП 1% : 22.12 [03:53:34]line НДС 12% : 265.50 [03:53:34]line Наличными: 2500.00 [03:53:34]line Безнал.: 0.00 [03:53:34]line Место: АЗС № 137 "Партнер Нефть" [03:53:34]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [03:53:34]line СНО: Общий режим [03:53:34]line Чек 16 22.09.2024 03:53 [03:53:34]line Смена: 70 ФФД: 1.0 [03:53:34]line ЗНМ: 0300000041 [03:53:34]line РНМ: 0000000000190446 [03:53:34]line Версия ККМ: v1.0 [03:53:34]line ФМ: 0000000002094258 [03:53:34]line ФД: 7618 [03:53:34]line ФПД: 206870118825037 [03:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T035334&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7618&fm=206870118825037&tin=02508201610067®Number=0000000000190446&sum=250000 [03:53:34]OFD Sender: Processing packet 7618 [packets to send 51, broken 50] [03:53:34]ProducePacketName [03:53:34]name=ofd_packets/00007618 [03:53:34]OFD Sender: To server: pG, [03:53:34]CommunicateWithHost lk.salyk.kg:30040 [03:53:34]ConnectInit lk.salyk.kg [03:53:34]written 0, free lines is 4095 [03:53:35]Write to MH i2c: 01 00 00 7A 04 7E [03:53:35]Write i2c OK [03:53:35]MH_I2C_Read... [03:53:35]Read from MH i2c: 01 [03:53:35]MH_I2C_Read... [03:53:35]Read from MH i2c: 01 07 00 [03:53:35]MH_I2C_Read... [03:53:35]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 EA 0C 7B [03:53:35]RasterBufferAndPrint [03:53:35]line [03:53:35]line [03:53:35]line [03:53:35]line [03:53:35]line [03:53:35]written 0, free lines is 3312 [03:53:35]MH_Cut [03:53:35]Write to MH i2c: D1 01 00 81 04 01 57 [03:53:35]Write i2c OK [03:53:35]MH_I2C_Read... [03:53:35]Read from MH i2c: D1 [03:53:35]MH_I2C_Read... [03:53:35]Read from MH i2c: D1 01 00 [03:53:35]MH_I2C_Read... [03:53:35]Read from MH i2c: D1 01 00 81 04 00 56 [03:53:35]Write to MH i2c: 01 00 00 82 04 86 [03:53:35]Write i2c OK [03:53:35]MH_I2C_Read... [03:53:36]*** Cut start [03:53:36]*** Purtial cut [03:53:36]*** Stage 1: CUTSNS_PIN = 1 [03:53:36]Read from MH i2c: 01 [03:53:36]MH_I2C_Read... [03:53:36]*** Stop cut motor [03:53:36]*** Cut end [03:53:36]Read from MH i2c: 01 07 00 [03:53:36]MH_I2C_Read... [03:53:36]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [03:53:36]process_action close_receipt done [03:53:36]requested_data is exist [03:53:36]produce_requested_data [03:53:36]requested_item fm.sn is exist - process it [03:53:36]wFMCommunicate request_size=4 [03:53:36]MH_SAM_APDU [03:53:36]CAPDU: 80 11 00 00 [03:53:36]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [03:53:36]Write i2c OK [03:53:36]MH_I2C_Read... [03:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:53:36]Read from MH i2c: E2 [03:53:36]MH_I2C_Read... [03:53:36]Read from MH i2c: E2 17 00 [03:53:36]MH_I2C_Read... [03:53:36]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 52 [03:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [03:53:36]wFMCommunicate OK [03:53:36]requested_item fd.num is exist - process it [03:53:36]SAM_PROTO_GetFieldsCounters [03:53:36]wFMCommunicate request_size=4 [03:53:36]MH_SAM_APDU [03:53:36]CAPDU: 80 13 00 00 [03:53:36]Write to MH i2c: E2 08 00 84 04 80 13 00 00 00 00 00 00 04 [03:53:36]Write i2c OK [03:53:36]MH_I2C_Read... [03:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:53:36]Read from MH i2c: E2 [03:53:36]MH_I2C_Read... [03:53:36]Read from MH i2c: E2 62 00 [03:53:36]MH_I2C_Read... [03:53:36]Read from MH i2c: E2 62 00 84 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C2 1D 00 00 0E 04 04 00 46 00 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 77 [03:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C2 1D 00 00 0E 04 04 00 46 00 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 [03:53:36]wFMCommunicate OK [03:53:36]SAM_PROTO_GetFieldsCounters done [03:53:36]requested_item shift.num is exist - process it [03:53:36]requested_item shift.opened is exist - process it [03:53:36]req_shift_opened [03:53:36]FM_GetShiftState [03:53:36]SAM_PROTO_GetShiftState [03:53:36]wFMCommunicate request_size=4 [03:53:36]MH_SAM_APDU [03:53:36]CAPDU: 80 13 01 00 [03:53:36]Write to MH i2c: E2 08 00 85 04 80 13 01 00 00 00 00 00 06 [03:53:36]Write i2c OK [03:53:36]MH_I2C_Read... [03:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:53:36]Read from MH i2c: E2 [03:53:36]MH_I2C_Read... [03:53:36]Read from MH i2c: E2 0E 00 [03:53:36]MH_I2C_Read... [03:53:36]Read from MH i2c: E2 0E 00 85 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 C9 [03:53:36]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [03:53:36]wFMCommunicate OK [03:53:36]SAM_PROTO_GetShiftState done [03:53:36]FM_GetShiftState done [03:53:36]req_shift_opened done [03:53:36]requested_item shift.open_date is exist - process it [03:53:36]req_shift_open_date [03:53:36]req_shift_open_date done [03:53:36]produce_requested_data done [03:53:36]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7618,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [03:53:36]process_action_free close_receipt [03:53:36]json_value_free [03:53:36]json_value_free done [03:53:36]process_json_proto returns [03:53:36]Send response to host [03:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7618,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [03:53:36]free response buf [03:53:36]execute_script done [03:53:36]execute_script returns [03:53:36]free content buf [03:53:36]Sock 10.Close socket [03:53:36]Sock 10.Thread stoped [03:53:39]ConnectInit Can't take IP for lk.salyk.kg [03:53:39]CommunicateWithHost connect error [03:53:39]CommunicateWithHost err = -1 [03:53:39]OFD Sender: Server communicate error [03:53:43]recv_with_timeout no data received [03:53:44]OFD Sender: Processing packet 7618 [packets to send 51, broken 50] [03:53:44]ProducePacketName [03:53:44]name=ofd_packets/00007618 [03:53:44]OFD Sender: To server: pG, [03:53:44]CommunicateWithHost lk.salyk.kg:30040 [03:53:44]ConnectInit lk.salyk.kg [03:53:45]Connected sock=7 [03:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 E0 2E 08 01 1A 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BE 94 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C2 1D 00 00 35 04 06 00 BC 25 B3 F2 7C 4D A0 96 66 68 79 AE 5C F1 [03:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 9D 40 47 00 B8 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C2 1D 00 00 F4 03 04 00 89 3F EF 66 B6 04 01 00 00 D4 6C EB CF 1F 83 A0 F1 [03:53:46]CommunicateWithHost err = 0 [03:53:46]CheckOFDResponse [03:53:46]1017 (14) - 77093643461234 [03:53:46]1041 (16) - 0000000002094258 [03:53:46]1040 (4) - 7618 [03:53:46]1012 (4) - 21.09.2024 21:50 [03:53:46]1206 (1) - 0 [03:53:46]OFD Sender: Remove packet 7618 [03:53:46]ProducePacketName [03:53:46]name=ofd_packets/00007618 [03:53:46]NVStorageDeleteData [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:54]recv_with_timeout no data received [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:05]recv_with_timeout no data received [03:54:06]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:15]recv_with_timeout no data received [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:47]recv_with_timeout no data received [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:11]accept exits with 9 [03:56:11]New connection [03:56:11]New thread 3067153764 created [03:56:11]Thread 3067297124 joined [03:56:11]Waiting for new connection... [03:56:11] Sock 9.Parse request [03:56:11]Sock 9.Check first char [03:56:11]Sock 9.First char is OK [03:56:11]request: POST /json_proto HTTP/1.0 [03:56:11]Method: POST [03:56:11]URL: /json_proto [03:56:11]Method is POST - this is cgi request [03:56:11]url: /json_proto [03:56:11]query_string will be loaded in cgi processing [03:56:11]execute_cgi json_proto POST (null) [03:56:11]execute_cgi path=json_proto method=POST [03:56:11]POST find Content-Length [03:56:11]Host: 172.17.47.195:8080 [03:56:11]Content-Length: 803 [03:56:11]Content-Type: application/json [03:56:11] [03:56:11]POST finish read [03:56:11]Found Content-Length = 803 [03:56:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 43.500, "sum" : 2949.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2949.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:11]execute_script... [03:56: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)871549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 43.500, "sum" : 2949.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2949.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:11]POST & json_proto [03:56:11]process_json_proto [03:56:11]json parsed OK: [03:56:11]protocol is kg_v1.0 [03:56:11]action value=close_receipt [03:56:11]process_action close_receipt [03:56:11]cmd_close_receipt [03:56:11]MH_GetDate [03:56:11]Write to MH i2c: F0 00 00 86 04 79 [03:56:11]Write i2c OK [03:56:11]MH_I2C_Read... [03:56:11]Read from MH i2c: F0 [03:56:11]MH_I2C_Read... [03:56:11]Read from MH i2c: F0 09 00 [03:56:11]MH_I2C_Read... [03:56:11]Read from MH i2c: F0 09 00 86 04 00 5C 95 EF 66 96 2E 95 66 87 [03:56:11]GetLastDocTimeStamp 1726977214 [03:56:11]current date 1726977372 [03:56:11]FM_GetShiftState [03:56:11]SAM_PROTO_GetShiftState [03:56:11]wFMCommunicate request_size=4 [03:56:11]MH_SAM_APDU [03:56:11]CAPDU: 80 13 01 00 [03:56:11]Write to MH i2c: E2 08 00 87 04 80 13 01 00 00 00 00 00 08 [03:56:11]Write i2c OK [03:56:11]MH_I2C_Read... [03:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:11]Read from MH i2c: E2 [03:56:11]MH_I2C_Read... [03:56:11]Read from MH i2c: E2 0E 00 [03:56:11]MH_I2C_Read... [03:56:11]Read from MH i2c: E2 0E 00 87 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 CB [03:56:11]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [03:56:11]wFMCommunicate OK [03:56:11]SAM_PROTO_GetShiftState done [03:56:11]FM_GetShiftState done [03:56:11]opened in 1726964224 [03:56:11]opened+sec_in_day 1727050624 [03:56:11]quantity*price = 294930 [03:56:11]sum+1 = 294931 [03:56:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2949.30 НСП 1% : 26.10 НДС 12% : 313.20 Наличными: 0.00 Безнал.: 2949.30 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 17 22.09.2024 03:56 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7619 ФПД: 37094347226205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T035612&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7619&fm=37094347226205&tin=02508201610067®Number=0000000000190446&sum=294930 [03:56:12]StoreToDocumentArchive [03:56:12]shift 70 fd 7619 [03:56:12]save to /storage/0070/doc_00007619 [03:56:12]save last doc name /storage/0070/doc_00007619 to /storage/kkm_last_doc_name [03:56:12]save OK [03:56:12]Clear old archive folders... [03:56:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:56:12]tlvbuf is 00B07C50 [03:56:12]SAM_PROTO_ClearQueue [03:56:12]wFMCommunicate request_size=4 [03:56:12]MH_SAM_APDU [03:56:12]CAPDU: 80 09 00 00 [03:56:12]Write to MH i2c: E2 08 00 94 04 80 09 00 00 00 00 00 00 0A [03:56:12]Write i2c OK [03:56:12]MH_I2C_Read... [03:56:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:56:12]Read from MH i2c: E2 [03:56:12]MH_I2C_Read... [03:56:12]Read from MH i2c: E2 03 00 [03:56:12]MH_I2C_Read... [03:56:12]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [03:56:12]RAPDU: 90 00 [03:56:12]wFMCommunicate OK [03:56:12]SAM_PROTO_ClearQueue done [03:56:12]KKMCreateOFDPacket [03:56:12]OFDProtocolAddRootSTLVToBuf [03:56:12]FM_MakeSignedData [03:56:12]FM_MakeSignedData [03:56:12]SAM_PROTO_SignData [03:56:12]wFMCommunicate request_size=4 [03:56:12]MH_SAM_APDU [03:56:12]CAPDU: 80 0D 01 02 [03:56:12]Write to MH i2c: E2 08 00 95 04 80 0D 01 02 00 00 00 00 12 [03:56:12]Write i2c OK [03:56:12]MH_I2C_Read... [03:56:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:56:12]Read from MH i2c: E2 [03:56:12]MH_I2C_Read... [03:56:12]Read from MH i2c: E2 03 00 [03:56:12]MH_I2C_Read... [03:56:12]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [03:56:12]RAPDU: 90 00 [03:56:12]wFMCommunicate OK [03:56:12]wFMCommunicate request_size=255 [03:56:12]MH_SAM_APDU [03:56: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 EC A9 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 12 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 80 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 95 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C3 1D 00 00 35 04 06 00 21 [03:56:12]Write to MH i2c: E2 02 01 96 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 EC A9 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 12 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 80 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 95 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C3 1D 00 00 35 04 06 00 21 00 00 B2 [03:56:12]Write i2c OK [03:56:12]MH_I2C_Read... [03:56:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:12]Read from MH i2c: E2 [03:56:12]MH_I2C_Read... [03:56:12]Read from MH i2c: E2 03 00 [03:56:12]MH_I2C_Read... [03:56:12]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [03:56:12]RAPDU: 90 00 [03:56:12]wFMCommunicate OK [03:56:12]wFMCommunicate request_size=10 [03:56:12]MH_SAM_APDU [03:56:12]CAPDU: 80 0D 02 02 05 BC B3 63 BC 5D [03:56:12]Write to MH i2c: E2 0D 00 97 04 80 0D 02 02 05 00 BC B3 63 BC 5D 00 00 0A [03:56:12]Write i2c OK [03:56:12]MH_I2C_Read... [03:56:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:12]Read from MH i2c: E2 [03:56:12]MH_I2C_Read... [03:56:12]Read from MH i2c: E2 03 00 [03:56:12]MH_I2C_Read... [03:56:12]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [03:56:12]RAPDU: 90 00 [03:56:12]wFMCommunicate OK [03:56:12]wFMCommunicate request_size=4 [03:56:12]MH_SAM_APDU [03:56:12]CAPDU: 80 0D 03 02 [03:56:12]Write to MH i2c: E2 08 00 98 04 80 0D 03 02 00 00 00 00 17 [03:56:12]Write i2c OK [03:56:12]MH_I2C_Read... [03:56:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:56:13]Read from MH i2c: E2 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: E2 0B 00 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: E2 0B 00 98 04 00 C6 D7 DB E3 0A 17 AA 6D 90 00 AB [03:56:13]RAPDU: C6 D7 DB E3 0A 17 AA 6D 90 00 [03:56:13]wFMCommunicate OK [03:56:13]SAM_PROTO_SignData done [03:56:13]FM_MakeSignedData done [03:56:13]CreateOFDProtocolMessage [03:56:13]wFMCommunicate request_size=4 [03:56:13]MH_SAM_APDU [03:56:13]CAPDU: 80 11 00 00 [03:56:13]Write to MH i2c: E2 08 00 99 04 80 11 00 00 00 00 00 00 17 [03:56:13]Write i2c OK [03:56:13]MH_I2C_Read... [03:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:13]Read from MH i2c: E2 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: E2 17 00 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: E2 17 00 99 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 68 [03:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [03:56:13]wFMCommunicate OK [03:56:13]CreateOFDProtocolMessage done [03:56:13]OFDSenderStorePacket 7619 [03:56:13]StoreOFDPacket docnum=7619 [03:56:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D9 D3 07 01 2C 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC A9 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 12 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 80 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 95 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C3 1D 00 00 35 04 06 00 21 BC B3 63 BC 5D C6 D7 DB E3 0A 17 AA 6D [03:56:13]CheckFolder [03:56:13]dirname=/storage/ofd_packets [03:56:13]CheckFolder done [03:56:13]ProducePacketName [03:56:13]name=ofd_packets/00007619 [03:56:13]NVStorageSaveData ofd_packets/00007619 [03:56:13]File name is /storage/ofd_packets/00007619 [03:56:13]Write 301 bytes [03:56:13]NVStorageSaveData done [03:56:13]OFDSenderStorePacket done [03:56:13]KKMCreateOFDPacket done [03:56:13]NVStorageSaveData kkm_last_timestamp [03:56:13]File name is /storage/kkm_last_timestamp [03:56:13]Write 4 bytes [03:56:13]NVStorageSaveData done [03:56:13]ExternCall_PrintAddStr [03:56:13]wPrintStart [03:56:13]Write to MH i2c: 01 00 00 9A 04 9E [03:56:13]Write i2c OK [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: 01 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: 01 07 00 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [03:56:13]RasterBufferAndPrint [03:56:13]line Счет N : (1)871549 [03:56:13]line ИНН: 02508201610067 [03:56:13]line Контрольно-Кассовый Чек [03:56:13]line ПРОДАЖА [03:56:13]line ТРК (МРК, ГНК) : 33 [03:56:13]line Товар: 2710124130 [03:56:13]line Аи-92-К-5 [03:56:13]line 43.500 * 67.80 [03:56:13]line = 2949.30 [03:56:13]line НДС 12% НСП 1% [03:56:13]line > о реализуемом товаре [03:56:13]line ИТОГО: 2949.30 [03:56:13]line НСП 1% : 26.10 [03:56:13]line НДС 12% : 313.20 [03:56:13]line Наличными: 0.00 [03:56:13]line Безнал.: 2949.30 [03:56:13]line Место: АЗС № 137 "Партнер Нефть" [03:56:13]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [03:56:13]line СНО: Общий режим [03:56:13]line Чек 17 22.09.2024 03:56 [03:56:13]line Смена: 70 ФФД: 1.0 [03:56:13]line ЗНМ: 0300000041 [03:56:13]line РНМ: 0000000000190446 [03:56:13]line Версия ККМ: v1.0 [03:56:13]line Платежная система: O! деньги [03:56:13]line ФМ: 0000000002094258 [03:56:13]line ФД: 7619 [03:56:13]line ФПД: 37094347226205 [03:56:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T035612&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7619&fm=37094347226205&tin=02508201610067®Number=0000000000190446&sum=294930 [03:56:13]OFD Sender: Processing packet 7619 [packets to send 51, broken 50] [03:56:13]ProducePacketName [03:56:13]name=ofd_packets/00007619 [03:56:13]OFD Sender: To server: pG, [03:56:13]CommunicateWithHost lk.salyk.kg:30040 [03:56:13]ConnectInit lk.salyk.kg [03:56:13]written 0, free lines is 4095 [03:56:13]Write to MH i2c: 01 00 00 C4 04 C8 [03:56:13]Write i2c OK [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: 01 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: 01 07 00 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FE 0C D9 [03:56:13]RasterBufferAndPrint [03:56:13]line [03:56:13]line [03:56:13]line [03:56:13]line [03:56:13]line [03:56:13]written 0, free lines is 3332 [03:56:13]MH_Cut [03:56:13]Write to MH i2c: D1 01 00 CB 04 01 A1 [03:56:13]Write i2c OK [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: D1 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: D1 01 00 [03:56:13]MH_I2C_Read... [03:56:13]Read from MH i2c: D1 01 00 CB 04 00 A0 [03:56:13]Write to MH i2c: 01 00 00 CC 04 D0 [03:56:13]Write i2c OK [03:56:13]MH_I2C_Read... [03:56:14]*** Cut start [03:56:14]*** Purtial cut [03:56:14]*** Stage 1: CUTSNS_PIN = 1 [03:56:14]Read from MH i2c: 01 [03:56:14]MH_I2C_Read... [03:56:14]*** Stop cut motor [03:56:14]*** Cut end [03:56:14]Read from MH i2c: 01 07 00 [03:56:14]MH_I2C_Read... [03:56:14]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [03:56:14]process_action close_receipt done [03:56:14]requested_data is exist [03:56:14]produce_requested_data [03:56:14]requested_item fm.sn is exist - process it [03:56:14]wFMCommunicate request_size=4 [03:56:14]MH_SAM_APDU [03:56:14]CAPDU: 80 11 00 00 [03:56:14]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [03:56:14]Write i2c OK [03:56:14]MH_I2C_Read... [03:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:14]Read from MH i2c: E2 [03:56:14]MH_I2C_Read... [03:56:14]Read from MH i2c: E2 17 00 [03:56:14]MH_I2C_Read... [03:56:14]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 9C [03:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [03:56:14]wFMCommunicate OK [03:56:14]requested_item fd.num is exist - process it [03:56:14]SAM_PROTO_GetFieldsCounters [03:56:14]wFMCommunicate request_size=4 [03:56:14]MH_SAM_APDU [03:56:14]CAPDU: 80 13 00 00 [03:56:14]Write to MH i2c: E2 08 00 CE 04 80 13 00 00 00 00 00 00 4E [03:56:14]Write i2c OK [03:56:14]MH_I2C_Read... [03:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:56:14]Read from MH i2c: E2 [03:56:14]MH_I2C_Read... [03:56:14]Read from MH i2c: E2 62 00 [03:56:14]MH_I2C_Read... [03:56:14]Read from MH i2c: E2 62 00 CE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C3 1D 00 00 0E 04 04 00 46 00 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 C5 [03:56:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C3 1D 00 00 0E 04 04 00 46 00 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 [03:56:14]wFMCommunicate OK [03:56:14]SAM_PROTO_GetFieldsCounters done [03:56:14]requested_item shift.num is exist - process it [03:56:14]requested_item shift.opened is exist - process it [03:56:14]req_shift_opened [03:56:14]FM_GetShiftState [03:56:14]SAM_PROTO_GetShiftState [03:56:14]wFMCommunicate request_size=4 [03:56:14]MH_SAM_APDU [03:56:14]CAPDU: 80 13 01 00 [03:56:14]Write to MH i2c: E2 08 00 CF 04 80 13 01 00 00 00 00 00 50 [03:56:14]Write i2c OK [03:56:14]MH_I2C_Read... [03:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:15]Read from MH i2c: E2 [03:56:15]MH_I2C_Read... [03:56:15]Read from MH i2c: E2 0E 00 [03:56:15]MH_I2C_Read... [03:56:15]Read from MH i2c: E2 0E 00 CF 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 13 [03:56:15]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [03:56:15]wFMCommunicate OK [03:56:15]SAM_PROTO_GetShiftState done [03:56:15]FM_GetShiftState done [03:56:15]req_shift_opened done [03:56:15]requested_item shift.open_date is exist - process it [03:56:15]req_shift_open_date [03:56:15]req_shift_open_date done [03:56:15]produce_requested_data done [03:56:15]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7619,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [03:56:15]process_action_free close_receipt [03:56:15]json_value_free [03:56:15]json_value_free done [03:56:15]process_json_proto returns [03:56:15]Send response to host [03:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7619,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [03:56:15]free response buf [03:56:15]execute_script done [03:56:15]execute_script returns [03:56:15]free content buf [03:56:15]Sock 9.Close socket [03:56:15]Sock 9.Thread stoped [03:56:15]Connected sock=10 [03:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D9 D3 07 01 2C 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC A9 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 12 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 80 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 95 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C3 1D 00 00 35 04 06 00 21 BC B3 63 BC 5D C6 D7 DB E3 0A 17 AA 6D [03:56:20]recv_with_timeout no data received [03:56:20]CommunicateWithHost answer receiving error [03:56:20]CommunicateWithHost err = -3 [03:56:20]OFD Sender: Server communicate error [03:56:23]recv_with_timeout no data received [03:56:25]OFD Sender: Processing packet 7619 [packets to send 51, broken 50] [03:56:25]ProducePacketName [03:56:25]name=ofd_packets/00007619 [03:56:25]OFD Sender: To server: pG, [03:56:25]CommunicateWithHost lk.salyk.kg:30040 [03:56:25]ConnectInit lk.salyk.kg [03:56:26]Connected sock=9 [03:56:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D9 D3 07 01 2C 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC A9 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 12 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 80 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 95 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C3 1D 00 00 35 04 06 00 21 BC B3 63 BC 5D C6 D7 DB E3 0A 17 AA 6D [03:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 CD D9 47 00 1E 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 32 30 39 34 32 35 38 10 04 04 00 C3 1D 00 00 F4 03 04 00 29 40 EF 66 B6 04 01 00 00 81 14 7F 42 D1 F0 50 51 [03:56:26]CommunicateWithHost err = 0 [03:56:26]CheckOFDResponse [03:56:26]1017 (14) - 77093643461234 [03:56:26]1041 (16) - 0000000002094258 [03:56:26]1040 (4) - 7619 [03:56:26]1012 (4) - 21.09.2024 21:52 [03:56:26]1206 (1) - 0 [03:56:26]OFD Sender: Remove packet 7619 [03:56:26]ProducePacketName [03:56:26]name=ofd_packets/00007619 [03:56:26]NVStorageDeleteData [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:45]recv_with_timeout no data received [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:56:58]recv_with_timeout no data received [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:23]recv_with_timeout no data received [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:05]recv_with_timeout no data received [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:54]accept exits with 7 [03:59:54]New connection [03:59:54]New thread 3067297124 created [03:59:54]Thread 3067153764 joined [03:59:54]Waiting for new connection... [03:59:54] Sock 7.Parse request [03:59:54]Sock 7.Check first char [03:59:54]Sock 7.First char is OK [03:59:54]request: POST /json_proto HTTP/1.0 [03:59:54]Method: POST [03:59:54]URL: /json_proto [03:59:54]Method is POST - this is cgi request [03:59:54]url: /json_proto [03:59:54]query_string will be loaded in cgi processing [03:59:54]execute_cgi json_proto POST (null) [03:59:54]execute_cgi path=json_proto method=POST [03:59:54]POST find Content-Length [03:59:54]Host: 172.17.47.195:8080 [03:59:54]Content-Length: 682 [03:59:54]Content-Type: application/json [03:59:54] [03:59:54]POST finish read [03:59:54]Found Content-Length = 682 [03:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:54]execute_script... [03:59:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:54]POST & json_proto [03:59:54]process_json_proto [03:59:54]json parsed OK: [03:59:54]protocol is kg_v1.0 [03:59:54]action value=close_receipt [03:59:54]process_action close_receipt [03:59:54]cmd_close_receipt [03:59:54]MH_GetDate [03:59:54]Write to MH i2c: F0 00 00 D0 04 C3 [03:59:54]Write i2c OK [03:59:54]MH_I2C_Read... [03:59:54]Read from MH i2c: F0 [03:59:54]MH_I2C_Read... [03:59:54]Read from MH i2c: F0 09 00 [03:59:54]MH_I2C_Read... [03:59:54]Read from MH i2c: F0 09 00 D0 04 00 3B 96 EF 66 96 2E 95 66 B1 [03:59:54]GetLastDocTimeStamp 1726977372 [03:59:54]current date 1726977595 [03:59:54]FM_GetShiftState [03:59:54]SAM_PROTO_GetShiftState [03:59:54]wFMCommunicate request_size=4 [03:59:54]MH_SAM_APDU [03:59:54]CAPDU: 80 13 01 00 [03:59:54]Write to MH i2c: E2 08 00 D1 04 80 13 01 00 00 00 00 00 52 [03:59:54]Write i2c OK [03:59:54]MH_I2C_Read... [03:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:54]Read from MH i2c: E2 [03:59:54]MH_I2C_Read... [03:59:54]Read from MH i2c: E2 0E 00 [03:59:54]MH_I2C_Read... [03:59:54]Read from MH i2c: E2 0E 00 D1 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 15 [03:59:54]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [03:59:54]wFMCommunicate OK [03:59:54]SAM_PROTO_GetShiftState done [03:59:54]FM_GetShiftState done [03:59:54]opened in 1726964224 [03:59:54]opened+sec_in_day 1727050624 [03:59:54]quantity*price = 50063 [03:59:54]sum+1 = 50064 [03:59:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 18 22.09.2024 03:59 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7620 ФПД: 23940403021102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T035956&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7620&fm=23940403021102&tin=02508201610067®Number=0000000000190446&sum=50000 [03:59:55]StoreToDocumentArchive [03:59:55]shift 70 fd 7620 [03:59:55]save to /storage/0070/doc_00007620 [03:59:55]save last doc name /storage/0070/doc_00007620 to /storage/kkm_last_doc_name [03:59:55]save OK [03:59:55]Clear old archive folders... [03:59:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:59:55]tlvbuf is 00B6F3A0 [03:59:55]SAM_PROTO_ClearQueue [03:59:55]wFMCommunicate request_size=4 [03:59:55]MH_SAM_APDU [03:59:55]CAPDU: 80 09 00 00 [03:59:55]Write to MH i2c: E2 08 00 DE 04 80 09 00 00 00 00 00 00 54 [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:59:55]Read from MH i2c: E2 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: E2 03 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [03:59:55]RAPDU: 90 00 [03:59:55]wFMCommunicate OK [03:59:55]SAM_PROTO_ClearQueue done [03:59:55]KKMCreateOFDPacket [03:59:55]OFDProtocolAddRootSTLVToBuf [03:59:55]FM_MakeSignedData [03:59:55]FM_MakeSignedData [03:59:55]SAM_PROTO_SignData [03:59:55]wFMCommunicate request_size=4 [03:59:55]MH_SAM_APDU [03:59:55]CAPDU: 80 0D 01 02 [03:59:55]Write to MH i2c: E2 08 00 DF 04 80 0D 01 02 00 00 00 00 5C [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:59:55]Read from MH i2c: E2 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: E2 03 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: E2 03 00 DF 04 00 90 00 57 [03:59:55]RAPDU: 90 00 [03:59:55]wFMCommunicate OK [03:59:55]wFMCommunicate request_size=255 [03:59:55]MH_SAM_APDU [03:59:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 3C 96 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C4 1D 00 00 35 04 06 00 [03:59:55]Write to MH i2c: E2 02 01 E0 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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 3C 96 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C4 1D 00 00 35 04 06 00 00 00 AD [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:56]Read from MH i2c: E2 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: E2 03 00 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [03:59:56]RAPDU: 90 00 [03:59:56]wFMCommunicate OK [03:59:56]wFMCommunicate request_size=11 [03:59:56]MH_SAM_APDU [03:59:56]CAPDU: 80 0D 02 02 06 15 C6 0F 37 C5 2E [03:59:56]Write to MH i2c: E2 0E 00 E1 04 80 0D 02 02 06 00 15 C6 0F 37 C5 2E 00 00 7F [03:59:56]Write i2c OK [03:59:56]MH_I2C_Read... [03:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:56]Read from MH i2c: E2 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: E2 03 00 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [03:59:56]RAPDU: 90 00 [03:59:56]wFMCommunicate OK [03:59:56]wFMCommunicate request_size=4 [03:59:56]MH_SAM_APDU [03:59:56]CAPDU: 80 0D 03 02 [03:59:56]Write to MH i2c: E2 08 00 E2 04 80 0D 03 02 00 00 00 00 61 [03:59:56]Write i2c OK [03:59:56]MH_I2C_Read... [03:59:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:59:56]Read from MH i2c: E2 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: E2 0B 00 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: E2 0B 00 E2 04 00 57 EF C7 3B C5 A0 ED 80 90 00 7C [03:59:56]RAPDU: 57 EF C7 3B C5 A0 ED 80 90 00 [03:59:56]wFMCommunicate OK [03:59:56]SAM_PROTO_SignData done [03:59:56]FM_MakeSignedData done [03:59:56]CreateOFDProtocolMessage [03:59:56]wFMCommunicate request_size=4 [03:59:56]MH_SAM_APDU [03:59:56]CAPDU: 80 11 00 00 [03:59:56]Write to MH i2c: E2 08 00 E3 04 80 11 00 00 00 00 00 00 61 [03:59:56]Write i2c OK [03:59:56]MH_I2C_Read... [03:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:59:56]Read from MH i2c: E2 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: E2 17 00 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: E2 17 00 E3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 B2 [03:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [03:59:56]wFMCommunicate OK [03:59:56]CreateOFDProtocolMessage done [03:59:56]OFDSenderStorePacket 7620 [03:59:56]StoreOFDPacket docnum=7620 [03:59:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 79 9C 08 01 1A 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 3C 96 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C4 1D 00 00 35 04 06 00 15 C6 0F 37 C5 2E 57 EF C7 3B C5 A0 ED 80 [03:59:56]CheckFolder [03:59:56]dirname=/storage/ofd_packets [03:59:56]CheckFolder done [03:59:56]ProducePacketName [03:59:56]name=ofd_packets/00007620 [03:59:56]NVStorageSaveData ofd_packets/00007620 [03:59:56]File name is /storage/ofd_packets/00007620 [03:59:56]Write 302 bytes [03:59:56]NVStorageSaveData done [03:59:56]OFDSenderStorePacket done [03:59:56]KKMCreateOFDPacket done [03:59:56]NVStorageSaveData kkm_last_timestamp [03:59:56]File name is /storage/kkm_last_timestamp [03:59:56]Write 4 bytes [03:59:56]NVStorageSaveData done [03:59:56]ExternCall_PrintAddStr [03:59:56]wPrintStart [03:59:56]Write to MH i2c: 01 00 00 E4 04 E8 [03:59:56]Write i2c OK [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: 01 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: 01 07 00 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 FF 0F FD [03:59:56]RasterBufferAndPrint [03:59:56]line Счет N : (1)871550 [03:59:56]line ИНН: 02508201610067 [03:59:56]line Контрольно-Кассовый Чек [03:59:56]line ПРОДАЖА [03:59:56]line ТРК (МРК, ГНК) : 54 [03:59:56]line Товар: 2710194210 [03:59:56]line ДТ(л)-К-4 [03:59:56]line 6.570 * 76.20 [03:59:56]line = 500.63 [03:59:56]line НДС 12% НСП 1% [03:59:56]line > о реализуемом товаре [03:59:56]line ОКРУГЛЕНИЕ: -0.63 [03:59:56]line ИТОГО: 500.00 [03:59:56]line Внесено: 500.00 [03:59:56]line СДАЧА: 0.00 [03:59:56]line НСП 1% : 4.43 [03:59:56]line НДС 12% : 53.16 [03:59:56]line Наличными: 500.00 [03:59:56]line Безнал.: 0.00 [03:59:56]line Место: АЗС № 137 "Партнер Нефть" [03:59:56]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [03:59:56]line СНО: Общий режим [03:59:56]line Чек 18 22.09.2024 03:59 [03:59:56]line Смена: 70 ФФД: 1.0 [03:59:56]line ЗНМ: 0300000041 [03:59:56]line РНМ: 0000000000190446 [03:59:56]line Версия ККМ: v1.0 [03:59:56]line ФМ: 0000000002094258 [03:59:56]line ФД: 7620 [03:59:56]line ФПД: 23940403021102 [03:59:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T035956&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7620&fm=23940403021102&tin=02508201610067®Number=0000000000190446&sum=50000 [03:59:56]OFD Sender: Processing packet 7620 [packets to send 51, broken 50] [03:59:56]ProducePacketName [03:59:56]name=ofd_packets/00007620 [03:59:56]OFD Sender: To server: pG, [03:59:56]CommunicateWithHost lk.salyk.kg:30040 [03:59:56]ConnectInit lk.salyk.kg [03:59:56]written 0, free lines is 4095 [03:59:57]Connected sock=9 [03:59:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 79 9C 08 01 1A 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 3C 96 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C4 1D 00 00 35 04 06 00 15 C6 0F 37 C5 2E 57 EF C7 3B C5 A0 ED 80 [03:59:57]Write to MH i2c: 01 00 00 0F 05 14 [03:59:57]Write i2c OK [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: 01 [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: 01 07 00 [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 E9 0C 10 [03:59:57]RasterBufferAndPrint [03:59:57]line [03:59:57]line [03:59:57]line [03:59:57]line [03:59:57]line [03:59:57]written 0, free lines is 3314 [03:59:57]MH_Cut [03:59:57]Write to MH i2c: D1 01 00 16 05 01 ED [03:59:57]Write i2c OK [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: D1 [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: D1 01 00 [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: D1 01 00 16 05 00 EC [03:59:57]Write to MH i2c: 01 00 00 17 05 1C [03:59:57]Write i2c OK [03:59:57]MH_I2C_Read... [03:59:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 2D F9 47 00 84 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C4 1D 00 00 F4 03 04 00 FC 40 EF 66 B6 04 01 00 00 40 2D E7 4F 82 B7 39 56 [03:59:57]CommunicateWithHost err = 0 [03:59:57]CheckOFDResponse [03:59:57]1017 (14) - 77093643461234 [03:59:57]1041 (16) - 0000000002094258 [03:59:57]1040 (4) - 7620 [03:59:57]1012 (4) - 21.09.2024 21:56 [03:59:57]1206 (1) - 0 [03:59:57]OFD Sender: Remove packet 7620 [03:59:57]ProducePacketName [03:59:57]name=ofd_packets/00007620 [03:59:57]NVStorageDeleteData [03:59:57]*** Cut start [03:59:57]*** Purtial cut [03:59:57]*** Stage 1: CUTSNS_PIN = 1 [03:59:58]Read from MH i2c: 01 [03:59:58]MH_I2C_Read... [03:59:58]*** Stop cut motor [03:59:58]*** Cut end [03:59:58]Read from MH i2c: 01 07 00 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: 01 07 00 17 05 00 00 00 00 00 FF 0F 31 [03:59:58]process_action close_receipt done [03:59:58]requested_data is exist [03:59:58]produce_requested_data [03:59:58]requested_item fm.sn is exist - process it [03:59:58]wFMCommunicate request_size=4 [03:59:58]MH_SAM_APDU [03:59:58]CAPDU: 80 11 00 00 [03:59:58]Write to MH i2c: E2 08 00 18 05 80 11 00 00 00 00 00 00 97 [03:59:58]Write i2c OK [03:59:58]MH_I2C_Read... [03:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:59:58]Read from MH i2c: E2 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 17 00 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 17 00 18 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 E8 [03:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [03:59:58]wFMCommunicate OK [03:59:58]requested_item fd.num is exist - process it [03:59:58]SAM_PROTO_GetFieldsCounters [03:59:58]wFMCommunicate request_size=4 [03:59:58]MH_SAM_APDU [03:59:58]CAPDU: 80 13 00 00 [03:59:58]Write to MH i2c: E2 08 00 19 05 80 13 00 00 00 00 00 00 9A [03:59:58]Write i2c OK [03:59:58]MH_I2C_Read... [03:59:58]OFD Sender: No OFD packet to send [03:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:59:58]Read from MH i2c: E2 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 62 00 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 62 00 19 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C4 1D 00 00 0E 04 04 00 46 00 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 15 [03:59:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C4 1D 00 00 0E 04 04 00 46 00 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 [03:59:58]wFMCommunicate OK [03:59:58]SAM_PROTO_GetFieldsCounters done [03:59:58]requested_item shift.num is exist - process it [03:59:58]requested_item shift.opened is exist - process it [03:59:58]req_shift_opened [03:59:58]FM_GetShiftState [03:59:58]SAM_PROTO_GetShiftState [03:59:58]wFMCommunicate request_size=4 [03:59:58]MH_SAM_APDU [03:59:58]CAPDU: 80 13 01 00 [03:59:58]Write to MH i2c: E2 08 00 1A 05 80 13 01 00 00 00 00 00 9C [03:59:58]Write i2c OK [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 [03:59:58]MH_I2C_Read... [03:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:58]Read from MH i2c: E2 0E 00 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 0E 00 1A 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5F [03:59:58]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [03:59:58]wFMCommunicate OK [03:59:58]SAM_PROTO_GetShiftState done [03:59:58]FM_GetShiftState done [03:59:58]req_shift_opened done [03:59:58]requested_item shift.open_date is exist - process it [03:59:58]req_shift_open_date [03:59:58]req_shift_open_date done [03:59:58]produce_requested_data done [03:59:58]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7620,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [03:59:58]process_action_free close_receipt [03:59:58]json_value_free [03:59:58]json_value_free done [03:59:58]process_json_proto returns [03:59:58]Send response to host [03:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7620,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [03:59:58]free response buf [03:59:58]execute_script done [03:59:58]execute_script returns [03:59:58]free content buf [03:59:58]Sock 7.Close socket [03:59:58]Sock 7.Thread stoped [04:00:03]OFD Sender: No OFD packet to send [04:00:05]recv_with_timeout no data received [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:50]accept exits with 10 [04:00:50]New connection [04:00:50]New thread 3067153764 created [04:00:50]Thread 3067297124 joined [04:00:50]Waiting for new connection... [04:00:50] Sock 10.Parse request [04:00:50]Sock 10.Check first char [04:00:50]Sock 10.First char is OK [04:00:50]request: POST /json_proto HTTP/1.0 [04:00:50]Method: POST [04:00:50]URL: /json_proto [04:00:50]Method is POST - this is cgi request [04:00:50]url: /json_proto [04:00:50]query_string will be loaded in cgi processing [04:00:50]execute_cgi json_proto POST (null) [04:00:50]execute_cgi path=json_proto method=POST [04:00:50]POST find Content-Length [04:00:50]Host: 172.17.47.195:8080 [04:00:50]Content-Length: 803 [04:00:50]Content-Type: application/json [04:00:50] [04:00:50]POST finish read [04:00:50]Found Content-Length = 803 [04:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871551", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:00:50]execute_script... [04:00:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871551", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:00:50]POST & json_proto [04:00:50]process_json_proto [04:00:50]json parsed OK: [04:00:50]protocol is kg_v1.0 [04:00:50]action value=close_receipt [04:00:50]process_action close_receipt [04:00:50]cmd_close_receipt [04:00:50]MH_GetDate [04:00:50]Write to MH i2c: F0 00 00 1B 05 0F [04:00:50]Write i2c OK [04:00:50]MH_I2C_Read... [04:00:50]Read from MH i2c: F0 [04:00:50]MH_I2C_Read... [04:00:50]Read from MH i2c: F0 09 00 [04:00:50]MH_I2C_Read... [04:00:50]Read from MH i2c: F0 09 00 1B 05 00 74 96 EF 66 96 2E 95 66 36 [04:00:50]GetLastDocTimeStamp 1726977596 [04:00:50]current date 1726977652 [04:00:50]FM_GetShiftState [04:00:50]SAM_PROTO_GetShiftState [04:00:50]wFMCommunicate request_size=4 [04:00:50]MH_SAM_APDU [04:00:50]CAPDU: 80 13 01 00 [04:00:50]Write to MH i2c: E2 08 00 1C 05 80 13 01 00 00 00 00 00 9E [04:00:50]Write i2c OK [04:00:50]MH_I2C_Read... [04:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:50]Read from MH i2c: E2 [04:00:50]MH_I2C_Read... [04:00:50]Read from MH i2c: E2 0E 00 [04:00:50]MH_I2C_Read... [04:00:50]Read from MH i2c: E2 0E 00 1C 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 61 [04:00:50]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:00:50]wFMCommunicate OK [04:00:50]SAM_PROTO_GetShiftState done [04:00:50]FM_GetShiftState done [04:00:50]opened in 1726964224 [04:00:50]opened+sec_in_day 1727050624 [04:00:50]quantity*price = 100005 [04:00:50]sum+1 = 100006 [04:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 19 22.09.2024 04:00 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7621 ФПД: 176540072946182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T040052&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7621&fm=176540072946182&tin=02508201610067®Number=0000000000190446&sum=100005 [04:00:52]StoreToDocumentArchive [04:00:52]shift 70 fd 7621 [04:00:52]save to /storage/0070/doc_00007621 [04:00:52]save last doc name /storage/0070/doc_00007621 to /storage/kkm_last_doc_name [04:00:52]save OK [04:00:52]Clear old archive folders... [04:00:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:00:52]tlvbuf is 00B6EF10 [04:00:52]SAM_PROTO_ClearQueue [04:00:52]wFMCommunicate request_size=4 [04:00:52]MH_SAM_APDU [04:00:52]CAPDU: 80 09 00 00 [04:00:52]Write to MH i2c: E2 08 00 29 05 80 09 00 00 00 00 00 00 A0 [04:00:52]Write i2c OK [04:00:52]MH_I2C_Read... [04:00:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:00:52]Read from MH i2c: E2 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 03 00 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [04:00:52]RAPDU: 90 00 [04:00:52]wFMCommunicate OK [04:00:52]SAM_PROTO_ClearQueue done [04:00:52]KKMCreateOFDPacket [04:00:52]OFDProtocolAddRootSTLVToBuf [04:00:52]FM_MakeSignedData [04:00:52]FM_MakeSignedData [04:00:52]SAM_PROTO_SignData [04:00:52]wFMCommunicate request_size=4 [04:00:52]MH_SAM_APDU [04:00:52]CAPDU: 80 0D 01 02 [04:00:52]Write to MH i2c: E2 08 00 2A 05 80 0D 01 02 00 00 00 00 A8 [04:00:52]Write i2c OK [04:00:52]MH_I2C_Read... [04:00:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:00:52]Read from MH i2c: E2 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 03 00 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [04:00:52]RAPDU: 90 00 [04:00:52]wFMCommunicate OK [04:00:52]wFMCommunicate request_size=255 [04:00:52]MH_SAM_APDU [04:00: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 74 96 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C5 1D 00 00 35 04 06 00 A0 [04:00:52]Write to MH i2c: E2 02 01 2B 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 74 96 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C5 1D 00 00 35 04 06 00 A0 00 00 F7 [04:00:52]Write i2c OK [04:00:52]MH_I2C_Read... [04:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:52]Read from MH i2c: E2 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 03 00 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [04:00:52]RAPDU: 90 00 [04:00:52]wFMCommunicate OK [04:00:52]wFMCommunicate request_size=10 [04:00:52]MH_SAM_APDU [04:00:52]CAPDU: 80 0D 02 02 05 8F F0 56 2A 06 [04:00:52]Write to MH i2c: E2 0D 00 2C 05 80 0D 02 02 05 00 8F F0 56 2A 06 00 00 BA [04:00:52]Write i2c OK [04:00:52]MH_I2C_Read... [04:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:52]Read from MH i2c: E2 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 03 00 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [04:00:52]RAPDU: 90 00 [04:00:52]wFMCommunicate OK [04:00:52]wFMCommunicate request_size=4 [04:00:52]MH_SAM_APDU [04:00:52]CAPDU: 80 0D 03 02 [04:00:52]Write to MH i2c: E2 08 00 2D 05 80 0D 03 02 00 00 00 00 AD [04:00:52]Write i2c OK [04:00:52]MH_I2C_Read... [04:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:00:52]Read from MH i2c: E2 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 0B 00 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 0B 00 2D 05 00 73 41 B5 9B 87 96 59 2E 90 00 56 [04:00:52]RAPDU: 73 41 B5 9B 87 96 59 2E 90 00 [04:00:52]wFMCommunicate OK [04:00:52]SAM_PROTO_SignData done [04:00:52]FM_MakeSignedData done [04:00:52]CreateOFDProtocolMessage [04:00:52]wFMCommunicate request_size=4 [04:00:52]MH_SAM_APDU [04:00:52]CAPDU: 80 11 00 00 [04:00:52]Write to MH i2c: E2 08 00 2E 05 80 11 00 00 00 00 00 00 AD [04:00:52]Write i2c OK [04:00:52]MH_I2C_Read... [04:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:52]Read from MH i2c: E2 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 17 00 [04:00:52]MH_I2C_Read... [04:00:52]Read from MH i2c: E2 17 00 2E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FE [04:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:00:52]wFMCommunicate OK [04:00:52]CreateOFDProtocolMessage done [04:00:52]OFDSenderStorePacket 7621 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5925691+1721052822=1726978513 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 D1 99 EF 66 96 2E 95 66 7D [04:15:13]Current date/time: 22.09.2024 04:15 [04:15:13]FM_Init [04:15:13]wFMConnect [04:15:13]MH_SAM_On [04:15:13]Write to MH i2c: E0 00 00 08 00 E7 [04:15:13]Write i2c OK [04:15:13]MH_I2C_Read... [04:15:13]*** iso7816_init finished! [04:15:13]*** atr: [04:15:13]*** 0F 3B D5 18 FF 81 91 FE [04:15:13]*** 1F C3 80 73 C8 21 10 0A [04:15:13]*** 00 00 00 00 00 00 00 00 [04:15:13]*** 00 00 00 00 00 00 00 00 [04:15:13]*** 00 00 00 00 00 00 00 00 [04:15:13]*** 00 00 00 00 00 00 00 00 [04:15:13]*** 00 00 00 00 00 00 00 00 [04:15:13]*** 00 00 00 00 00 00 00 00 [04:15:13]Read from MH i2c: E0 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E0 10 00 [04:15:13]MH_I2C_Read... [04:15:13]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 [04:15:13]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [04:15:13]wFMCommunicate request_size=10 [04:15:13]MH_SAM_APDU [04:15:13]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [04:15:13]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [04:15:13]Write i2c OK [04:15:13]MH_I2C_Read... [04:15:13]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [04:15:13]Read from MH i2c: E2 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 03 00 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [04:15:13]RAPDU: 90 00 [04:15:13]wFMCommunicate OK [04:15:13]wFMCommunicate request_size=4 [04:15:13]MH_SAM_APDU [04:15:13]CAPDU: 80 11 00 00 [04:15:13]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [04:15:13]Write i2c OK [04:15:13]MH_I2C_Read... [04:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:15:13]Read from MH i2c: E2 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 17 00 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [04:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:15:13]wFMCommunicate OK [04:15:13]Detected FM SN is 0000000002094258 [04:15:13]Stored FM SN is 0000000002094258 [04:15:13]wFMCommunicate request_size=9 [04:15:13]MH_SAM_APDU [04:15:13]CAPDU: 80 16 00 00 04 BC C2 00 00 [04:15:13]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [04:15:13]Write i2c OK [04:15:13]MH_I2C_Read... [04:15:13]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [04:15:13]Read from MH i2c: E2 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 03 00 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [04:15:13]RAPDU: 90 00 [04:15:13]wFMCommunicate OK [04:15:13]FM PIN OK [04:15:13]wFMCommunicate request_size=8 [04:15:13]MH_SAM_APDU [04:15:13]CAPDU: 80 14 04 00 03 02 00 01 [04:15:13]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [04:15:13]Write i2c OK [04:15:13]MH_I2C_Read... [04:15:13]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [04:15:13]Read from MH i2c: E2 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 03 00 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [04:15:13]RAPDU: 90 00 [04:15:13]wFMCommunicate OK [04:15:13]wFMCommunicate request_size=13 [04:15:13]MH_SAM_APDU [04:15:13]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [04:15:13]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 [04:15:13]Write i2c OK [04:15:13]MH_I2C_Read... [04:15:13]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [04:15:13]Read from MH i2c: E2 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 03 00 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [04:15:13]RAPDU: 90 00 [04:15:13]wFMCommunicate OK [04:15:13]wFMCommunicate request_size=4 [04:15:13]MH_SAM_APDU [04:15:13]CAPDU: 80 11 00 00 [04:15:13]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [04:15:13]Write i2c OK [04:15:13]MH_I2C_Read... [04:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:15:13]Read from MH i2c: E2 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 17 00 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [04:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:15:13]wFMCommunicate OK [04:15:13]DocumentArchiveInit [04:15:13]Start Httpd... [04:15:13]Httpd thread 3067800932 created [04:15:13]Write to MH i2c: 01 00 00 0F 00 0F [04:15:13]Write i2c OK [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: 01 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: 01 07 00 [04:15:13]MH_I2C_Read... [04:15:13]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [04:15:13]MH Int Process started [04:15:13]Allocated Socket 7 [04:15:13]Bind OK [04:15:13]Listen OK [04:15:13]httpd running on port 8080 [04:15:13]Waiting for new connection... [04:15:13]OFD Sender: Processing packet 7621 [packets to send 51, broken 50] [04:15:13]ProducePacketName [04:15:13]name=ofd_packets/00007621 [04:15:13]OFD Sender: To server: pG, [04:15:13]CommunicateWithHost lk.salyk.kg:30040 [04:15:13]ConnectInit lk.salyk.kg [04:15:15]Connected sock=6 [04:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 8E 69 07 01 CD 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 74 96 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C5 1D 00 00 35 04 06 00 A0 8F F0 56 2A 06 73 41 B5 9B 87 96 59 2E [04:15:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 C8 02 47 00 A3 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C5 1D 00 00 F4 03 04 00 91 44 EF 66 B6 04 01 00 00 49 95 F2 01 31 18 3F 3E [04:15:16]CommunicateWithHost err = 0 [04:15:16]CheckOFDResponse [04:15:16]1017 (14) - 77093643461234 [04:15:16]1041 (16) - 0000000002094258 [04:15:16]1040 (4) - 7621 [04:15:16]1012 (4) - 21.09.2024 22:11 [04:15:16]1206 (1) - 0 [04:15:16]OFD Sender: Remove packet 7621 [04:15:16]ProducePacketName [04:15:16]name=ofd_packets/00007621 [04:15:16]NVStorageDeleteData [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:02]accept exits with 8 [04:16:02]New connection [04:16:02]New thread 3067514212 created [04:16:02]Waiting for new connection... [04:16:02] Sock 8.Parse request [04:16:02]Sock 8.Check first char [04:16:02]Sock 8.First char is OK [04:16:02]request: POST /json_proto HTTP/1.0 [04:16:02]Method: POST [04:16:02]URL: /json_proto [04:16:02]Method is POST - this is cgi request [04:16:02]url: /json_proto [04:16:02]query_string will be loaded in cgi processing [04:16:02]execute_cgi json_proto POST (null) [04:16:02]execute_cgi path=json_proto method=POST [04:16:02]POST find Content-Length [04:16:02]Host: 172.17.47.195:8080 [04:16:02]Content-Length: 215 [04:16:02]Content-Type: application/json [04:16:02] [04:16:02]POST finish read [04:16:02]Found Content-Length = 215 [04:16:02]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" ] } } [04:16:02]execute_script... [04:16:02]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" ] } } [04:16:02]POST & json_proto [04:16:02]process_json_proto [04:16:02]json parsed OK: [04:16:02]protocol is kg_v1.0 [04:16:02]action value=get_value [04:16:02]process_action get_value [04:16:02]cmd_get_value [04:16:02]process_action get_value done [04:16:02]requested_data is exist [04:16:02]produce_requested_data [04:16:02]requested_item kkm.sn is exist - process it [04:16:02]requested_item kkm.ver is exist - process it [04:16:02]requested_item fm.sn is exist - process it [04:16:02]wFMCommunicate request_size=4 [04:16:02]MH_SAM_APDU [04:16:02]CAPDU: 80 11 00 00 [04:16:02]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [04:16:02]Write i2c OK [04:16:02]MH_I2C_Read... [04:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:02]Read from MH i2c: E2 [04:16:02]MH_I2C_Read... [04:16:02]Read from MH i2c: E2 17 00 [04:16:02]MH_I2C_Read... [04:16:02]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [04:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:16:02]wFMCommunicate OK [04:16:02]requested_item fd.num is exist - process it [04:16:02]SAM_PROTO_GetFieldsCounters [04:16:02]wFMCommunicate request_size=4 [04:16:02]MH_SAM_APDU [04:16:02]CAPDU: 80 13 00 00 [04:16:02]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [04:16:02]Write i2c OK [04:16:02]MH_I2C_Read... [04:16:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:16:02]Read from MH i2c: E2 [04:16:02]MH_I2C_Read... [04:16:02]Read from MH i2c: E2 62 00 [04:16:02]MH_I2C_Read... [04:16:02]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C5 1D 00 00 0E 04 04 00 46 00 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 0C [04:16:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C5 1D 00 00 0E 04 04 00 46 00 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 [04:16:02]wFMCommunicate OK [04:16:02]SAM_PROTO_GetFieldsCounters done [04:16:02]requested_item shift.num is exist - process it [04:16:02]requested_item shift.opened is exist - process it [04:16:02]req_shift_opened [04:16:02]FM_GetShiftState [04:16:02]SAM_PROTO_GetShiftState [04:16:02]wFMCommunicate request_size=4 [04:16:02]MH_SAM_APDU [04:16:02]CAPDU: 80 13 01 00 [04:16:02]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [04:16:02]Write i2c OK [04:16:02]MH_I2C_Read... [04:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:02]Read from MH i2c: E2 [04:16:02]MH_I2C_Read... [04:16:02]Read from MH i2c: E2 0E 00 [04:16:02]MH_I2C_Read... [04:16:02]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [04:16:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:16:02]wFMCommunicate OK [04:16:02]SAM_PROTO_GetShiftState done [04:16:02]FM_GetShiftState done [04:16:02]req_shift_opened done [04:16:02]requested_item shift.open_date is exist - process it [04:16:02]req_shift_open_date [04:16:02]req_shift_open_date done [04:16:02]produce_requested_data done [04:16:02]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7621,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [04:16:02]process_action_free get_value [04:16:02]json_value_free [04:16:02]json_value_free done [04:16:02]process_json_proto returns [04:16:02]Send response to host [04:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7621,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [04:16:02]free response buf [04:16:02]execute_script done [04:16:02]execute_script returns [04:16:02]free content buf [04:16:02]Sock 8.Close socket [04:16:02]Sock 8.Thread stoped [04:16:07]OFD Sender: No OFD packet to send [04:16:07]accept exits with 10 [04:16:07]New connection [04:16:07]New thread 3067370852 created [04:16:07]Thread 3067514212 joined [04:16:07]Waiting for new connection... [04:16:07] Sock 10.Parse request [04:16:07]Sock 10.Check first char [04:16:07]Sock 10.First char is OK [04:16:07]request: POST /json_proto HTTP/1.0 [04:16:07]Method: POST [04:16:07]URL: /json_proto [04:16:07]Method is POST - this is cgi request [04:16:07]url: /json_proto [04:16:07]query_string will be loaded in cgi processing [04:16:07]execute_cgi json_proto POST (null) [04:16:07]execute_cgi path=json_proto method=POST [04:16:07]POST find Content-Length [04:16:07]Host: 172.17.47.195:8080 [04:16:07]Content-Length: 331 [04:16:07]Content-Type: application/json [04:16:07] [04:16:07]POST finish read [04:16:07]Found Content-Length = 331 [04:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [04:16:07]execute_script... [04:16:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [04:16:07]POST & json_proto [04:16:07]process_json_proto [04:16:07]json parsed OK: [04:16:07]protocol is kg_v1.0 [04:16:07]action value=get_value [04:16:07]process_action get_value [04:16:07]cmd_get_value [04:16:07]process_action get_value done [04:16:07]requested_data is exist [04:16:07]produce_requested_data [04:16:07]requested_item fm.sale.total is exist - process it [04:16:07]SAM_PROTO_GetFMData [04:16:07]wFMCommunicate request_size=4 [04:16:07]MH_SAM_APDU [04:16:07]CAPDU: 80 13 03 00 [04:16:07]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [04:16:07]Write i2c OK [04:16:07]MH_I2C_Read... [04:16:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [04:16:08]Read from MH i2c: E2 [04:16:08]MH_I2C_Read... [04:16:08]Read from MH i2c: E2 FD 00 [04:16:08]MH_I2C_Read... [04:16:08]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 39 1D 00 00 69 04 A0 00 6F 04 04 00 0D 1D 00 00 B1 04 04 00 BB 48 72 30 70 04 04 00 78 71 8E 28 72 04 04 00 43 D7 E3 07 00 04 7C 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 F2 59 25 05 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 0F C7 6D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 1A [04:16:08]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 39 1D 00 00 69 04 A0 00 6F 04 04 00 0D 1D 00 00 B1 04 04 00 BB 48 72 30 70 04 04 00 78 71 8E 28 72 04 04 00 43 D7 E3 07 00 04 7C 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 F2 59 25 05 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 0F C7 6D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 [04:16:08]wFMCommunicate OK [04:16:08]wFMCommunicate request_size=4 [04:16:08]MH_SAM_APDU [04:16:08]CAPDU: 80 17 00 00 [04:16:08]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [04:16:08]Write i2c OK [04:16:08]MH_I2C_Read... [04:16:08]recv_with_timeout no data received [04:16:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:16:08]Read from MH i2c: E2 [04:16:08]MH_I2C_Read... [04:16:08]Read from MH i2c: E2 FD 00 [04:16:08]MH_I2C_Read... [04:16:08]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 AC [04:16:08]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 [04:16:08]wFMCommunicate OK [04:16:08]wFMCommunicate request_size=4 [04:16:08]MH_SAM_APDU [04:16:08]CAPDU: 80 17 00 00 [04:16:08]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [04:16:08]Write i2c OK [04:16:08]MH_I2C_Read... [04:16:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:16:08]Read from MH i2c: E2 [04:16:08]MH_I2C_Read... [04:16:08]Read from MH i2c: E2 FD 00 [04:16:08]MH_I2C_Read... [04:16:08]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [04:16:08]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:16:08]wFMCommunicate OK [04:16:08]wFMCommunicate request_size=4 [04:16:08]MH_SAM_APDU [04:16:08]CAPDU: 80 17 00 00 [04:16:08]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [04:16:08]Write i2c OK [04:16:08]MH_I2C_Read... [04:16:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:16:09]Read from MH i2c: E2 [04:16:09]MH_I2C_Read... [04:16:09]Read from MH i2c: E2 FD 00 [04:16:09]MH_I2C_Read... [04:16:09]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [04:16:09]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:16:09]wFMCommunicate OK [04:16:09]wFMCommunicate request_size=4 [04:16:09]MH_SAM_APDU [04:16:09]CAPDU: 80 17 00 00 [04:16:09]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [04:16:09]Write i2c OK [04:16:09]MH_I2C_Read... [04:16:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [04:16:09]Read from MH i2c: E2 [04:16:09]MH_I2C_Read... [04:16:09]Read from MH i2c: E2 DE 00 [04:16:09]MH_I2C_Read... [04:16:09]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [04:16:09]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:16:09]wFMCommunicate OK [04:16:09]SAM_PROTO_GetFMData done [04:16:09]requested_item fm.sale_refund.total is exist - process it [04:16:09]requested_item fm.buy.total is exist - process it [04:16:09]requested_item shift.sale.total is exist - process it [04:16:09]SAM_PROTO_GetShiftData [04:16:09]wFMCommunicate request_size=4 [04:16:09]MH_SAM_APDU [04:16:09]CAPDU: 80 13 02 00 [04:16:09]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [04:16:09]Write i2c OK [04:16:09]MH_I2C_Read... [04:16:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [04:16:09]Read from MH i2c: E2 [04:16:09]MH_I2C_Read... [04:16:09]Read from MH i2c: E2 FD 00 [04:16:09]MH_I2C_Read... [04:16:09]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 13 00 00 00 69 04 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 BF 76 1A 70 04 03 00 08 70 14 72 04 03 00 B7 06 06 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 B9 CF 02 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 F9 3B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D9 [04:16:09]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 13 00 00 00 69 04 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 BF 76 1A 70 04 03 00 08 70 14 72 04 03 00 B7 06 06 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 B9 CF 02 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 F9 3B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:16:09]wFMCommunicate OK [04:16:09]wFMCommunicate request_size=4 [04:16:09]MH_SAM_APDU [04:16:09]CAPDU: 80 17 00 00 [04:16:09]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [04:16:09]Write i2c OK [04:16:09]MH_I2C_Read... [04:16:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:16:10]Read from MH i2c: E2 [04:16:10]MH_I2C_Read... [04:16:10]Read from MH i2c: E2 FD 00 [04:16:10]MH_I2C_Read... [04:16:10]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 [04:16: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 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:16:10]wFMCommunicate OK [04:16:10]wFMCommunicate request_size=4 [04:16:10]MH_SAM_APDU [04:16:10]CAPDU: 80 17 00 00 [04:16:10]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [04:16:10]Write i2c OK [04:16:10]MH_I2C_Read... [04:16:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:16:10]Read from MH i2c: E2 [04:16:10]MH_I2C_Read... [04:16:10]Read from MH i2c: E2 FD 00 [04:16:10]MH_I2C_Read... [04:16:10]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 [04:16: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 [04:16:10]wFMCommunicate OK [04:16:10]wFMCommunicate request_size=4 [04:16:10]MH_SAM_APDU [04:16:10]CAPDU: 80 17 00 00 [04:16:10]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [04:16:10]Write i2c OK [04:16:10]MH_I2C_Read... [04:16:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:16:10]Read from MH i2c: E2 [04:16:10]MH_I2C_Read... [04:16:10]Read from MH i2c: E2 FD 00 [04:16:10]MH_I2C_Read... [04:16:10]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 [04:16:10]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 [04:16:10]wFMCommunicate OK [04:16:10]wFMCommunicate request_size=4 [04:16:10]MH_SAM_APDU [04:16:10]CAPDU: 80 17 00 00 [04:16:10]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [04:16:10]Write i2c OK [04:16:10]MH_I2C_Read... [04:16:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [04:16:11]Read from MH i2c: E2 [04:16:11]MH_I2C_Read... [04:16:11]Read from MH i2c: E2 CB 00 [04:16:11]MH_I2C_Read... [04:16:11]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 [04:16: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 [04:16:11]wFMCommunicate OK [04:16:11]SAM_PROTO_GetShiftData done [04:16:11]requested_item shift.sale.total_cash is exist - process it [04:16:11]requested_item shift.sale_refund.total is exist - process it [04:16:11]requested_item shift.sale_refund.total_cash is exist - process it [04:16:11]requested_item shift.buy.total is exist - process it [04:16:11]requested_item shift.buy.total_cash is exist - process it [04:16:11]produce_requested_data done [04:16:11]produce_requested_data return {"fm.sale.total":8127960.91,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":17343.35,"shift.sale.total_cash":13394.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} [04:16:11]process_action_free get_value [04:16:11]json_value_free [04:16:11]json_value_free done [04:16:11]process_json_proto returns [04:16:11]Send response to host [04:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8127960.91,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":17343.35,"shift.sale.total_cash":13394.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}}} [04:16:11]free response buf [04:16:11]execute_script done [04:16:11]execute_script returns [04:16:11]free content buf [04:16:11]Sock 10.Close socket [04:16:11]Sock 10.Thread stoped [04:16:11]accept exits with 8 [04:16:11]New connection [04:16:11]New thread 3067514212 created [04:16:11]Thread 3067370852 joined [04:16:11]Waiting for new connection... [04:16:11] Sock 8.Parse request [04:16:11]Sock 8.Check first char [04:16:11]Sock 8.First char is OK [04:16:11]request: POST /json_proto HTTP/1.0 [04:16:11]Method: POST [04:16:11]URL: /json_proto [04:16:11]Method is POST - this is cgi request [04:16:11]url: /json_proto [04:16:11]query_string will be loaded in cgi processing [04:16:11]execute_cgi json_proto POST (null) [04:16:11]execute_cgi path=json_proto method=POST [04:16:11]POST find Content-Length [04:16:11]Host: 172.17.47.195:8080 [04:16:11]Content-Length: 683 [04:16:11]Content-Type: application/json [04:16:11] [04:16:11]POST finish read [04:16:11]Found Content-Length = 683 [04:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:11]execute_script... [04:16: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)871552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:11]POST & json_proto [04:16:11]process_json_proto [04:16:11]json parsed OK: [04:16:11]protocol is kg_v1.0 [04:16:11]action value=close_receipt [04:16:11]process_action close_receipt [04:16:11]cmd_close_receipt [04:16:11]MH_GetDate [04:16:11]Write to MH i2c: F0 00 00 1D 00 0C [04:16:11]Write i2c OK [04:16:11]MH_I2C_Read... [04:16:11]Read from MH i2c: F0 [04:16:11]MH_I2C_Read... [04:16:11]Read from MH i2c: F0 09 00 [04:16:11]MH_I2C_Read... [04:16:11]Read from MH i2c: F0 09 00 1D 00 00 0C 9A EF 66 96 2E 95 66 CF [04:16:11]GetLastDocTimeStamp 1726977652 [04:16:11]current date 1726978572 [04:16:11]FM_GetShiftState [04:16:11]SAM_PROTO_GetShiftState [04:16:11]wFMCommunicate request_size=4 [04:16:11]MH_SAM_APDU [04:16:11]CAPDU: 80 13 01 00 [04:16:11]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [04:16:11]Write i2c OK [04:16:11]MH_I2C_Read... [04:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:11]Read from MH i2c: E2 [04:16:11]MH_I2C_Read... [04:16:11]Read from MH i2c: E2 0E 00 [04:16:11]MH_I2C_Read... [04:16:11]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [04:16:11]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:16:11]wFMCommunicate OK [04:16:11]SAM_PROTO_GetShiftState done [04:16:11]FM_GetShiftState done [04:16:11]opened in 1726964224 [04:16:11]opened+sec_in_day 1727050624 [04:16:11]quantity*price = 90068 [04:16:11]sum+1 = 90069 [04:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 20 22.09.2024 04:16 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7622 ФПД: 104216964070818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T041612&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7622&fm=104216964070818&tin=02508201610067®Number=0000000000190446&sum=90000 [04:16:12]StoreToDocumentArchive [04:16:12]shift 70 fd 7622 [04:16:12]save to /storage/0070/doc_00007622 [04:16:12]save last doc name /storage/0070/doc_00007622 to /storage/kkm_last_doc_name [04:16:12]save OK [04:16:12]Clear old archive folders... [04:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:16:12]tlvbuf is 00223F20 [04:16:12]SAM_PROTO_ClearQueue [04:16:12]wFMCommunicate request_size=4 [04:16:12]MH_SAM_APDU [04:16:12]CAPDU: 80 09 00 00 [04:16:12]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [04:16:12]Write i2c OK [04:16:12]MH_I2C_Read... [04:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:16:12]Read from MH i2c: E2 [04:16:12]MH_I2C_Read... [04:16:12]Read from MH i2c: E2 03 00 [04:16:12]MH_I2C_Read... [04:16:12]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [04:16:12]RAPDU: 90 00 [04:16:12]wFMCommunicate OK [04:16:12]SAM_PROTO_ClearQueue done [04:16:12]KKMCreateOFDPacket [04:16:12]OFDProtocolAddRootSTLVToBuf [04:16:12]FM_MakeSignedData [04:16:12]FM_MakeSignedData [04:16:12]SAM_PROTO_SignData [04:16:12]wFMCommunicate request_size=4 [04:16:12]MH_SAM_APDU [04:16:12]CAPDU: 80 0D 01 02 [04:16:12]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [04:16:12]Write i2c OK [04:16:12]MH_I2C_Read... [04:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:16:12]Read from MH i2c: E2 [04:16:12]MH_I2C_Read... [04:16:12]Read from MH i2c: E2 03 00 [04:16:12]MH_I2C_Read... [04:16:12]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [04:16:12]RAPDU: 90 00 [04:16:12]wFMCommunicate OK [04:16:12]wFMCommunicate request_size=255 [04:16:12]MH_SAM_APDU [04:16:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0C 9A EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C6 1D 00 00 35 04 06 00 [04:16:13]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 34 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0C 9A EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C6 1D 00 00 35 04 06 00 00 00 0F [04:16:13]Write i2c OK [04:16:13]MH_I2C_Read... [04:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:13]Read from MH i2c: E2 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: E2 03 00 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [04:16:13]RAPDU: 90 00 [04:16:13]wFMCommunicate OK [04:16:13]wFMCommunicate request_size=11 [04:16:13]MH_SAM_APDU [04:16:13]CAPDU: 80 0D 02 02 06 5E C8 E7 1F 7D A2 [04:16:13]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 5E C8 E7 1F 7D A2 00 00 FF [04:16:13]Write i2c OK [04:16:13]MH_I2C_Read... [04:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:13]Read from MH i2c: E2 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: E2 03 00 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [04:16:13]RAPDU: 90 00 [04:16:13]wFMCommunicate OK [04:16:13]wFMCommunicate request_size=4 [04:16:13]MH_SAM_APDU [04:16:13]CAPDU: 80 0D 03 02 [04:16:13]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [04:16:13]Write i2c OK [04:16:13]MH_I2C_Read... [04:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:16:13]Read from MH i2c: E2 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: E2 0B 00 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: E2 0B 00 2F 00 00 35 B5 21 96 8D 55 07 37 90 00 6C [04:16:13]RAPDU: 35 B5 21 96 8D 55 07 37 90 00 [04:16:13]wFMCommunicate OK [04:16:13]SAM_PROTO_SignData done [04:16:13]FM_MakeSignedData done [04:16:13]CreateOFDProtocolMessage [04:16:13]wFMCommunicate request_size=4 [04:16:13]MH_SAM_APDU [04:16:13]CAPDU: 80 11 00 00 [04:16:13]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [04:16:13]Write i2c OK [04:16:13]MH_I2C_Read... [04:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:13]Read from MH i2c: E2 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: E2 17 00 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [04:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:16:13]wFMCommunicate OK [04:16:13]CreateOFDProtocolMessage done [04:16:13]OFDSenderStorePacket 7622 [04:16:13]StoreOFDPacket docnum=7622 [04:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 CF 6E 08 01 FA 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0C 9A EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C6 1D 00 00 35 04 06 00 5E C8 E7 1F 7D A2 35 B5 21 96 8D 55 07 37 [04:16:13]CheckFolder [04:16:13]dirname=/storage/ofd_packets [04:16:13]CheckFolder done [04:16:13]ProducePacketName [04:16:13]name=ofd_packets/00007622 [04:16:13]NVStorageSaveData ofd_packets/00007622 [04:16:13]File name is /storage/ofd_packets/00007622 [04:16:13]Write 302 bytes [04:16:13]NVStorageSaveData done [04:16:13]OFDSenderStorePacket done [04:16:13]KKMCreateOFDPacket done [04:16:13]NVStorageSaveData kkm_last_timestamp [04:16:13]File name is /storage/kkm_last_timestamp [04:16:13]Write 4 bytes [04:16:13]NVStorageSaveData done [04:16:13]ExternCall_PrintAddStr [04:16:13]wPrintStart [04:16:13]Write to MH i2c: 01 00 00 31 00 31 [04:16:13]Write i2c OK [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: 01 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: 01 07 00 [04:16:13]MH_I2C_Read... [04:16:13]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [04:16:13]RasterBufferAndPrint [04:16:13]line Счет N : (1)871552 [04:16:13]OFD Sender: Processing packet 7622 [packets to send 51, broken 50] [04:16:13]ProducePacketName [04:16:13]name=ofd_packets/00007622 [04:16:13]OFD Sender: To server: pG, [04:16:13]CommunicateWithHost lk.salyk.kg:30040 [04:16:13]ConnectInit lk.salyk.kg [04:16:13]line ИНН: 02508201610067 [04:16:13]line Контрольно-Кассовый Чек [04:16:13]line ПРОДАЖА [04:16:13]line ТРК (МРК, ГНК) : 21 [04:16:13]line Товар: 2710194210 [04:16:13]line ДТ(л)-К-4 [04:16:13]line 11.820 * 76.20 [04:16:13]line = 900.68 [04:16:13]line НДС 12% НСП 1% [04:16:13]line > о реализуемом товаре [04:16:13]line ОКРУГЛЕНИЕ: -0.68 [04:16:13]line ИТОГО: 900.00 [04:16:13]line Внесено: 900.00 [04:16:13]line СДАЧА: 0.00 [04:16:13]line НСП 1% : 7.97 [04:16:13]line НДС 12% : 95.65 [04:16:13]line Наличными: 900.00 [04:16:13]line Безнал.: 0.00 [04:16:13]line Место: АЗС № 137 "Партнер Нефть" [04:16:13]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [04:16:13]line СНО: Общий режим [04:16:13]line Чек 20 22.09.2024 04:16 [04:16:13]line Смена: 70 ФФД: 1.0 [04:16:13]line ЗНМ: 0300000041 [04:16:13]line РНМ: 0000000000190446 [04:16:13]line Версия ККМ: v1.0 [04:16:13]line ФМ: 0000000002094258 [04:16:13]line ФД: 7622 [04:16:13]line ФПД: 104216964070818 [04:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T041612&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7622&fm=104216964070818&tin=02508201610067®Number=0000000000190446&sum=90000 [04:16:13]written 0, free lines is 4095 [04:16:14]Write to MH i2c: 01 00 00 5C 00 5C [04:16:14]Write i2c OK [04:16:14]MH_I2C_Read... [04:16:14]Read from MH i2c: 01 [04:16:14]MH_I2C_Read... [04:16:14]Read from MH i2c: 01 07 00 [04:16:14]MH_I2C_Read... [04:16:14]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F0 0C 5F [04:16:14]RasterBufferAndPrint [04:16:14]line [04:16:14]line [04:16:14]line [04:16:14]line [04:16:14]line [04:16:14]written 0, free lines is 3330 [04:16:14]MH_Cut [04:16:14]Write to MH i2c: D1 01 00 63 00 01 35 [04:16:14]Write i2c OK [04:16:14]MH_I2C_Read... [04:16:14]Read from MH i2c: D1 [04:16:14]MH_I2C_Read... [04:16:14]Read from MH i2c: D1 01 00 [04:16:14]MH_I2C_Read... [04:16:14]Read from MH i2c: D1 01 00 63 00 00 34 [04:16:14]Write to MH i2c: 01 00 00 64 00 64 [04:16:14]Write i2c OK [04:16:14]MH_I2C_Read... [04:16:14]*** Cut start [04:16:14]*** Purtial cut [04:16:14]*** Stage 1: CUTSNS_PIN = 1 [04:16:15]Read from MH i2c: 01 [04:16:15]MH_I2C_Read... [04:16:15]*** Stop cut motor [04:16:15]*** Cut end [04:16:15]Read from MH i2c: 01 07 00 [04:16:15]MH_I2C_Read... [04:16:15]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [04:16:15]process_action close_receipt done [04:16:15]requested_data is exist [04:16:15]produce_requested_data [04:16:15]requested_item fm.sn is exist - process it [04:16:15]wFMCommunicate request_size=4 [04:16:15]MH_SAM_APDU [04:16:15]CAPDU: 80 11 00 00 [04:16:15]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [04:16:15]Write i2c OK [04:16:15]MH_I2C_Read... [04:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:15]Read from MH i2c: E2 [04:16:15]MH_I2C_Read... [04:16:15]Read from MH i2c: E2 17 00 [04:16:15]MH_I2C_Read... [04:16:15]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [04:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:16:15]wFMCommunicate OK [04:16:15]requested_item fd.num is exist - process it [04:16:15]SAM_PROTO_GetFieldsCounters [04:16:15]wFMCommunicate request_size=4 [04:16:15]MH_SAM_APDU [04:16:15]CAPDU: 80 13 00 00 [04:16:15]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [04:16:15]Write i2c OK [04:16:15]MH_I2C_Read... [04:16:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:16:15]Read from MH i2c: E2 [04:16:15]MH_I2C_Read... [04:16:15]Read from MH i2c: E2 62 00 [04:16:15]MH_I2C_Read... [04:16:15]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C6 1D 00 00 0E 04 04 00 46 00 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 65 [04:16:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C6 1D 00 00 0E 04 04 00 46 00 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 [04:16:15]wFMCommunicate OK [04:16:15]SAM_PROTO_GetFieldsCounters done [04:16:15]requested_item shift.num is exist - process it [04:16:15]requested_item shift.opened is exist - process it [04:16:15]req_shift_opened [04:16:15]FM_GetShiftState [04:16:15]SAM_PROTO_GetShiftState [04:16:15]wFMCommunicate request_size=4 [04:16:15]MH_SAM_APDU [04:16:15]CAPDU: 80 13 01 00 [04:16:15]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [04:16:15]Write i2c OK [04:16:15]MH_I2C_Read... [04:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:15]Read from MH i2c: E2 [04:16:15]MH_I2C_Read... [04:16:15]Read from MH i2c: E2 0E 00 [04:16:15]MH_I2C_Read... [04:16:15]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [04:16:15]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:16:15]wFMCommunicate OK [04:16:15]SAM_PROTO_GetShiftState done [04:16:15]FM_GetShiftState done [04:16:15]req_shift_opened done [04:16:15]requested_item shift.open_date is exist - process it [04:16:15]req_shift_open_date [04:16:15]req_shift_open_date done [04:16:15]produce_requested_data done [04:16:15]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7622,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [04:16:15]process_action_free close_receipt [04:16:15]json_value_free [04:16:15]json_value_free done [04:16:15]process_json_proto returns [04:16:15]Send response to host [04:16:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7622,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [04:16:15]free response buf [04:16:15]execute_script done [04:16:15]execute_script returns [04:16:15]free content buf [04:16:15]Sock 8.Close socket [04:16:15]Sock 8.Thread stoped [04:16:19]Connected sock=11 [04:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 CF 6E 08 01 FA 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0C 9A EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C6 1D 00 00 35 04 06 00 5E C8 E7 1F 7D A2 35 B5 21 96 8D 55 07 37 [04:16:19]recv_with_timeout no data received [04:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 81 A5 47 00 19 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C6 1D 00 00 F4 03 04 00 D2 44 EF 66 B6 04 01 00 00 10 02 AA 5A EB 62 E8 B3 [04:16:19]CommunicateWithHost err = 0 [04:16:19]CheckOFDResponse [04:16:19]1017 (14) - 77093643461234 [04:16:19]1041 (16) - 0000000002094258 [04:16:19]1040 (4) - 7622 [04:16:19]1012 (4) - 21.09.2024 22:12 [04:16:19]1206 (1) - 0 [04:16:19]OFD Sender: Remove packet 7622 [04:16:19]ProducePacketName [04:16:19]name=ofd_packets/00007622 [04:16:19]NVStorageDeleteData [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:16:59]recv_with_timeout no data received [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]recv_with_timeout no data received [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:52]recv_with_timeout no data received [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:02]recv_with_timeout no data received [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:17]accept exits with 9 [04:25:17]New connection [04:25:17]New thread 3067370852 created [04:25:17]Thread 3067514212 joined [04:25:17]Waiting for new connection... [04:25:17] Sock 9.Parse request [04:25:17]Sock 9.Check first char [04:25:17]Sock 9.First char is OK [04:25:17]request: POST /json_proto HTTP/1.0 [04:25:17]Method: POST [04:25:17]URL: /json_proto [04:25:17]Method is POST - this is cgi request [04:25:17]url: /json_proto [04:25:17]query_string will be loaded in cgi processing [04:25:17]execute_cgi json_proto POST (null) [04:25:17]execute_cgi path=json_proto method=POST [04:25:17]POST find Content-Length [04:25:17]Host: 172.17.47.195:8080 [04:25:17]Content-Length: 687 [04:25:17]Content-Type: application/json [04:25:17] [04:25:17]POST finish read [04:25:17]Found Content-Length = 687 [04:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:17]execute_script... [04:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:17]POST & json_proto [04:25:17]process_json_proto [04:25:17]json parsed OK: [04:25:17]protocol is kg_v1.0 [04:25:17]action value=close_receipt [04:25:17]process_action close_receipt [04:25:17]cmd_close_receipt [04:25:17]MH_GetDate [04:25:17]Write to MH i2c: F0 00 00 68 00 57 [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: F0 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: F0 09 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: F0 09 00 68 00 00 2E 9C EF 66 96 2E 95 66 3E [04:25:17]GetLastDocTimeStamp 1726978572 [04:25:17]current date 1726979118 [04:25:17]FM_GetShiftState [04:25:17]SAM_PROTO_GetShiftState [04:25:17]wFMCommunicate request_size=4 [04:25:17]MH_SAM_APDU [04:25:17]CAPDU: 80 13 01 00 [04:25:17]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:17]Read from MH i2c: E2 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 0E 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [04:25:17]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:25:17]wFMCommunicate OK [04:25:17]SAM_PROTO_GetShiftState done [04:25:17]FM_GetShiftState done [04:25:17]opened in 1726964224 [04:25:17]opened+sec_in_day 1727050624 [04:25:17]quantity*price = 100050 [04:25:17]sum+1 = 100052 [04:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 21 22.09.2024 04:25 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7623 ФПД: 107409523795470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T042518&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7623&fm=107409523795470&tin=02508201610067®Number=0000000000190446&sum=100000 [04:25:18]StoreToDocumentArchive [04:25:18]shift 70 fd 7623 [04:25:18]save to /storage/0070/doc_00007623 [04:25:18]save last doc name /storage/0070/doc_00007623 to /storage/kkm_last_doc_name [04:25:18]save OK [04:25:18]Clear old archive folders... [04:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:25:18]tlvbuf is 001C5680 [04:25:18]SAM_PROTO_ClearQueue [04:25:18]wFMCommunicate request_size=4 [04:25:18]MH_SAM_APDU [04:25:18]CAPDU: 80 09 00 00 [04:25:18]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [04:25:18]Write i2c OK [04:25:18]MH_I2C_Read... [04:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:25:18]Read from MH i2c: E2 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: E2 03 00 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [04:25:18]RAPDU: 90 00 [04:25:18]wFMCommunicate OK [04:25:18]SAM_PROTO_ClearQueue done [04:25:18]KKMCreateOFDPacket [04:25:18]OFDProtocolAddRootSTLVToBuf [04:25:18]FM_MakeSignedData [04:25:18]FM_MakeSignedData [04:25:18]SAM_PROTO_SignData [04:25:18]wFMCommunicate request_size=4 [04:25:18]MH_SAM_APDU [04:25:18]CAPDU: 80 0D 01 02 [04:25:18]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [04:25:18]Write i2c OK [04:25:18]MH_I2C_Read... [04:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:25:18]Read from MH i2c: E2 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: E2 03 00 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [04:25:18]RAPDU: 90 00 [04:25:18]wFMCommunicate OK [04:25:18]wFMCommunicate request_size=255 [04:25:18]MH_SAM_APDU [04:25:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 2E 9C EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C7 1D 00 00 35 04 06 00 [04:25:18]Write to MH i2c: E2 02 01 78 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2E 9C EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C7 1D 00 00 35 04 06 00 00 00 B7 [04:25:18]Write i2c OK [04:25:18]MH_I2C_Read... [04:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:18]Read from MH i2c: E2 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: E2 03 00 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [04:25:18]RAPDU: 90 00 [04:25:18]wFMCommunicate OK [04:25:18]wFMCommunicate request_size=11 [04:25:18]MH_SAM_APDU [04:25:18]CAPDU: 80 0D 02 02 06 61 B0 3A 82 E6 0E [04:25:18]Write to MH i2c: E2 0E 00 79 00 80 0D 02 02 06 00 61 B0 3A 82 E6 0E 00 00 C0 [04:25:18]Write i2c OK [04:25:18]MH_I2C_Read... [04:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:19]Read from MH i2c: E2 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: E2 03 00 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [04:25:19]RAPDU: 90 00 [04:25:19]wFMCommunicate OK [04:25:19]wFMCommunicate request_size=4 [04:25:19]MH_SAM_APDU [04:25:19]CAPDU: 80 0D 03 02 [04:25:19]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [04:25:19]Write i2c OK [04:25:19]MH_I2C_Read... [04:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:25:19]Read from MH i2c: E2 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: E2 0B 00 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: E2 0B 00 7A 00 00 B2 75 24 0D 8D C8 4C 68 90 00 57 [04:25:19]RAPDU: B2 75 24 0D 8D C8 4C 68 90 00 [04:25:19]wFMCommunicate OK [04:25:19]SAM_PROTO_SignData done [04:25:19]FM_MakeSignedData done [04:25:19]CreateOFDProtocolMessage [04:25:19]wFMCommunicate request_size=4 [04:25:19]MH_SAM_APDU [04:25:19]CAPDU: 80 11 00 00 [04:25:19]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [04:25:19]Write i2c OK [04:25:19]MH_I2C_Read... [04:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:19]Read from MH i2c: E2 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: E2 17 00 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [04:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:25:19]wFMCommunicate OK [04:25:19]CreateOFDProtocolMessage done [04:25:19]OFDSenderStorePacket 7623 [04:25:19]StoreOFDPacket docnum=7623 [04:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 59 8A 08 01 48 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 2E 9C EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C7 1D 00 00 35 04 06 00 61 B0 3A 82 E6 0E B2 75 24 0D 8D C8 4C 68 [04:25:19]CheckFolder [04:25:19]dirname=/storage/ofd_packets [04:25:19]CheckFolder done [04:25:19]ProducePacketName [04:25:19]name=ofd_packets/00007623 [04:25:19]NVStorageSaveData ofd_packets/00007623 [04:25:19]File name is /storage/ofd_packets/00007623 [04:25:19]Write 302 bytes [04:25:19]NVStorageSaveData done [04:25:19]OFDSenderStorePacket done [04:25:19]KKMCreateOFDPacket done [04:25:19]NVStorageSaveData kkm_last_timestamp [04:25:19]File name is /storage/kkm_last_timestamp [04:25:19]Write 4 bytes [04:25:19]NVStorageSaveData done [04:25:19]ExternCall_PrintAddStr [04:25:19]wPrintStart [04:25:19]Write to MH i2c: 01 00 00 7C 00 7C [04:25:19]Write i2c OK [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: 01 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: 01 07 00 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [04:25:19]RasterBufferAndPrint [04:25:19]line Счет N : (1)871556 [04:25:19]line ИНН: 02508201610067 [04:25:19]line Контрольно-Кассовый Чек [04:25:19]line ПРОДАЖА [04:25:19]line ТРК (МРК, ГНК) : 34 [04:25:19]line Товар: 2710194210 [04:25:19]line ДТ(л)-К-4 [04:25:19]line 13.130 * 76.20 [04:25:19]line = 1000.51 [04:25:19]line НДС 12% НСП 1% [04:25:19]line > о реализуемом товаре [04:25:19]line ОКРУГЛЕНИЕ: -0.51 [04:25:19]line ИТОГО: 1000.00 [04:25:19]line Внесено: 1000.00 [04:25:19]line СДАЧА: 0.00 [04:25:19]line НСП 1% : 8.85 [04:25:19]line НДС 12% : 106.25 [04:25:19]line Наличными: 1000.00 [04:25:19]line Безнал.: 0.00 [04:25:19]line Место: АЗС № 137 "Партнер Нефть" [04:25:19]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [04:25:19]line СНО: Общий режим [04:25:19]line Чек 21 22.09.2024 04:25 [04:25:19]line Смена: 70 ФФД: 1.0 [04:25:19]line ЗНМ: 0300000041 [04:25:19]line РНМ: 0000000000190446 [04:25:19]line Версия ККМ: v1.0 [04:25:19]line ФМ: 0000000002094258 [04:25:19]line ФД: 7623 [04:25:19]line ФПД: 107409523795470 [04:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T042518&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7623&fm=107409523795470&tin=02508201610067®Number=0000000000190446&sum=100000 [04:25:19]OFD Sender: Processing packet 7623 [packets to send 51, broken 50] [04:25:19]ProducePacketName [04:25:19]name=ofd_packets/00007623 [04:25:19]OFD Sender: To server: pG, [04:25:19]CommunicateWithHost lk.salyk.kg:30040 [04:25:19]ConnectInit lk.salyk.kg [04:25:19]written 0, free lines is 4095 [04:25:19]Write to MH i2c: 01 00 00 A7 00 A7 [04:25:19]Write i2c OK [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: 01 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: 01 07 00 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 E9 0C A3 [04:25:19]RasterBufferAndPrint [04:25:19]line [04:25:19]line [04:25:19]line [04:25:19]line [04:25:19]line [04:25:19]written 0, free lines is 3311 [04:25:19]MH_Cut [04:25:19]Write to MH i2c: D1 01 00 AE 00 01 80 [04:25:19]Write i2c OK [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: D1 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: D1 01 00 [04:25:19]MH_I2C_Read... [04:25:19]Read from MH i2c: D1 01 00 AE 00 00 7F [04:25:19]Write to MH i2c: 01 00 00 AF 00 AF [04:25:19]Write i2c OK [04:25:19]MH_I2C_Read... [04:25:20]*** Cut start [04:25:20]*** Purtial cut [04:25:20]*** Stage 1: CUTSNS_PIN = 1 [04:25:20]Read from MH i2c: 01 [04:25:20]MH_I2C_Read... [04:25:20]*** Stop cut motor [04:25:20]*** Cut end [04:25:20]Read from MH i2c: 01 07 00 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [04:25:20]process_action close_receipt done [04:25:20]requested_data is exist [04:25:20]produce_requested_data [04:25:20]requested_item fm.sn is exist - process it [04:25:20]wFMCommunicate request_size=4 [04:25:20]MH_SAM_APDU [04:25:20]CAPDU: 80 11 00 00 [04:25:20]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [04:25:20]Write i2c OK [04:25:20]MH_I2C_Read... [04:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:20]Read from MH i2c: E2 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 17 00 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [04:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:25:20]wFMCommunicate OK [04:25:20]requested_item fd.num is exist - process it [04:25:20]SAM_PROTO_GetFieldsCounters [04:25:20]wFMCommunicate request_size=4 [04:25:20]MH_SAM_APDU [04:25:20]CAPDU: 80 13 00 00 [04:25:20]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [04:25:20]Write i2c OK [04:25:20]MH_I2C_Read... [04:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:25:21]Read from MH i2c: E2 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 62 00 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C7 1D 00 00 0E 04 04 00 46 00 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 B4 [04:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C7 1D 00 00 0E 04 04 00 46 00 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 [04:25:21]wFMCommunicate OK [04:25:21]SAM_PROTO_GetFieldsCounters done [04:25:21]requested_item shift.num is exist - process it [04:25:21]requested_item shift.opened is exist - process it [04:25:21]req_shift_opened [04:25:21]FM_GetShiftState [04:25:21]SAM_PROTO_GetShiftState [04:25:21]wFMCommunicate request_size=4 [04:25:21]MH_SAM_APDU [04:25:21]CAPDU: 80 13 01 00 [04:25:21]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [04:25:21]Write i2c OK [04:25:21]MH_I2C_Read... [04:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:21]Read from MH i2c: E2 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 0E 00 [04:25:21]MH_I2C_Read... [04:25:21]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F2 [04:25:21]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:25:21]wFMCommunicate OK [04:25:21]SAM_PROTO_GetShiftState done [04:25:21]FM_GetShiftState done [04:25:21]req_shift_opened done [04:25:21]requested_item shift.open_date is exist - process it [04:25:21]req_shift_open_date [04:25:21]req_shift_open_date done [04:25:21]produce_requested_data done [04:25:21]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7623,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [04:25:21]process_action_free close_receipt [04:25:21]json_value_free [04:25:21]json_value_free done [04:25:21]process_json_proto returns [04:25:21]Send response to host [04:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7623,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [04:25:21]free response buf [04:25:21]execute_script done [04:25:21]execute_script returns [04:25:21]free content buf [04:25:21]Sock 9.Close socket [04:25:21]Sock 9.Thread stoped [04:25:22]Connected sock=11 [04:25:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 59 8A 08 01 48 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 2E 9C EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C7 1D 00 00 35 04 06 00 61 B0 3A 82 E6 0E B2 75 24 0D 8D C8 4C 68 [04:25:24]recv_with_timeout no data received [04:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 7E 28 47 00 27 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C7 1D 00 00 F4 03 04 00 F1 46 EF 66 B6 04 01 00 00 ED 73 AA 99 61 1B FE 47 [04:25:27]CommunicateWithHost err = 0 [04:25:27]CheckOFDResponse [04:25:27]1017 (14) - 77093643461234 [04:25:27]1041 (16) - 0000000002094258 [04:25:27]1040 (4) - 7623 [04:25:27]1012 (4) - 21.09.2024 22:21 [04:25:27]1206 (1) - 0 [04:25:27]OFD Sender: Remove packet 7623 [04:25:27]ProducePacketName [04:25:27]name=ofd_packets/00007623 [04:25:27]NVStorageDeleteData [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: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:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:24]recv_with_timeout no data received [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:11]recv_with_timeout no data received [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]recv_with_timeout no data received [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:36]recv_with_timeout no data received [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:14]accept exits with 8 [04:32:14]New connection [04:32:14]New thread 3067514212 created [04:32:14]Thread 3067370852 joined [04:32:14]Waiting for new connection... [04:32:14] Sock 8.Parse request [04:32:14]Sock 8.Check first char [04:32:14]Sock 8.First char is OK [04:32:14]request: POST /json_proto HTTP/1.0 [04:32:14]Method: POST [04:32:14]URL: /json_proto [04:32:14]Method is POST - this is cgi request [04:32:14]url: /json_proto [04:32:14]query_string will be loaded in cgi processing [04:32:14]execute_cgi json_proto POST (null) [04:32:14]execute_cgi path=json_proto method=POST [04:32:14]POST find Content-Length [04:32:14]Host: 172.17.47.195:8080 [04:32:14]Content-Length: 682 [04:32:14]Content-Type: application/json [04:32:14] [04:32:14]POST finish read [04:32:14]Found Content-Length = 682 [04:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871557", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:14]execute_script... [04:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871557", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:14]POST & json_proto [04:32:14]process_json_proto [04:32:14]json parsed OK: [04:32:14]protocol is kg_v1.0 [04:32:14]action value=close_receipt [04:32:14]process_action close_receipt [04:32:14]cmd_close_receipt [04:32:14]MH_GetDate [04:32:14]Write to MH i2c: F0 00 00 B3 00 A2 [04:32:14]Write i2c OK [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: F0 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: F0 09 00 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: F0 09 00 B3 00 00 CF 9D EF 66 96 2E 95 66 2B [04:32:14]GetLastDocTimeStamp 1726979118 [04:32:14]current date 1726979535 [04:32:14]FM_GetShiftState [04:32:14]SAM_PROTO_GetShiftState [04:32:14]wFMCommunicate request_size=4 [04:32:14]MH_SAM_APDU [04:32:14]CAPDU: 80 13 01 00 [04:32:14]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [04:32:14]Write i2c OK [04:32:14]MH_I2C_Read... [04:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:14]Read from MH i2c: E2 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 0E 00 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F4 [04:32:14]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:32:14]wFMCommunicate OK [04:32:14]SAM_PROTO_GetShiftState done [04:32:14]FM_GetShiftState done [04:32:14]opened in 1726964224 [04:32:14]opened+sec_in_day 1727050624 [04:32:14]quantity*price = 100005 [04:32:14]sum+1 = 100006 [04:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 22 22.09.2024 04:32 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7624 ФПД: 101673337558456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T043215&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7624&fm=101673337558456&tin=02508201610067®Number=0000000000190446&sum=100000 [04:32:15]StoreToDocumentArchive [04:32:15]shift 70 fd 7624 [04:32:15]save to /storage/0070/doc_00007624 [04:32:15]save last doc name /storage/0070/doc_00007624 to /storage/kkm_last_doc_name [04:32:15]save OK [04:32:15]Clear old archive folders... [04:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:32:15]tlvbuf is 0024F9E0 [04:32:15]SAM_PROTO_ClearQueue [04:32:15]wFMCommunicate request_size=4 [04:32:15]MH_SAM_APDU [04:32:15]CAPDU: 80 09 00 00 [04:32:15]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:32:15]Read from MH i2c: E2 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 03 00 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [04:32:15]RAPDU: 90 00 [04:32:15]wFMCommunicate OK [04:32:15]SAM_PROTO_ClearQueue done [04:32:15]KKMCreateOFDPacket [04:32:15]OFDProtocolAddRootSTLVToBuf [04:32:15]FM_MakeSignedData [04:32:15]FM_MakeSignedData [04:32:15]SAM_PROTO_SignData [04:32:15]wFMCommunicate request_size=4 [04:32:15]MH_SAM_APDU [04:32:15]CAPDU: 80 0D 01 02 [04:32:15]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:32:15]Read from MH i2c: E2 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 03 00 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [04:32:15]RAPDU: 90 00 [04:32:15]wFMCommunicate OK [04:32:15]wFMCommunicate request_size=255 [04:32:15]MH_SAM_APDU [04:32: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 CF 9D EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C8 1D 00 00 35 04 06 00 5C [04:32:15]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 CF 9D EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C8 1D 00 00 35 04 06 00 5C 00 00 A4 [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:16]Read from MH i2c: E2 [04:32:16]MH_I2C_Read... [04:32:16]Read from MH i2c: E2 03 00 [04:32:16]MH_I2C_Read... [04:32:16]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [04:32:16]RAPDU: 90 00 [04:32:16]wFMCommunicate OK [04:32:16]wFMCommunicate request_size=10 [04:32:16]MH_SAM_APDU [04:32:16]CAPDU: 80 0D 02 02 05 78 AB 2B 15 B8 [04:32:16]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 78 AB 2B 15 B8 00 00 63 [04:32:16]Write i2c OK [04:32:16]MH_I2C_Read... [04:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:16]Read from MH i2c: E2 [04:32:16]MH_I2C_Read... [04:32:16]Read from MH i2c: E2 03 00 [04:32:16]MH_I2C_Read... [04:32:16]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [04:32:16]RAPDU: 90 00 [04:32:16]wFMCommunicate OK [04:32:16]wFMCommunicate request_size=4 [04:32:16]MH_SAM_APDU [04:32:16]CAPDU: 80 0D 03 02 [04:32:16]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [04:32:16]Write i2c OK [04:32:16]MH_I2C_Read... [04:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:32:16]Read from MH i2c: E2 [04:32:16]MH_I2C_Read... [04:32:16]Read from MH i2c: E2 0B 00 [04:32:16]MH_I2C_Read... [04:32:16]Read from MH i2c: E2 0B 00 C5 00 00 78 70 21 AC DA D9 4D 9A 90 00 90 [04:32:16]RAPDU: 78 70 21 AC DA D9 4D 9A 90 00 [04:32:16]wFMCommunicate OK [04:32:16]SAM_PROTO_SignData done [04:32:16]FM_MakeSignedData done [04:32:16]CreateOFDProtocolMessage [04:32:16]wFMCommunicate request_size=4 [04:32:16]MH_SAM_APDU [04:32:16]CAPDU: 80 11 00 00 [04:32:16]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [04:32:16]Write i2c OK [04:32:16]MH_I2C_Read... [04:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:16]Read from MH i2c: E2 [04:32:16]MH_I2C_Read... [04:32:16]Read from MH i2c: E2 17 00 [04:32:16]MH_I2C_Read... [04:32:16]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 91 [04:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:32:16]wFMCommunicate OK [04:32:16]CreateOFDProtocolMessage done [04:32:16]OFDSenderStorePacket 7624 [04:32:16]StoreOFDPacket docnum=7624 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5928089+1721052822=1726980911 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 30 A3 EF 66 96 2E 95 66 E6 [04:55:12]Current date/time: 22.09.2024 04:55 [04:55:12]FM_Init [04:55:12]wFMConnect [04:55:12]MH_SAM_On [04:55:12]Write to MH i2c: E0 00 00 08 00 E7 [04:55:12]Write i2c OK [04:55:12]MH_I2C_Read... [04:55:12]*** iso7816_init finished! [04:55:12]*** atr: [04:55:12]*** 0F 3B D5 18 FF 81 91 FE [04:55:12]*** 1F C3 80 73 C8 21 10 0A [04:55:12]*** 00 00 00 00 00 00 00 00 [04:55:12]*** 00 00 00 00 00 00 00 00 [04:55:12]*** 00 00 00 00 00 00 00 00 [04:55:12]*** 00 00 00 00 00 00 00 00 [04:55:12]*** 00 00 00 00 00 00 00 00 [04:55:12]*** 00 00 00 00 00 00 00 00 [04:55:12]Read from MH i2c: E0 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E0 10 00 [04:55:12]MH_I2C_Read... [04:55:12]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 [04:55:12]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [04:55:12]wFMCommunicate request_size=10 [04:55:12]MH_SAM_APDU [04:55:12]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [04:55:12]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [04:55:12]Write i2c OK [04:55:12]MH_I2C_Read... [04:55:12]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [04:55:12]Read from MH i2c: E2 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 03 00 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [04:55:12]RAPDU: 90 00 [04:55:12]wFMCommunicate OK [04:55:12]wFMCommunicate request_size=4 [04:55:12]MH_SAM_APDU [04:55:12]CAPDU: 80 11 00 00 [04:55:12]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [04:55:12]Write i2c OK [04:55:12]MH_I2C_Read... [04:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:12]Read from MH i2c: E2 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 17 00 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [04:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:55:12]wFMCommunicate OK [04:55:12]Detected FM SN is 0000000002094258 [04:55:12]Stored FM SN is 0000000002094258 [04:55:12]wFMCommunicate request_size=9 [04:55:12]MH_SAM_APDU [04:55:12]CAPDU: 80 16 00 00 04 BC C2 00 00 [04:55:12]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [04:55:12]Write i2c OK [04:55:12]MH_I2C_Read... [04:55:12]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [04:55:12]Read from MH i2c: E2 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 03 00 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [04:55:12]RAPDU: 90 00 [04:55:12]wFMCommunicate OK [04:55:12]FM PIN OK [04:55:12]wFMCommunicate request_size=8 [04:55:12]MH_SAM_APDU [04:55:12]CAPDU: 80 14 04 00 03 02 00 01 [04:55:12]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [04:55:12]Write i2c OK [04:55:12]MH_I2C_Read... [04:55:12]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [04:55:12]Read from MH i2c: E2 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 03 00 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [04:55:12]RAPDU: 90 00 [04:55:12]wFMCommunicate OK [04:55:12]wFMCommunicate request_size=13 [04:55:12]MH_SAM_APDU [04:55:12]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [04:55:12]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 [04:55:12]Write i2c OK [04:55:12]MH_I2C_Read... [04:55:12]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [04:55:12]Read from MH i2c: E2 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 03 00 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [04:55:12]RAPDU: 90 00 [04:55:12]wFMCommunicate OK [04:55:12]wFMCommunicate request_size=4 [04:55:12]MH_SAM_APDU [04:55:12]CAPDU: 80 11 00 00 [04:55:12]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [04:55:12]Write i2c OK [04:55:12]MH_I2C_Read... [04:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:12]Read from MH i2c: E2 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 17 00 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [04:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:55:12]wFMCommunicate OK [04:55:12]DocumentArchiveInit [04:55:12]Start Httpd... [04:55:12]Httpd thread 3067211108 created [04:55:12]Write to MH i2c: 01 00 00 0F 00 0F [04:55:12]Write i2c OK [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: 01 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: 01 07 00 [04:55:12]MH_I2C_Read... [04:55:12]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [04:55:12]MH Int Process started [04:55:12]Allocated Socket 7 [04:55:12]Bind OK [04:55:12]Listen OK [04:55:12]httpd running on port 8080 [04:55:12]Waiting for new connection... [04:55:12]OFD Sender: Processing packet 7624 [packets to send 51, broken 50] [04:55:12]ProducePacketName [04:55:12]name=ofd_packets/00007624 [04:55:12]OFD Sender: To server: pG, [04:55:12]CommunicateWithHost lk.salyk.kg:30040 [04:55:12]ConnectInit lk.salyk.kg [04:55:13]Connected sock=6 [04:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D4 7D 07 01 5F 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 CF 9D EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C8 1D 00 00 35 04 06 00 5C 78 AB 2B 15 B8 78 70 21 AC DA D9 4D 9A [04:55:13]accept exits with 8 [04:55:13]New connection [04:55:13]New thread 3066924388 created [04:55:13]Waiting for new connection... [04:55:13] Sock 8.Parse request [04:55:13]Sock 8.Check first char [04:55:13]Sock 8.First char is OK [04:55:13]request: POST /json_proto HTTP/1.0 [04:55:13]Method: POST [04:55:13]URL: /json_proto [04:55:13]Method is POST - this is cgi request [04:55:13]url: /json_proto [04:55:13]query_string will be loaded in cgi processing [04:55:13]execute_cgi json_proto POST (null) [04:55:13]execute_cgi path=json_proto method=POST [04:55:13]POST find Content-Length [04:55:13]Host: 172.17.47.195:8080 [04:55:13]Content-Length: 215 [04:55:13]Content-Type: application/json [04:55:13] [04:55:13]POST finish read [04:55:13]Found Content-Length = 215 [04:55:13]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" ] } } [04:55:13]execute_script... [04:55:13]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" ] } } [04:55:13]POST & json_proto [04:55:13]process_json_proto [04:55:13]json parsed OK: [04:55:13]protocol is kg_v1.0 [04:55:13]action value=get_value [04:55:13]process_action get_value [04:55:13]cmd_get_value [04:55:13]process_action get_value done [04:55:13]requested_data is exist [04:55:13]produce_requested_data [04:55:13]requested_item kkm.sn is exist - process it [04:55:13]requested_item kkm.ver is exist - process it [04:55:13]requested_item fm.sn is exist - process it [04:55:13]wFMCommunicate request_size=4 [04:55:13]MH_SAM_APDU [04:55:13]CAPDU: 80 11 00 00 [04:55:13]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [04:55:13]Write i2c OK [04:55:13]MH_I2C_Read... [04:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:13]Read from MH i2c: E2 [04:55:13]MH_I2C_Read... [04:55:13]Read from MH i2c: E2 17 00 [04:55:13]MH_I2C_Read... [04:55:13]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [04:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:55:13]wFMCommunicate OK [04:55:13]requested_item fd.num is exist - process it [04:55:13]SAM_PROTO_GetFieldsCounters [04:55:13]wFMCommunicate request_size=4 [04:55:13]MH_SAM_APDU [04:55:13]CAPDU: 80 13 00 00 [04:55:13]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [04:55:13]Write i2c OK [04:55:13]MH_I2C_Read... [04:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:55:13]Read from MH i2c: E2 [04:55:13]MH_I2C_Read... [04:55:13]Read from MH i2c: E2 62 00 [04:55:13]MH_I2C_Read... [04:55:13]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C8 1D 00 00 0E 04 04 00 46 00 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 18 [04:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C8 1D 00 00 0E 04 04 00 46 00 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 [04:55:13]wFMCommunicate OK [04:55:13]SAM_PROTO_GetFieldsCounters done [04:55:13]requested_item shift.num is exist - process it [04:55:13]requested_item shift.opened is exist - process it [04:55:13]req_shift_opened [04:55:13]FM_GetShiftState [04:55:13]SAM_PROTO_GetShiftState [04:55:13]wFMCommunicate request_size=4 [04:55:13]MH_SAM_APDU [04:55:13]CAPDU: 80 13 01 00 [04:55:13]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [04:55:13]Write i2c OK [04:55:13]MH_I2C_Read... [04:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:13]Read from MH i2c: E2 [04:55:13]MH_I2C_Read... [04:55:13]Read from MH i2c: E2 0E 00 [04:55:13]MH_I2C_Read... [04:55:13]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [04:55:13]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:55:13]wFMCommunicate OK [04:55:13]SAM_PROTO_GetShiftState done [04:55:13]FM_GetShiftState done [04:55:13]req_shift_opened done [04:55:13]requested_item shift.open_date is exist - process it [04:55:13]req_shift_open_date [04:55:13]req_shift_open_date done [04:55:13]produce_requested_data done [04:55:13]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7624,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [04:55:13]process_action_free get_value [04:55:13]json_value_free [04:55:13]json_value_free done [04:55:13]process_json_proto returns [04:55:13]Send response to host [04:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7624,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [04:55:13]free response buf [04:55:13]execute_script done [04:55:13]execute_script returns [04:55:13]free content buf [04:55:13]Sock 8.Close socket [04:55:13]Sock 8.Thread stoped [04:55:13]accept exits with 10 [04:55:13]New connection [04:55:13]New thread 3066781028 created [04:55:13]Thread 3066924388 joined [04:55:13]Waiting for new connection... [04:55:13] Sock 10.Parse request [04:55:13]Sock 10.Check first char [04:55:13]Sock 10.First char is OK [04:55:13]request: POST /json_proto HTTP/1.0 [04:55:13]Method: POST [04:55:13]URL: /json_proto [04:55:13]Method is POST - this is cgi request [04:55:13]url: /json_proto [04:55:13]query_string will be loaded in cgi processing [04:55:13]execute_cgi json_proto POST (null) [04:55:13]execute_cgi path=json_proto method=POST [04:55:13]POST find Content-Length [04:55:13]Host: 172.17.47.195:8080 [04:55:13]Content-Length: 331 [04:55:13]Content-Type: application/json [04:55:13] [04:55:13]POST finish read [04:55:13]Found Content-Length = 331 [04:55:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [04:55:13]execute_script... [04:55:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [04:55:13]POST & json_proto [04:55:13]process_json_proto [04:55:13]json parsed OK: [04:55:13]protocol is kg_v1.0 [04:55:13]action value=get_value [04:55:13]process_action get_value [04:55:13]cmd_get_value [04:55:13]process_action get_value done [04:55:13]requested_data is exist [04:55:13]produce_requested_data [04:55:13]requested_item fm.sale.total is exist - process it [04:55:13]SAM_PROTO_GetFMData [04:55:13]wFMCommunicate request_size=4 [04:55:13]MH_SAM_APDU [04:55:13]CAPDU: 80 13 03 00 [04:55:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [04:55:13]Write i2c OK [04:55:13]MH_I2C_Read... [04:55:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [04:55:13]Read from MH i2c: E2 [04:55:13]MH_I2C_Read... [04:55:13]Read from MH i2c: E2 FD 00 [04:55:13]MH_I2C_Read... [04:55:13]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 3C 1D 00 00 69 04 A0 00 6F 04 04 00 10 1D 00 00 B1 04 04 00 8B B5 76 30 70 04 04 00 48 DE 92 28 72 04 04 00 43 D7 E3 07 00 04 7C 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 4C D2 25 05 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 16 D1 6D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 86 [04:55:13]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 3C 1D 00 00 69 04 A0 00 6F 04 04 00 10 1D 00 00 B1 04 04 00 8B B5 76 30 70 04 04 00 48 DE 92 28 72 04 04 00 43 D7 E3 07 00 04 7C 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 4C D2 25 05 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 16 D1 6D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 [04:55:13]wFMCommunicate OK [04:55:13]wFMCommunicate request_size=4 [04:55:13]MH_SAM_APDU [04:55:13]CAPDU: 80 17 00 00 [04:55:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [04:55:13]Write i2c OK [04:55:13]MH_I2C_Read... [04:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:55:14]Read from MH i2c: E2 [04:55:14]MH_I2C_Read... [04:55:14]Read from MH i2c: E2 FD 00 [04:55:14]MH_I2C_Read... [04:55:14]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 AC [04:55:14]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 [04:55:14]wFMCommunicate OK [04:55:14]wFMCommunicate request_size=4 [04:55:14]MH_SAM_APDU [04:55:14]CAPDU: 80 17 00 00 [04:55:14]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [04:55:14]Write i2c OK [04:55:14]MH_I2C_Read... [04:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:55:14]Read from MH i2c: E2 [04:55:14]MH_I2C_Read... [04:55:14]Read from MH i2c: E2 FD 00 [04:55:14]MH_I2C_Read... [04:55:14]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [04:55:14]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:55:14]wFMCommunicate OK [04:55:14]wFMCommunicate request_size=4 [04:55:14]MH_SAM_APDU [04:55:14]CAPDU: 80 17 00 00 [04:55:14]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [04:55:14]Write i2c OK [04:55:14]MH_I2C_Read... [04:55:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 0F 05 47 00 6B 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 32 30 39 34 32 35 38 10 04 04 00 C8 1D 00 00 F4 03 04 00 EF 4D EF 66 B6 04 01 00 00 2C 8E E9 77 88 EC E5 43 [04:55:14]CommunicateWithHost err = 0 [04:55:14]CheckOFDResponse [04:55:14]1017 (14) - 77093643461234 [04:55:14]1041 (16) - 0000000002094258 [04:55:14]1040 (4) - 7624 [04:55:14]1012 (4) - 21.09.2024 22:51 [04:55:14]1206 (1) - 0 [04:55:14]OFD Sender: Remove packet 7624 [04:55:14]ProducePacketName [04:55:14]name=ofd_packets/00007624 [04:55:14]NVStorageDeleteData [04:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:55:14]Read from MH i2c: E2 [04:55:14]MH_I2C_Read... [04:55:14]Read from MH i2c: E2 FD 00 [04:55:14]MH_I2C_Read... [04:55:14]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [04:55:14]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:55:14]wFMCommunicate OK [04:55:14]wFMCommunicate request_size=4 [04:55:14]MH_SAM_APDU [04:55:14]CAPDU: 80 17 00 00 [04:55:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [04:55:14]Write i2c OK [04:55:14]MH_I2C_Read... [04:55:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [04:55:15]Read from MH i2c: E2 [04:55:15]MH_I2C_Read... [04:55:15]Read from MH i2c: E2 DE 00 [04:55:15]MH_I2C_Read... [04:55:15]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [04:55:15]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:55:15]wFMCommunicate OK [04:55:15]SAM_PROTO_GetFMData done [04:55:15]requested_item fm.sale_refund.total is exist - process it [04:55:15]requested_item fm.buy.total is exist - process it [04:55:15]requested_item shift.sale.total is exist - process it [04:55:15]SAM_PROTO_GetShiftData [04:55:15]wFMCommunicate request_size=4 [04:55:15]MH_SAM_APDU [04:55:15]CAPDU: 80 13 02 00 [04:55:15]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [04:55:15]OFD Sender: No OFD packet to send [04:55:15]Write i2c OK [04:55:15]MH_I2C_Read... [04:55:15]Read from MH i2c: E2 [04:55:15]MH_I2C_Read... [04:55:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [04:55:15]Read from MH i2c: E2 FD 00 [04:55:15]MH_I2C_Read... [04:55:15]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 16 00 00 00 69 04 9B 00 6F 04 04 00 16 00 00 00 B1 04 03 00 8F E3 1E 70 04 03 00 D8 DC 18 72 04 03 00 B7 06 06 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 13 48 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 00 46 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [04:55:15]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 16 00 00 00 69 04 9B 00 6F 04 04 00 16 00 00 00 B1 04 03 00 8F E3 1E 70 04 03 00 D8 DC 18 72 04 03 00 B7 06 06 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 13 48 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 00 46 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:55:15]wFMCommunicate OK [04:55:15]wFMCommunicate request_size=4 [04:55:15]MH_SAM_APDU [04:55:15]CAPDU: 80 17 00 00 [04:55:15]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [04:55:15]Write i2c OK [04:55:15]MH_I2C_Read... [04:55:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:55:15]Read from MH i2c: E2 [04:55:15]MH_I2C_Read... [04:55:15]Read from MH i2c: E2 FD 00 [04:55:15]MH_I2C_Read... [04:55:15]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 [04:55:15]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 [04:55:15]wFMCommunicate OK [04:55:15]wFMCommunicate request_size=4 [04:55:15]MH_SAM_APDU [04:55:15]CAPDU: 80 17 00 00 [04:55:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [04:55:15]Write i2c OK [04:55:15]MH_I2C_Read... [04:55:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:55:16]Read from MH i2c: E2 [04:55:16]MH_I2C_Read... [04:55:16]Read from MH i2c: E2 FD 00 [04:55:16]MH_I2C_Read... [04:55:16]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 [04:55:16]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 [04:55:16]wFMCommunicate OK [04:55:16]wFMCommunicate request_size=4 [04:55:16]MH_SAM_APDU [04:55:16]CAPDU: 80 17 00 00 [04:55:16]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [04:55:16]Write i2c OK [04:55:16]MH_I2C_Read... [04:55:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:55:16]Read from MH i2c: E2 [04:55:16]MH_I2C_Read... [04:55:16]Read from MH i2c: E2 FD 00 [04:55:16]MH_I2C_Read... [04:55:16]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 [04:55:16]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 [04:55:16]wFMCommunicate OK [04:55:16]wFMCommunicate request_size=4 [04:55:16]MH_SAM_APDU [04:55:16]CAPDU: 80 17 00 00 [04:55:16]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [04:55:16]Write i2c OK [04:55:16]MH_I2C_Read... [04:55:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [04:55:16]Read from MH i2c: E2 [04:55:16]MH_I2C_Read... [04:55:16]Read from MH i2c: E2 CB 00 [04:55:16]MH_I2C_Read... [04:55:16]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 [04:55:16]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 [04:55:16]wFMCommunicate OK [04:55:16]SAM_PROTO_GetShiftData done [04:55:16]requested_item shift.sale.total_cash is exist - process it [04:55:16]requested_item shift.sale_refund.total is exist - process it [04:55:16]requested_item shift.sale_refund.total_cash is exist - process it [04:55:16]requested_item shift.buy.total is exist - process it [04:55:16]requested_item shift.buy.total_cash is exist - process it [04:55:16]produce_requested_data done [04:55:16]produce_requested_data return {"fm.sale.total":8130860.91,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":20243.35,"shift.sale.total_cash":16294.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} [04:55:16]process_action_free get_value [04:55:16]json_value_free [04:55:16]json_value_free done [04:55:16]process_json_proto returns [04:55:16]Send response to host [04:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8130860.91,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":20243.35,"shift.sale.total_cash":16294.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}}} [04:55:16]free response buf [04:55:16]execute_script done [04:55:16]execute_script returns [04:55:16]free content buf [04:55:16]Sock 10.Close socket [04:55:16]Sock 10.Thread stoped [04:55:17]accept exits with 8 [04:55:17]New connection [04:55:17]New thread 3066924388 created [04:55:17]Thread 3066781028 joined [04:55:17]Waiting for new connection... [04:55:17] Sock 8.Parse request [04:55:17]Sock 8.Check first char [04:55:17]Sock 8.First char is OK [04:55:17]request: POST /json_proto HTTP/1.0 [04:55:17]Method: POST [04:55:17]URL: /json_proto [04:55:17]Method is POST - this is cgi request [04:55:17]url: /json_proto [04:55:17]query_string will be loaded in cgi processing [04:55:17]execute_cgi json_proto POST (null) [04:55:17]execute_cgi path=json_proto method=POST [04:55:17]POST find Content-Length [04:55:17]Host: 172.17.47.195:8080 [04:55:17]Content-Length: 677 [04:55:17]Content-Type: application/json [04:55:17] [04:55:17]POST finish read [04:55:17]Found Content-Length = 677 [04:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:55:17]execute_script... [04:55: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)871558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:55:17]POST & json_proto [04:55:17]process_json_proto [04:55:17]json parsed OK: [04:55:17]protocol is kg_v1.0 [04:55:17]action value=close_receipt [04:55:17]process_action close_receipt [04:55:17]cmd_close_receipt [04:55:17]MH_GetDate [04:55:17]Write to MH i2c: F0 00 00 1D 00 0C [04:55:17]Write i2c OK [04:55:17]MH_I2C_Read... [04:55:17]Read from MH i2c: F0 [04:55:17]MH_I2C_Read... [04:55:17]Read from MH i2c: F0 09 00 [04:55:17]MH_I2C_Read... [04:55:17]Read from MH i2c: F0 09 00 1D 00 00 35 A3 EF 66 96 2E 95 66 01 [04:55:17]GetLastDocTimeStamp 1726979535 [04:55:17]current date 1726980917 [04:55:17]FM_GetShiftState [04:55:17]SAM_PROTO_GetShiftState [04:55:17]wFMCommunicate request_size=4 [04:55:17]MH_SAM_APDU [04:55:17]CAPDU: 80 13 01 00 [04:55:17]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [04:55:17]Write i2c OK [04:55:17]MH_I2C_Read... [04:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:17]Read from MH i2c: E2 [04:55:17]MH_I2C_Read... [04:55:17]Read from MH i2c: E2 0E 00 [04:55:17]MH_I2C_Read... [04:55:17]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [04:55:17]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:55:17]wFMCommunicate OK [04:55:17]SAM_PROTO_GetShiftState done [04:55:17]FM_GetShiftState done [04:55:17]opened in 1726964224 [04:55:17]opened+sec_in_day 1727050624 [04:55:17]quantity*price = 30035 [04:55:17]sum+1 = 30036 [04:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 23 22.09.2024 04:55 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7625 ФПД: 67909762054147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T045517&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7625&fm=67909762054147&tin=02508201610067®Number=0000000000190446&sum=30000 [04:55:18]StoreToDocumentArchive [04:55:18]shift 70 fd 7625 [04:55:18]save to /storage/0070/doc_00007625 [04:55:18]save last doc name /storage/0070/doc_00007625 to /storage/kkm_last_doc_name [04:55:18]save OK [04:55:18]Clear old archive folders... [04:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:55:18]tlvbuf is 011E4C20 [04:55:18]SAM_PROTO_ClearQueue [04:55:18]wFMCommunicate request_size=4 [04:55:18]MH_SAM_APDU [04:55:18]CAPDU: 80 09 00 00 [04:55:18]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [04:55:18]Write i2c OK [04:55:18]MH_I2C_Read... [04:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:55:18]Read from MH i2c: E2 [04:55:18]MH_I2C_Read... [04:55:18]Read from MH i2c: E2 03 00 [04:55:18]MH_I2C_Read... [04:55:18]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [04:55:18]RAPDU: 90 00 [04:55:18]wFMCommunicate OK [04:55:18]SAM_PROTO_ClearQueue done [04:55:18]KKMCreateOFDPacket [04:55:18]OFDProtocolAddRootSTLVToBuf [04:55:18]FM_MakeSignedData [04:55:18]FM_MakeSignedData [04:55:18]SAM_PROTO_SignData [04:55:18]wFMCommunicate request_size=4 [04:55:18]MH_SAM_APDU [04:55:18]CAPDU: 80 0D 01 02 [04:55:18]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [04:55:18]Write i2c OK [04:55:18]MH_I2C_Read... [04:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:55:18]Read from MH i2c: E2 [04:55:18]MH_I2C_Read... [04:55:18]Read from MH i2c: E2 03 00 [04:55:18]MH_I2C_Read... [04:55:18]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [04:55:18]RAPDU: 90 00 [04:55:18]wFMCommunicate OK [04:55:18]wFMCommunicate request_size=255 [04:55:18]MH_SAM_APDU [04:55:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 35 A3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C9 1D 00 00 35 04 06 00 3D [04:55:19]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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 35 A3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C9 1D 00 00 35 04 06 00 3D 00 00 ED [04:55:19]Write i2c OK [04:55:19]MH_I2C_Read... [04:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:55:19]Read from MH i2c: E2 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: E2 03 00 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [04:55:19]RAPDU: 90 00 [04:55:19]wFMCommunicate OK [04:55:19]wFMCommunicate request_size=10 [04:55:19]MH_SAM_APDU [04:55:19]CAPDU: 80 0D 02 02 05 C3 79 3E 78 03 [04:55:19]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 C3 79 3E 78 03 00 00 A7 [04:55:19]Write i2c OK [04:55:19]MH_I2C_Read... [04:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:55:19]Read from MH i2c: E2 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: E2 03 00 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [04:55:19]RAPDU: 90 00 [04:55:19]wFMCommunicate OK [04:55:19]wFMCommunicate request_size=4 [04:55:19]MH_SAM_APDU [04:55:19]CAPDU: 80 0D 03 02 [04:55:19]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [04:55:19]Write i2c OK [04:55:19]MH_I2C_Read... [04:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:55:19]Read from MH i2c: E2 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: E2 0B 00 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: E2 0B 00 2F 00 00 FD 90 14 AB 88 1E 27 04 90 00 C8 [04:55:19]RAPDU: FD 90 14 AB 88 1E 27 04 90 00 [04:55:19]wFMCommunicate OK [04:55:19]SAM_PROTO_SignData done [04:55:19]FM_MakeSignedData done [04:55:19]CreateOFDProtocolMessage [04:55:19]wFMCommunicate request_size=4 [04:55:19]MH_SAM_APDU [04:55:19]CAPDU: 80 11 00 00 [04:55:19]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [04:55:19]Write i2c OK [04:55:19]MH_I2C_Read... [04:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:19]Read from MH i2c: E2 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: E2 17 00 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [04:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:55:19]wFMCommunicate OK [04:55:19]CreateOFDProtocolMessage done [04:55:19]OFDSenderStorePacket 7625 [04:55:19]StoreOFDPacket docnum=7625 [04:55:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D0 61 07 01 6B 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 35 A3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C9 1D 00 00 35 04 06 00 3D C3 79 3E 78 03 FD 90 14 AB 88 1E 27 04 [04:55:19]CheckFolder [04:55:19]dirname=/storage/ofd_packets [04:55:19]CheckFolder done [04:55:19]ProducePacketName [04:55:19]name=ofd_packets/00007625 [04:55:19]NVStorageSaveData ofd_packets/00007625 [04:55:19]File name is /storage/ofd_packets/00007625 [04:55:19]Write 301 bytes [04:55:19]NVStorageSaveData done [04:55:19]OFDSenderStorePacket done [04:55:19]KKMCreateOFDPacket done [04:55:19]NVStorageSaveData kkm_last_timestamp [04:55:19]File name is /storage/kkm_last_timestamp [04:55:19]Write 4 bytes [04:55:19]NVStorageSaveData done [04:55:19]ExternCall_PrintAddStr [04:55:19]wPrintStart [04:55:19]Write to MH i2c: 01 00 00 31 00 31 [04:55:19]Write i2c OK [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: 01 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: 01 07 00 [04:55:19]MH_I2C_Read... [04:55:19]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [04:55:19]RasterBufferAndPrint [04:55:19]line Счет N : (1)871558 [04:55:19]line ИНН: 02508201610067 [04:55:19]line Контрольно-Кассовый Чек [04:55:19]line ПРОДАЖА [04:55:19]line ТРК (МРК, ГНК) : 33 [04:55:19]line Товар: 2710124130 [04:55:19]line Аи-92-К-5 [04:55:19]line 4.430 * 67.80 [04:55:19]line = 300.35 [04:55:19]line НДС 12% НСП 1% [04:55:19]line > о реализуемом товаре [04:55:19]line ОКРУГЛЕНИЕ: -0.35 [04:55:19]line ИТОГО: 300.00 [04:55:19]line Внесено: 300.00 [04:55:19]line СДАЧА: 0.00 [04:55:19]line НСП 1% : 2.66 [04:55:19]line НДС 12% : 31.90 [04:55:19]line Наличными: 300.00 [04:55:19]line Безнал.: 0.00 [04:55:19]line Место: АЗС № 137 "Партнер Нефть" [04:55:19]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [04:55:19]line СНО: Общий режим [04:55:19]line Чек 23 22.09.2024 04:55 [04:55:19]line Смена: 70 ФФД: 1.0 [04:55:19]line ЗНМ: 0300000041 [04:55:19]line РНМ: 0000000000190446 [04:55:19]line Версия ККМ: v1.0 [04:55:19]line ФМ: 0000000002094258 [04:55:19]line ФД: 7625 [04:55:19]line ФПД: 67909762054147 [04:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T045517&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7625&fm=67909762054147&tin=02508201610067®Number=0000000000190446&sum=30000 [04:55:19]written 0, free lines is 4095 [04:55:19]OFD Sender: Processing packet 7625 [packets to send 51, broken 50] [04:55:19]ProducePacketName [04:55:19]name=ofd_packets/00007625 [04:55:19]OFD Sender: To server: pG, [04:55:19]CommunicateWithHost lk.salyk.kg:30040 [04:55:19]ConnectInit lk.salyk.kg [04:55:20]Write to MH i2c: 01 00 00 5C 00 5C [04:55:20]Write i2c OK [04:55:20]MH_I2C_Read... [04:55:20]Read from MH i2c: 01 [04:55:20]MH_I2C_Read... [04:55:20]Read from MH i2c: 01 07 00 [04:55:20]MH_I2C_Read... [04:55:20]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F3 0C 62 [04:55:20]RasterBufferAndPrint [04:55:20]line [04:55:20]line [04:55:20]line [04:55:20]line [04:55:20]line [04:55:20]written 0, free lines is 3339 [04:55:20]MH_Cut [04:55:20]Write to MH i2c: D1 01 00 63 00 01 35 [04:55:20]Write i2c OK [04:55:20]MH_I2C_Read... [04:55:20]Read from MH i2c: D1 [04:55:20]MH_I2C_Read... [04:55:20]Read from MH i2c: D1 01 00 [04:55:20]MH_I2C_Read... [04:55:20]Read from MH i2c: D1 01 00 63 00 00 34 [04:55:20]Write to MH i2c: 01 00 00 64 00 64 [04:55:20]Write i2c OK [04:55:20]MH_I2C_Read... [04:55:20]*** Cut start [04:55:20]*** Purtial cut [04:55:20]*** Stage 1: CUTSNS_PIN = 1 [04:55:21]Read from MH i2c: 01 [04:55:21]MH_I2C_Read... [04:55:21]*** Stop cut motor [04:55:21]*** Cut end [04:55:21]Read from MH i2c: 01 07 00 [04:55:21]MH_I2C_Read... [04:55:21]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [04:55:21]process_action close_receipt done [04:55:21]requested_data is exist [04:55:21]produce_requested_data [04:55:21]requested_item fm.sn is exist - process it [04:55:21]wFMCommunicate request_size=4 [04:55:21]MH_SAM_APDU [04:55:21]CAPDU: 80 11 00 00 [04:55:21]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [04:55:21]Write i2c OK [04:55:21]MH_I2C_Read... [04:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:21]Read from MH i2c: E2 [04:55:21]MH_I2C_Read... [04:55:21]Read from MH i2c: E2 17 00 [04:55:21]MH_I2C_Read... [04:55:21]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [04:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:55:21]wFMCommunicate OK [04:55:21]requested_item fd.num is exist - process it [04:55:21]SAM_PROTO_GetFieldsCounters [04:55:21]wFMCommunicate request_size=4 [04:55:21]MH_SAM_APDU [04:55:21]CAPDU: 80 13 00 00 [04:55:21]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [04:55:21]Write i2c OK [04:55:21]MH_I2C_Read... [04:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:55:21]Read from MH i2c: E2 [04:55:21]MH_I2C_Read... [04:55:21]Read from MH i2c: E2 62 00 [04:55:21]MH_I2C_Read... [04:55:21]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C9 1D 00 00 0E 04 04 00 46 00 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 71 [04:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 C9 1D 00 00 0E 04 04 00 46 00 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 [04:55:21]wFMCommunicate OK [04:55:21]SAM_PROTO_GetFieldsCounters done [04:55:21]requested_item shift.num is exist - process it [04:55:21]requested_item shift.opened is exist - process it [04:55:21]req_shift_opened [04:55:21]FM_GetShiftState [04:55:21]SAM_PROTO_GetShiftState [04:55:21]wFMCommunicate request_size=4 [04:55:21]MH_SAM_APDU [04:55:21]CAPDU: 80 13 01 00 [04:55:21]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [04:55:21]Write i2c OK [04:55:21]MH_I2C_Read... [04:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:21]Read from MH i2c: E2 [04:55:21]MH_I2C_Read... [04:55:21]Read from MH i2c: E2 0E 00 [04:55:21]MH_I2C_Read... [04:55:21]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [04:55:21]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:55:21]wFMCommunicate OK [04:55:21]SAM_PROTO_GetShiftState done [04:55:21]FM_GetShiftState done [04:55:21]req_shift_opened done [04:55:21]requested_item shift.open_date is exist - process it [04:55:21]req_shift_open_date [04:55:21]req_shift_open_date done [04:55:21]produce_requested_data done [04:55:21]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7625,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [04:55:21]process_action_free close_receipt [04:55:21]json_value_free [04:55:21]json_value_free done [04:55:21]process_json_proto returns [04:55:21]Send response to host [04:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7625,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [04:55:21]free response buf [04:55:21]execute_script done [04:55:21]execute_script returns [04:55:21]free content buf [04:55:21]Sock 8.Close socket [04:55:21]Sock 8.Thread stoped [04:55:23]Connected sock=11 [04:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D0 61 07 01 6B 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 35 A3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 C9 1D 00 00 35 04 06 00 3D C3 79 3E 78 03 FD 90 14 AB 88 1E 27 04 [04:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 60 1D 47 00 B0 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 32 30 39 34 32 35 38 10 04 04 00 C9 1D 00 00 F4 03 04 00 F9 4D EF 66 B6 04 01 00 00 37 91 A6 CF 5B 90 35 3E [04:55:23]CommunicateWithHost err = 0 [04:55:23]CheckOFDResponse [04:55:23]1017 (14) - 77093643461234 [04:55:23]1041 (16) - 0000000002094258 [04:55:23]1040 (4) - 7625 [04:55:23]1012 (4) - 21.09.2024 22:51 [04:55:23]1206 (1) - 0 [04:55:23]OFD Sender: Remove packet 7625 [04:55:23]ProducePacketName [04:55:23]name=ofd_packets/00007625 [04:55:23]NVStorageDeleteData [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:24]recv_with_timeout no data received [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:07]recv_with_timeout no data received [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:38]accept exits with 10 [04:57:38]New connection [04:57:38]New thread 3066781028 created [04:57:38]Thread 3066924388 joined [04:57:38]Waiting for new connection... [04:57:38] Sock 10.Parse request [04:57:38]Sock 10.Check first char [04:57:38]Sock 10.First char is OK [04:57:38]request: POST /json_proto HTTP/1.0 [04:57:38]Method: POST [04:57:38]URL: /json_proto [04:57:38]Method is POST - this is cgi request [04:57:38]url: /json_proto [04:57:38]query_string will be loaded in cgi processing [04:57:38]execute_cgi json_proto POST (null) [04:57:38]execute_cgi path=json_proto method=POST [04:57:38]POST find Content-Length [04:57:38]Host: 172.17.47.195:8080 [04:57:38]Content-Length: 687 [04:57:38]Content-Type: application/json [04:57:38] [04:57:38]POST finish read [04:57:38]Found Content-Length = 687 [04:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:38]execute_script... [04:57:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:38]POST & json_proto [04:57:38]process_json_proto [04:57:38]json parsed OK: [04:57:38]protocol is kg_v1.0 [04:57:38]action value=close_receipt [04:57:38]process_action close_receipt [04:57:38]cmd_close_receipt [04:57:38]MH_GetDate [04:57:38]Write to MH i2c: F0 00 00 68 00 57 [04:57:38]Write i2c OK [04:57:38]MH_I2C_Read... [04:57:38]Read from MH i2c: F0 [04:57:38]MH_I2C_Read... [04:57:38]Read from MH i2c: F0 09 00 [04:57:38]MH_I2C_Read... [04:57:38]Read from MH i2c: F0 09 00 68 00 00 C2 A3 EF 66 96 2E 95 66 D9 [04:57:38]GetLastDocTimeStamp 1726980917 [04:57:38]current date 1726981058 [04:57:38]FM_GetShiftState [04:57:38]SAM_PROTO_GetShiftState [04:57:38]wFMCommunicate request_size=4 [04:57:38]MH_SAM_APDU [04:57:38]CAPDU: 80 13 01 00 [04:57:38]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [04:57:38]Write i2c OK [04:57:38]MH_I2C_Read... [04:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:38]Read from MH i2c: E2 [04:57:38]MH_I2C_Read... [04:57:38]Read from MH i2c: E2 0E 00 [04:57:38]MH_I2C_Read... [04:57:38]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [04:57:38]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:57:38]wFMCommunicate OK [04:57:38]SAM_PROTO_GetShiftState done [04:57:38]FM_GetShiftState done [04:57:38]opened in 1726964224 [04:57:38]opened+sec_in_day 1727050624 [04:57:38]quantity*price = 100050 [04:57:38]sum+1 = 100052 [04:57:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 256.00 Внесено: 256.00 СДАЧА: 0.00 НСП 1% : 2.27 НДС 12% : 27.22 Наличными: 256.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 25 22.09.2024 04:59 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7627 ФПД: 232765307555989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T045935&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7627&fm=232765307555989&tin=02508201610067®Number=0000000000190446&sum=25600 [04:59:36]StoreToDocumentArchive [04:59:36]shift 70 fd 7627 [04:59:36]save to /storage/0070/doc_00007627 [04:59:36]save last doc name /storage/0070/doc_00007627 to /storage/kkm_last_doc_name [04:59:36]save OK [04:59:36]Clear old archive folders... [04:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:59:36]tlvbuf is 01179BA0 [04:59:36]SAM_PROTO_ClearQueue [04:59:36]wFMCommunicate request_size=4 [04:59:36]MH_SAM_APDU [04:59:36]CAPDU: 80 09 00 00 [04:59:36]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:59:36]Read from MH i2c: E2 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 03 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [04:59:36]RAPDU: 90 00 [04:59:36]wFMCommunicate OK [04:59:36]SAM_PROTO_ClearQueue done [04:59:36]KKMCreateOFDPacket [04:59:36]OFDProtocolAddRootSTLVToBuf [04:59:36]FM_MakeSignedData [04:59:36]FM_MakeSignedData [04:59:36]SAM_PROTO_SignData [04:59:36]wFMCommunicate request_size=4 [04:59:36]MH_SAM_APDU [04:59:36]CAPDU: 80 0D 01 02 [04:59:36]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:59:36]Read from MH i2c: E2 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 03 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [04:59:36]RAPDU: 90 00 [04:59:36]wFMCommunicate OK [04:59:36]wFMCommunicate request_size=255 [04:59:36]MH_SAM_APDU [04:59:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1C 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0A 00 00 00 00 07 04 06 00 00 64 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 37 A4 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CB 1D 00 00 35 04 06 00 D3 [04:59:36]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1C 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0A 00 00 00 00 07 04 06 00 00 64 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 37 A4 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CB 1D 00 00 35 04 06 00 D3 00 00 CB [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:36]Read from MH i2c: E2 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 03 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [04:59:36]RAPDU: 90 00 [04:59:36]wFMCommunicate OK [04:59:36]wFMCommunicate request_size=10 [04:59:36]MH_SAM_APDU [04:59:36]CAPDU: 80 0D 02 02 05 B2 E5 79 10 95 [04:59:36]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 B2 E5 79 10 95 00 00 FD [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:36]Read from MH i2c: E2 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 03 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [04:59:36]RAPDU: 90 00 [04:59:36]wFMCommunicate OK [04:59:36]wFMCommunicate request_size=4 [04:59:36]MH_SAM_APDU [04:59:36]CAPDU: 80 0D 03 02 [04:59:36]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:36]Read from MH i2c: E2 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 0B 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 0B 00 C5 00 00 A2 61 17 20 FA D8 33 D9 90 00 59 [04:59:36]RAPDU: A2 61 17 20 FA D8 33 D9 90 00 [04:59:36]wFMCommunicate OK [04:59:36]SAM_PROTO_SignData done [04:59:36]FM_MakeSignedData done [04:59:36]CreateOFDProtocolMessage [04:59:36]wFMCommunicate request_size=4 [04:59:36]MH_SAM_APDU [04:59:36]CAPDU: 80 11 00 00 [04:59:36]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:36]Read from MH i2c: E2 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 17 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 91 [04:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:59:36]wFMCommunicate OK [04:59:36]CreateOFDProtocolMessage done [04:59:36]OFDSenderStorePacket 7627 [04:59:36]StoreOFDPacket docnum=7627 [04:59:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 52 EA 07 01 9C 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1C 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0A 00 00 00 00 07 04 06 00 00 64 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 37 A4 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CB 1D 00 00 35 04 06 00 D3 B2 E5 79 10 95 A2 61 17 20 FA D8 33 D9 [04:59:36]CheckFolder [04:59:36]dirname=/storage/ofd_packets [04:59:36]CheckFolder done [04:59:36]ProducePacketName [04:59:36]name=ofd_packets/00007627 [04:59:36]NVStorageSaveData ofd_packets/00007627 [04:59:36]File name is /storage/ofd_packets/00007627 [04:59:36]Write 301 bytes [04:59:36]NVStorageSaveData done [04:59:36]OFDSenderStorePacket done [04:59:36]KKMCreateOFDPacket done [04:59:36]NVStorageSaveData kkm_last_timestamp [04:59:36]File name is /storage/kkm_last_timestamp [04:59:36]Write 4 bytes [04:59:36]NVStorageSaveData done [04:59:36]ExternCall_PrintAddStr [04:59:36]wPrintStart [04:59:36]Write to MH i2c: 01 00 00 C7 00 C7 [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: 01 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: 01 07 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [04:59:36]RasterBufferAndPrint [04:59:36]line Счет N : (1)871562 [04:59:36]line ИНН: 02508201610067 [04:59:36]line Контрольно-Кассовый Чек [04:59:36]line ПРОДАЖА [04:59:36]line ТРК (МРК, ГНК) : 53 [04:59:36]line Товар: 2710124130 [04:59:36]line Аи-92-К-5 [04:59:36]line 3.780 * 67.80 [04:59:36]line = 256.28 [04:59:36]line НДС 12% НСП 1% [04:59:36]line > о реализуемом товаре [04:59:36]line ОКРУГЛЕНИЕ: -0.28 [04:59:36]line ИТОГО: 256.00 [04:59:36]line Внесено: 256.00 [04:59:36]line СДАЧА: 0.00 [04:59:36]line НСП 1% : 2.27 [04:59:36]line НДС 12% : 27.22 [04:59:36]line Наличными: 256.00 [04:59:36]line Безнал.: 0.00 [04:59:36]line Место: АЗС № 137 "Партнер Нефть" [04:59:36]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [04:59:36]line СНО: Общий режим [04:59:36]line Чек 25 22.09.2024 04:59 [04:59:36]line Смена: 70 ФФД: 1.0 [04:59:36]line ЗНМ: 0300000041 [04:59:36]line РНМ: 0000000000190446 [04:59:36]line Версия ККМ: v1.0 [04:59:36]line ФМ: 0000000002094258 [04:59:36]line ФД: 7627 [04:59:36]line ФПД: 232765307555989 [04:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T045935&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7627&fm=232765307555989&tin=02508201610067®Number=0000000000190446&sum=25600 [04:59:37]written 0, free lines is 4095 [04:59:37]Write to MH i2c: 01 00 00 F2 00 F2 [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: 01 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: 01 07 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 F6 0C FB [04:59:37]RasterBufferAndPrint [04:59:37]line [04:59:37]line [04:59:37]line [04:59:37]line [04:59:37]line [04:59:37]written 0, free lines is 3324 [04:59:37]MH_Cut [04:59:37]Write to MH i2c: D1 01 00 F9 00 01 CB [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: D1 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: D1 01 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: D1 01 00 F9 00 00 CA [04:59:37]Write to MH i2c: 01 00 00 FA 00 FA [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:38]*** Cut start [04:59:38]*** Purtial cut [04:59:38]*** Stage 1: CUTSNS_PIN = 1 [04:59:38]Read from MH i2c: 01 [04:59:38]MH_I2C_Read... [04:59:38]*** Stop cut motor [04:59:38]*** Cut end [04:59:38]Read from MH i2c: 01 07 00 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [04:59:38]process_action close_receipt done [04:59:38]requested_data is exist [04:59:38]produce_requested_data [04:59:38]requested_item fm.sn is exist - process it [04:59:38]wFMCommunicate request_size=4 [04:59:38]MH_SAM_APDU [04:59:38]CAPDU: 80 11 00 00 [04:59:38]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [04:59:38]Write i2c OK [04:59:38]MH_I2C_Read... [04:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:38]Read from MH i2c: E2 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: E2 17 00 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C6 [04:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [04:59:38]wFMCommunicate OK [04:59:38]requested_item fd.num is exist - process it [04:59:38]SAM_PROTO_GetFieldsCounters [04:59:38]wFMCommunicate request_size=4 [04:59:38]MH_SAM_APDU [04:59:38]CAPDU: 80 13 00 00 [04:59:38]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [04:59:38]Write i2c OK [04:59:38]MH_I2C_Read... [04:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:38]Read from MH i2c: E2 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: E2 62 00 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CB 1D 00 00 0E 04 04 00 46 00 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 0F [04:59:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CB 1D 00 00 0E 04 04 00 46 00 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 [04:59:38]wFMCommunicate OK [04:59:38]SAM_PROTO_GetFieldsCounters done [04:59:38]requested_item shift.num is exist - process it [04:59:38]requested_item shift.opened is exist - process it [04:59:38]req_shift_opened [04:59:38]FM_GetShiftState [04:59:38]SAM_PROTO_GetShiftState [04:59:38]wFMCommunicate request_size=4 [04:59:38]MH_SAM_APDU [04:59:38]CAPDU: 80 13 01 00 [04:59:38]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [04:59:38]Write i2c OK [04:59:38]MH_I2C_Read... [04:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:38]Read from MH i2c: E2 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: E2 0E 00 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3D [04:59:38]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [04:59:38]wFMCommunicate OK [04:59:38]SAM_PROTO_GetShiftState done [04:59:38]FM_GetShiftState done [04:59:38]req_shift_opened done [04:59:38]requested_item shift.open_date is exist - process it [04:59:38]req_shift_open_date [04:59:38]req_shift_open_date done [04:59:38]produce_requested_data done [04:59:38]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7627,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [04:59:38]process_action_free close_receipt [04:59:38]json_value_free [04:59:38]json_value_free done [04:59:38]process_json_proto returns [04:59:38]Send response to host [04:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7627,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [04:59:38]free response buf [04:59:38]execute_script done [04:59:38]execute_script returns [04:59:38]free content buf [04:59:38]Sock 8.Close socket [04:59:38]Sock 8.Thread stoped [05:00:00]recv_with_timeout no data received [05:01:40]ConnectInit Can't connect to host [05:01:40]CommunicateWithHost connect error [05:01:40]CommunicateWithHost err = -1 [05:01:40]OFD Sender: Server communicate error [05:01:40]OFD Sender: Processing packet 7626 [packets to send 52, broken 50] [05:01:40]ProducePacketName [05:01:40]name=ofd_packets/00007626 [05:01:40]OFD Sender: To server: pG, [05:01:40]CommunicateWithHost lk.salyk.kg:30040 [05:01:40]ConnectInit lk.salyk.kg [05:01:41]Connected sock=8 [05:01:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 76 7E 08 01 17 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C2 A3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CA 1D 00 00 35 04 06 00 9D 25 4D 51 D7 BD 41 61 32 64 B9 20 38 4F [05:01:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 33 6A 47 00 F6 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CA 1D 00 00 F4 03 04 00 74 4F EF 66 B6 04 01 00 00 6B 37 9B 9E E9 42 1C 39 [05:01:43]CommunicateWithHost err = 0 [05:01:43]CheckOFDResponse [05:01:43]1017 (14) - 77093643461234 [05:01:43]1041 (16) - 0000000002094258 [05:01:43]1040 (4) - 7626 [05:01:43]1012 (4) - 21.09.2024 22:57 [05:01:43]1206 (1) - 0 [05:01:43]OFD Sender: Remove packet 7626 [05:01:43]ProducePacketName [05:01:43]name=ofd_packets/00007626 [05:01:43]NVStorageDeleteData [05:01:43]OFD Sender: Processing packet 7627 [packets to send 51, broken 50] [05:01:43]ProducePacketName [05:01:43]name=ofd_packets/00007627 [05:01:43]OFD Sender: To server: pG, [05:01:43]CommunicateWithHost lk.salyk.kg:30040 [05:01:43]ConnectInit lk.salyk.kg [05:01:49]recv_with_timeout no data received [05:03:53]ConnectInit Can't connect to host [05:03:53]CommunicateWithHost connect error [05:03:53]CommunicateWithHost err = -1 [05:03:53]OFD Sender: Server communicate error [05:03:58]OFD Sender: Processing packet 7627 [packets to send 51, broken 50] [05:03:58]ProducePacketName [05:03:58]name=ofd_packets/00007627 [05:03:58]OFD Sender: To server: pG, [05:03:58]CommunicateWithHost lk.salyk.kg:30040 [05:03:58]ConnectInit lk.salyk.kg [05:03:59]Connected sock=9 [05:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 52 EA 07 01 9C 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1C 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0A 00 00 00 00 07 04 06 00 00 64 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 37 A4 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CB 1D 00 00 35 04 06 00 D3 B2 E5 79 10 95 A2 61 17 20 FA D8 33 D9 [05:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 AB 7C 47 00 BC 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CB 1D 00 00 F4 03 04 00 FD 4F EF 66 B6 04 01 00 00 BA 4E 04 4A 22 9E 25 41 [05:03:59]CommunicateWithHost err = 0 [05:03:59]CheckOFDResponse [05:03:59]1017 (14) - 77093643461234 [05:03:59]1041 (16) - 0000000002094258 [05:03:59]1040 (4) - 7627 [05:03:59]1012 (4) - 21.09.2024 23:00 [05:03:59]1206 (1) - 0 [05:03:59]OFD Sender: Remove packet 7627 [05:03:59]ProducePacketName [05:03:59]name=ofd_packets/00007627 [05:03:59]NVStorageDeleteData [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:09]accept exits with 10 [05:04:09]New connection [05:04:09]New thread 3066781028 created [05:04:09]Thread 3066924388 joined [05:04:09]Waiting for new connection... [05:04:09] Sock 10.Parse request [05:04:09]Sock 10.Check first char [05:04:09]Sock 10.First char is OK [05:04:09]request: POST /json_proto HTTP/1.0 [05:04:09]Method: POST [05:04:09]URL: /json_proto [05:04:09]Method is POST - this is cgi request [05:04:09]url: /json_proto [05:04:09]query_string will be loaded in cgi processing [05:04:09]execute_cgi json_proto POST (null) [05:04:09]execute_cgi path=json_proto method=POST [05:04:09]POST find Content-Length [05:04:09]Host: 172.17.47.195:8080 [05:04:09]Content-Length: 687 [05:04:09]Content-Type: application/json [05:04:09] [05:04:09]POST finish read [05:04:09]Found Content-Length = 687 [05:04:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:09]execute_script... [05:04: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)871563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:09]POST & json_proto [05:04:09]process_json_proto [05:04:09]json parsed OK: [05:04:09]protocol is kg_v1.0 [05:04:09]action value=close_receipt [05:04:09]process_action close_receipt [05:04:09]cmd_close_receipt [05:04:09]MH_GetDate [05:04:09]Write to MH i2c: F0 00 00 FE 00 ED [05:04:09]Write i2c OK [05:04:09]MH_I2C_Read... [05:04:09]Read from MH i2c: F0 [05:04:09]MH_I2C_Read... [05:04:09]Read from MH i2c: F0 09 00 [05:04:09]MH_I2C_Read... [05:04:09]Read from MH i2c: F0 09 00 FE 00 00 49 A5 EF 66 96 2E 95 66 F8 [05:04:09]GetLastDocTimeStamp 1726981175 [05:04:09]current date 1726981449 [05:04:09]FM_GetShiftState [05:04:09]SAM_PROTO_GetShiftState [05:04:09]wFMCommunicate request_size=4 [05:04:09]MH_SAM_APDU [05:04:09]CAPDU: 80 13 01 00 [05:04:09]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [05:04:09]Write i2c OK [05:04:09]MH_I2C_Read... [05:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:09]Read from MH i2c: E2 [05:04:09]MH_I2C_Read... [05:04:09]Read from MH i2c: E2 0E 00 [05:04:09]MH_I2C_Read... [05:04:09]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3F [05:04:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:04:09]wFMCommunicate OK [05:04:09]SAM_PROTO_GetShiftState done [05:04:09]FM_GetShiftState done [05:04:09]opened in 1726964224 [05:04:09]opened+sec_in_day 1727050624 [05:04:09]quantity*price = 100050 [05:04:09]sum+1 = 100052 [05:04:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 26 22.09.2024 05:04 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7628 ФПД: 48997900247418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T050409&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7628&fm=48997900247418&tin=02508201610067®Number=0000000000190446&sum=100000 [05:04:10]StoreToDocumentArchive [05:04:10]shift 70 fd 7628 [05:04:10]save to /storage/0070/doc_00007628 [05:04:10]save last doc name /storage/0070/doc_00007628 to /storage/kkm_last_doc_name [05:04:10]save OK [05:04:10]Clear old archive folders... [05:04:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:04:10]tlvbuf is 011FEC10 [05:04:10]SAM_PROTO_ClearQueue [05:04:10]wFMCommunicate request_size=4 [05:04:10]MH_SAM_APDU [05:04:10]CAPDU: 80 09 00 00 [05:04:10]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [05:04:10]Write i2c OK [05:04:10]MH_I2C_Read... [05:04:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:04:10]Read from MH i2c: E2 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 03 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [05:04:10]RAPDU: 90 00 [05:04:10]wFMCommunicate OK [05:04:10]SAM_PROTO_ClearQueue done [05:04:10]KKMCreateOFDPacket [05:04:10]OFDProtocolAddRootSTLVToBuf [05:04:10]FM_MakeSignedData [05:04:10]FM_MakeSignedData [05:04:10]SAM_PROTO_SignData [05:04:10]wFMCommunicate request_size=4 [05:04:10]MH_SAM_APDU [05:04:10]CAPDU: 80 0D 01 02 [05:04:10]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [05:04:10]Write i2c OK [05:04:10]MH_I2C_Read... [05:04:10]OFD Sender: No OFD packet to send [05:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:04:10]Read from MH i2c: E2 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 03 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [05:04:10]RAPDU: 90 00 [05:04:10]wFMCommunicate OK [05:04:10]wFMCommunicate request_size=255 [05:04:10]MH_SAM_APDU [05:04:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 49 A5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CC 1D 00 00 35 04 06 00 [05:04:10]Write to MH i2c: E2 02 01 0E 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 49 A5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CC 1D 00 00 35 04 06 00 00 00 7C [05:04:10]Write i2c OK [05:04:10]MH_I2C_Read... [05:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:10]Read from MH i2c: E2 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 03 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [05:04:10]RAPDU: 90 00 [05:04:10]wFMCommunicate OK [05:04:10]wFMCommunicate request_size=11 [05:04:10]MH_SAM_APDU [05:04:10]CAPDU: 80 0D 02 02 06 2C 90 36 70 61 7A [05:04:10]Write to MH i2c: E2 0E 00 0F 01 80 0D 02 02 06 00 2C 90 36 70 61 7A 00 00 D3 [05:04:10]Write i2c OK [05:04:10]MH_I2C_Read... [05:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:10]Read from MH i2c: E2 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 03 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [05:04:10]RAPDU: 90 00 [05:04:10]wFMCommunicate OK [05:04:10]wFMCommunicate request_size=4 [05:04:10]MH_SAM_APDU [05:04:10]CAPDU: 80 0D 03 02 [05:04:10]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [05:04:10]Write i2c OK [05:04:10]MH_I2C_Read... [05:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:04:10]Read from MH i2c: E2 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 0B 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 0B 00 10 01 00 25 53 1D E7 47 C1 5A 13 90 00 7E [05:04:10]RAPDU: 25 53 1D E7 47 C1 5A 13 90 00 [05:04:10]wFMCommunicate OK [05:04:10]SAM_PROTO_SignData done [05:04:10]FM_MakeSignedData done [05:04:10]CreateOFDProtocolMessage [05:04:10]wFMCommunicate request_size=4 [05:04:10]MH_SAM_APDU [05:04:10]CAPDU: 80 11 00 00 [05:04:10]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [05:04:10]Write i2c OK [05:04:10]MH_I2C_Read... [05:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:10]Read from MH i2c: E2 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 17 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DD [05:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:04:10]wFMCommunicate OK [05:04:10]CreateOFDProtocolMessage done [05:04:10]OFDSenderStorePacket 7628 [05:04:10]StoreOFDPacket docnum=7628 [05:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 DE 79 08 01 B0 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 49 A5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CC 1D 00 00 35 04 06 00 2C 90 36 70 61 7A 25 53 1D E7 47 C1 5A 13 [05:04:10]CheckFolder [05:04:10]dirname=/storage/ofd_packets [05:04:10]CheckFolder done [05:04:10]ProducePacketName [05:04:10]name=ofd_packets/00007628 [05:04:10]NVStorageSaveData ofd_packets/00007628 [05:04:10]File name is /storage/ofd_packets/00007628 [05:04:10]Write 302 bytes [05:04:10]NVStorageSaveData done [05:04:10]OFDSenderStorePacket done [05:04:10]KKMCreateOFDPacket done [05:04:10]NVStorageSaveData kkm_last_timestamp [05:04:10]File name is /storage/kkm_last_timestamp [05:04:10]Write 4 bytes [05:04:10]NVStorageSaveData done [05:04:10]ExternCall_PrintAddStr [05:04:10]wPrintStart [05:04:10]Write to MH i2c: 01 00 00 12 01 13 [05:04:10]Write i2c OK [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: 01 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: 01 07 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [05:04:10]RasterBufferAndPrint [05:04:10]line Счет N : (1)871563 [05:04:10]line ИНН: 02508201610067 [05:04:10]line Контрольно-Кассовый Чек [05:04:10]line ПРОДАЖА [05:04:10]line ТРК (МРК, ГНК) : 34 [05:04:10]line Товар: 2710194210 [05:04:10]line ДТ(л)-К-4 [05:04:10]line 13.130 * 76.20 [05:04:10]line = 1000.51 [05:04:10]line НДС 12% НСП 1% [05:04:10]line > о реализуемом товаре [05:04:10]line ОКРУГЛЕНИЕ: -0.51 [05:04:10]line ИТОГО: 1000.00 [05:04:10]line Внесено: 1000.00 [05:04:10]line СДАЧА: 0.00 [05:04:10]line НСП 1% : 8.85 [05:04:10]line НДС 12% : 106.25 [05:04:10]line Наличными: 1000.00 [05:04:10]line Безнал.: 0.00 [05:04:10]line Место: АЗС № 137 "Партнер Нефть" [05:04:10]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [05:04:10]line СНО: Общий режим [05:04:10]line Чек 26 22.09.2024 05:04 [05:04:10]line Смена: 70 ФФД: 1.0 [05:04:10]line ЗНМ: 0300000041 [05:04:10]line РНМ: 0000000000190446 [05:04:10]line Версия ККМ: v1.0 [05:04:10]line ФМ: 0000000002094258 [05:04:10]line ФД: 7628 [05:04:10]line ФПД: 48997900247418 [05:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T050409&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7628&fm=48997900247418&tin=02508201610067®Number=0000000000190446&sum=100000 [05:04:10]written 0, free lines is 4095 [05:04:10]OFD Sender: Processing packet 7628 [packets to send 51, broken 50] [05:04:10]ProducePacketName [05:04:10]name=ofd_packets/00007628 [05:04:10]OFD Sender: To server: pG, [05:04:10]CommunicateWithHost lk.salyk.kg:30040 [05:04:10]ConnectInit lk.salyk.kg [05:04:11]Write to MH i2c: 01 00 00 3D 01 3E [05:04:11]Write i2c OK [05:04:11]MH_I2C_Read... [05:04:11]Read from MH i2c: 01 [05:04:11]MH_I2C_Read... [05:04:11]Read from MH i2c: 01 07 00 [05:04:11]MH_I2C_Read... [05:04:11]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 ED 0C 3E [05:04:11]RasterBufferAndPrint [05:04:11]line [05:04:11]line [05:04:11]line [05:04:11]line [05:04:11]line [05:04:11]written 0, free lines is 3315 [05:04:11]MH_Cut [05:04:11]Write to MH i2c: D1 01 00 44 01 01 17 [05:04:11]Write i2c OK [05:04:11]MH_I2C_Read... [05:04:11]Read from MH i2c: D1 [05:04:11]MH_I2C_Read... [05:04:11]Read from MH i2c: D1 01 00 [05:04:11]MH_I2C_Read... [05:04:11]Read from MH i2c: D1 01 00 44 01 00 16 [05:04:11]Write to MH i2c: 01 00 00 45 01 46 [05:04:11]Write i2c OK [05:04:11]MH_I2C_Read... [05:04:11]*** Cut start [05:04:11]*** Purtial cut [05:04:11]*** Stage 1: CUTSNS_PIN = 1 [05:04:12]Read from MH i2c: 01 [05:04:12]MH_I2C_Read... [05:04:12]*** Stop cut motor [05:04:12]*** Cut end [05:04:12]Read from MH i2c: 01 07 00 [05:04:12]MH_I2C_Read... [05:04:12]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [05:04:12]process_action close_receipt done [05:04:12]requested_data is exist [05:04:12]produce_requested_data [05:04:12]requested_item fm.sn is exist - process it [05:04:12]wFMCommunicate request_size=4 [05:04:12]MH_SAM_APDU [05:04:12]CAPDU: 80 11 00 00 [05:04:12]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [05:04:12]Write i2c OK [05:04:12]MH_I2C_Read... [05:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:12]Read from MH i2c: E2 [05:04:12]MH_I2C_Read... [05:04:12]Read from MH i2c: E2 17 00 [05:04:12]MH_I2C_Read... [05:04:12]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 12 [05:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:04:12]wFMCommunicate OK [05:04:12]requested_item fd.num is exist - process it [05:04:12]SAM_PROTO_GetFieldsCounters [05:04:12]wFMCommunicate request_size=4 [05:04:12]MH_SAM_APDU [05:04:12]CAPDU: 80 13 00 00 [05:04:12]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [05:04:12]Write i2c OK [05:04:12]MH_I2C_Read... [05:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:04:12]Read from MH i2c: E2 [05:04:12]MH_I2C_Read... [05:04:12]Read from MH i2c: E2 62 00 [05:04:12]MH_I2C_Read... [05:04:12]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CC 1D 00 00 0E 04 04 00 46 00 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 5F [05:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CC 1D 00 00 0E 04 04 00 46 00 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 [05:04:12]wFMCommunicate OK [05:04:12]SAM_PROTO_GetFieldsCounters done [05:04:12]requested_item shift.num is exist - process it [05:04:12]requested_item shift.opened is exist - process it [05:04:12]req_shift_opened [05:04:12]FM_GetShiftState [05:04:12]SAM_PROTO_GetShiftState [05:04:12]wFMCommunicate request_size=4 [05:04:12]MH_SAM_APDU [05:04:12]CAPDU: 80 13 01 00 [05:04:12]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [05:04:12]Write i2c OK [05:04:12]MH_I2C_Read... [05:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:12]Read from MH i2c: E2 [05:04:12]MH_I2C_Read... [05:04:12]Read from MH i2c: E2 0E 00 [05:04:12]MH_I2C_Read... [05:04:12]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 89 [05:04:12]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:04:12]wFMCommunicate OK [05:04:12]SAM_PROTO_GetShiftState done [05:04:12]FM_GetShiftState done [05:04:12]req_shift_opened done [05:04:12]requested_item shift.open_date is exist - process it [05:04:12]req_shift_open_date [05:04:12]req_shift_open_date done [05:04:12]produce_requested_data done [05:04:12]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7628,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [05:04:12]process_action_free close_receipt [05:04:12]json_value_free [05:04:12]json_value_free done [05:04:12]process_json_proto returns [05:04:12]Send response to host [05:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7628,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [05:04:12]free response buf [05:04:12]execute_script done [05:04:12]execute_script returns [05:04:12]free content buf [05:04:12]Sock 10.Close socket [05:04:12]Sock 10.Thread stoped [05:04:13]Connected sock=9 [05:04:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 DE 79 08 01 B0 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 49 A5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CC 1D 00 00 35 04 06 00 2C 90 36 70 61 7A 25 53 1D E7 47 C1 5A 13 [05:04:18]recv_with_timeout no data received [05:04:18]CommunicateWithHost answer receiving error [05:04:18]CommunicateWithHost err = -3 [05:04:18]OFD Sender: Server communicate error [05:04:18]recv_with_timeout no data received [05:04:23]OFD Sender: Processing packet 7628 [packets to send 51, broken 50] [05:04:23]ProducePacketName [05:04:23]name=ofd_packets/00007628 [05:04:23]OFD Sender: To server: pG, [05:04:23]CommunicateWithHost lk.salyk.kg:30040 [05:04:23]ConnectInit lk.salyk.kg [05:04:30]recv_with_timeout no data received [05:04:30]Connected sock=10 [05:04:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 DE 79 08 01 B0 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 49 A5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CC 1D 00 00 35 04 06 00 2C 90 36 70 61 7A 25 53 1D E7 47 C1 5A 13 [05:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 9F D7 47 00 A5 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CC 1D 00 00 F4 03 04 00 1C 50 EF 66 B6 04 01 00 00 D0 E0 59 8C 04 7A 93 2B [05:04:32]CommunicateWithHost err = 0 [05:04:32]CheckOFDResponse [05:04:32]1017 (14) - 77093643461234 [05:04:32]1041 (16) - 0000000002094258 [05:04:32]1040 (4) - 7628 [05:04:32]1012 (4) - 21.09.2024 23:00 [05:04:32]1206 (1) - 0 [05:04:32]OFD Sender: Remove packet 7628 [05:04:32]ProducePacketName [05:04:32]name=ofd_packets/00007628 [05:04:32]NVStorageDeleteData [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:40]recv_with_timeout no data received [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:19]recv_with_timeout no data received [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:44]recv_with_timeout no data received [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:54]recv_with_timeout no data received [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]recv_with_timeout no data received [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:52]recv_with_timeout no data received [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [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:56]recv_with_timeout no data received [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:11]recv_with_timeout no data received [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:26]recv_with_timeout no data received [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:01]recv_with_timeout no data received [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]recv_with_timeout no data received [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:32]recv_with_timeout no data received [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:31]recv_with_timeout no data received [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]recv_with_timeout no data received [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:50]accept exits with 8 [05:30:50]New connection [05:30:50]New thread 3066924388 created [05:30:50]Thread 3066781028 joined [05:30:50]Waiting for new connection... [05:30:50] Sock 8.Parse request [05:30:50]Sock 8.Check first char [05:30:50]Sock 8.First char is OK [05:30:50]request: POST /json_proto HTTP/1.0 [05:30:50]Method: POST [05:30:50]URL: /json_proto [05:30:50]Method is POST - this is cgi request [05:30:50]url: /json_proto [05:30:50]query_string will be loaded in cgi processing [05:30:50]execute_cgi json_proto POST (null) [05:30:50]execute_cgi path=json_proto method=POST [05:30:50]POST find Content-Length [05:30:50]Host: 172.17.47.195:8080 [05:30:50]Content-Length: 687 [05:30:50]Content-Type: application/json [05:30:50] [05:30:50]POST finish read [05:30:50]Found Content-Length = 687 [05:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:50]execute_script... [05:30:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:50]POST & json_proto [05:30:50]process_json_proto [05:30:50]json parsed OK: [05:30:50]protocol is kg_v1.0 [05:30:50]action value=close_receipt [05:30:50]process_action close_receipt [05:30:50]cmd_close_receipt [05:30:50]MH_GetDate [05:30:50]Write to MH i2c: F0 00 00 49 01 39 [05:30:50]Write i2c OK [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: F0 [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: F0 09 00 [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: F0 09 00 49 01 00 8A AB EF 66 96 2E 95 66 8B [05:30:50]GetLastDocTimeStamp 1726981449 [05:30:50]current date 1726983050 [05:30:50]FM_GetShiftState [05:30:50]SAM_PROTO_GetShiftState [05:30:50]wFMCommunicate request_size=4 [05:30:50]MH_SAM_APDU [05:30:50]CAPDU: 80 13 01 00 [05:30:50]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [05:30:50]Write i2c OK [05:30:50]MH_I2C_Read... [05:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:50]Read from MH i2c: E2 [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: E2 0E 00 [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8B [05:30:50]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:30:50]wFMCommunicate OK [05:30:50]SAM_PROTO_GetShiftState done [05:30:50]FM_GetShiftState done [05:30:50]opened in 1726964224 [05:30:50]opened+sec_in_day 1727050624 [05:30:50]quantity*price = 200025 [05:30:50]sum+1 = 200026 [05:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 27 22.09.2024 05:30 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7629 ФПД: 71747193191931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T053050&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7629&fm=71747193191931&tin=02508201610067®Number=0000000000190446&sum=200000 [05:30:51]StoreToDocumentArchive [05:30:51]shift 70 fd 7629 [05:30:51]save to /storage/0070/doc_00007629 [05:30:51]save last doc name /storage/0070/doc_00007629 to /storage/kkm_last_doc_name [05:30:51]save OK [05:30:51]Clear old archive folders... [05:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:30:51]tlvbuf is 011756B0 [05:30:51]SAM_PROTO_ClearQueue [05:30:51]wFMCommunicate request_size=4 [05:30:51]MH_SAM_APDU [05:30:51]CAPDU: 80 09 00 00 [05:30:51]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:51]Read from MH i2c: E2 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 03 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [05:30:51]RAPDU: 90 00 [05:30:51]wFMCommunicate OK [05:30:51]SAM_PROTO_ClearQueue done [05:30:51]KKMCreateOFDPacket [05:30:51]OFDProtocolAddRootSTLVToBuf [05:30:51]FM_MakeSignedData [05:30:51]FM_MakeSignedData [05:30:51]SAM_PROTO_SignData [05:30:51]wFMCommunicate request_size=4 [05:30:51]MH_SAM_APDU [05:30:51]CAPDU: 80 0D 01 02 [05:30:51]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:51]Read from MH i2c: E2 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 03 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [05:30:51]RAPDU: 90 00 [05:30:51]wFMCommunicate OK [05:30:51]wFMCommunicate request_size=255 [05:30:51]MH_SAM_APDU [05:30:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8A AB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CD 1D 00 00 35 04 06 00 [05:30:51]Write to MH i2c: E2 02 01 59 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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8A AB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CD 1D 00 00 35 04 06 00 00 00 FE [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:52]Read from MH i2c: E2 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: E2 03 00 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [05:30:52]RAPDU: 90 00 [05:30:52]wFMCommunicate OK [05:30:52]wFMCommunicate request_size=11 [05:30:52]MH_SAM_APDU [05:30:52]CAPDU: 80 0D 02 02 06 41 40 F1 F6 BD FB [05:30:52]Write to MH i2c: E2 0E 00 5A 01 80 0D 02 02 06 00 41 40 F1 F6 BD FB 00 00 01 [05:30:52]Write i2c OK [05:30:52]MH_I2C_Read... [05:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:52]Read from MH i2c: E2 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: E2 03 00 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [05:30:52]RAPDU: 90 00 [05:30:52]wFMCommunicate OK [05:30:52]wFMCommunicate request_size=4 [05:30:52]MH_SAM_APDU [05:30:52]CAPDU: 80 0D 03 02 [05:30:52]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [05:30:52]Write i2c OK [05:30:52]MH_I2C_Read... [05:30:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:52]Read from MH i2c: E2 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: E2 0B 00 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: E2 0B 00 5B 01 00 D1 77 18 CF A9 F8 83 39 90 00 64 [05:30:52]RAPDU: D1 77 18 CF A9 F8 83 39 90 00 [05:30:52]wFMCommunicate OK [05:30:52]SAM_PROTO_SignData done [05:30:52]FM_MakeSignedData done [05:30:52]CreateOFDProtocolMessage [05:30:52]wFMCommunicate request_size=4 [05:30:52]MH_SAM_APDU [05:30:52]CAPDU: 80 11 00 00 [05:30:52]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [05:30:52]Write i2c OK [05:30:52]MH_I2C_Read... [05:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:52]Read from MH i2c: E2 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: E2 17 00 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 28 [05:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:30:52]wFMCommunicate OK [05:30:52]CreateOFDProtocolMessage done [05:30:52]OFDSenderStorePacket 7629 [05:30:52]StoreOFDPacket docnum=7629 [05:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 8D 6E 08 01 CE F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8A AB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CD 1D 00 00 35 04 06 00 41 40 F1 F6 BD FB D1 77 18 CF A9 F8 83 39 [05:30:52]CheckFolder [05:30:52]dirname=/storage/ofd_packets [05:30:52]CheckFolder done [05:30:52]ProducePacketName [05:30:52]name=ofd_packets/00007629 [05:30:52]NVStorageSaveData ofd_packets/00007629 [05:30:52]File name is /storage/ofd_packets/00007629 [05:30:52]Write 302 bytes [05:30:52]NVStorageSaveData done [05:30:52]OFDSenderStorePacket done [05:30:52]KKMCreateOFDPacket done [05:30:52]NVStorageSaveData kkm_last_timestamp [05:30:52]File name is /storage/kkm_last_timestamp [05:30:52]Write 4 bytes [05:30:52]NVStorageSaveData done [05:30:52]OFD Sender: Processing packet 7629 [packets to send 51, broken 50] [05:30:52]ProducePacketName [05:30:52]name=ofd_packets/00007629 [05:30:52]OFD Sender: To server: pG, [05:30:52]CommunicateWithHost lk.salyk.kg:30040 [05:30:52]ConnectInit lk.salyk.kg [05:30:52]ExternCall_PrintAddStr [05:30:52]wPrintStart [05:30:52]Write to MH i2c: 01 00 00 5D 01 5E [05:30:52]Write i2c OK [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: 01 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: 01 07 00 [05:30:52]MH_I2C_Read... [05:30:52]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [05:30:52]RasterBufferAndPrint [05:30:52]line Счет N : (1)871564 [05:30:52]line ИНН: 02508201610067 [05:30:52]line Контрольно-Кассовый Чек [05:30:52]line ПРОДАЖА [05:30:52]line ТРК (МРК, ГНК) : 11 [05:30:52]line Товар: 2710194210 [05:30:52]line ДТ(л)-К-4 [05:30:52]line 26.250 * 76.20 [05:30:52]line = 2000.25 [05:30:52]line НДС 12% НСП 1% [05:30:52]line > о реализуемом товаре [05:30:52]line ОКРУГЛЕНИЕ: -0.25 [05:30:52]line ИТОГО: 2000.00 [05:30:52]line Внесено: 2000.00 [05:30:52]line СДАЧА: 0.00 [05:30:52]line НСП 1% : 17.70 [05:30:52]line НДС 12% : 212.42 [05:30:52]line Наличными: 2000.00 [05:30:52]line Безнал.: 0.00 [05:30:52]line Место: АЗС № 137 "Партнер Нефть" [05:30:52]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [05:30:52]line СНО: Общий режим [05:30:52]line Чек 27 22.09.2024 05:30 [05:30:52]line Смена: 70 ФФД: 1.0 [05:30:52]line ЗНМ: 0300000041 [05:30:52]line РНМ: 0000000000190446 [05:30:52]line Версия ККМ: v1.0 [05:30:52]line ФМ: 0000000002094258 [05:30:52]line ФД: 7629 [05:30:52]line ФПД: 71747193191931 [05:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T053050&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7629&fm=71747193191931&tin=02508201610067®Number=0000000000190446&sum=200000 [05:30:52]written 0, free lines is 4095 [05:30:53]Write to MH i2c: 01 00 00 88 01 89 [05:30:53]Write i2c OK [05:30:53]MH_I2C_Read... [05:30:53]Read from MH i2c: 01 [05:30:53]MH_I2C_Read... [05:30:53]Read from MH i2c: 01 07 00 [05:30:53]MH_I2C_Read... [05:30:53]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 F0 0C 8C [05:30:53]RasterBufferAndPrint [05:30:53]line [05:30:53]line [05:30:53]line [05:30:53]line [05:30:53]line [05:30:53]written 0, free lines is 3318 [05:30:53]MH_Cut [05:30:53]Write to MH i2c: D1 01 00 8F 01 01 62 [05:30:53]Write i2c OK [05:30:53]MH_I2C_Read... [05:30:53]Read from MH i2c: D1 [05:30:53]MH_I2C_Read... [05:30:53]Read from MH i2c: D1 01 00 [05:30:53]MH_I2C_Read... [05:30:53]Read from MH i2c: D1 01 00 8F 01 00 61 [05:30:53]Write to MH i2c: 01 00 00 90 01 91 [05:30:53]Write i2c OK [05:30:53]MH_I2C_Read... [05:30:53]Connected sock=11 [05:30:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 8D 6E 08 01 CE F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8A AB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CD 1D 00 00 35 04 06 00 41 40 F1 F6 BD FB D1 77 18 CF A9 F8 83 39 [05:30:53]*** Cut start [05:30:53]*** Purtial cut [05:30:53]*** Stage 1: CUTSNS_PIN = 1 [05:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 A3 93 47 00 B5 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CD 1D 00 00 F4 03 04 00 4B 56 EF 66 B6 04 01 00 00 3C 76 93 F1 66 D8 9F 54 [05:30:53]CommunicateWithHost err = 0 [05:30:53]CheckOFDResponse [05:30:53]1017 (14) - 77093643461234 [05:30:53]1041 (16) - 0000000002094258 [05:30:53]1040 (4) - 7629 [05:30:53]1012 (4) - 21.09.2024 23:27 [05:30:53]1206 (1) - 0 [05:30:53]OFD Sender: Remove packet 7629 [05:30:53]ProducePacketName [05:30:53]name=ofd_packets/00007629 [05:30:53]NVStorageDeleteData [05:30:53]Read from MH i2c: 01 [05:30:53]MH_I2C_Read... [05:30:53]*** Stop cut motor [05:30:54]*** Cut end [05:30:54]Read from MH i2c: 01 07 00 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [05:30:54]process_action close_receipt done [05:30:54]requested_data is exist [05:30:54]produce_requested_data [05:30:54]requested_item fm.sn is exist - process it [05:30:54]wFMCommunicate request_size=4 [05:30:54]MH_SAM_APDU [05:30:54]CAPDU: 80 11 00 00 [05:30:54]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [05:30:54]Write i2c OK [05:30:54]MH_I2C_Read... [05:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:54]Read from MH i2c: E2 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 17 00 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5D [05:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:30:54]wFMCommunicate OK [05:30:54]requested_item fd.num is exist - process it [05:30:54]SAM_PROTO_GetFieldsCounters [05:30:54]wFMCommunicate request_size=4 [05:30:54]MH_SAM_APDU [05:30:54]CAPDU: 80 13 00 00 [05:30:54]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [05:30:54]Write i2c OK [05:30:54]MH_I2C_Read... [05:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:54]Read from MH i2c: E2 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 62 00 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CD 1D 00 00 0E 04 04 00 46 00 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 AE [05:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CD 1D 00 00 0E 04 04 00 46 00 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 [05:30:54]wFMCommunicate OK [05:30:54]SAM_PROTO_GetFieldsCounters done [05:30:54]requested_item shift.num is exist - process it [05:30:54]requested_item shift.opened is exist - process it [05:30:54]req_shift_opened [05:30:54]FM_GetShiftState [05:30:54]SAM_PROTO_GetShiftState [05:30:54]wFMCommunicate request_size=4 [05:30:54]MH_SAM_APDU [05:30:54]CAPDU: 80 13 01 00 [05:30:54]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [05:30:54]Write i2c OK [05:30:54]MH_I2C_Read... [05:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:54]Read from MH i2c: E2 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 0E 00 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D4 [05:30:54]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:30:54]wFMCommunicate OK [05:30:54]SAM_PROTO_GetShiftState done [05:30:54]FM_GetShiftState done [05:30:54]req_shift_opened done [05:30:54]requested_item shift.open_date is exist - process it [05:30:54]req_shift_open_date [05:30:54]req_shift_open_date done [05:30:54]produce_requested_data done [05:30:54]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7629,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [05:30:54]process_action_free close_receipt [05:30:54]json_value_free [05:30:54]json_value_free done [05:30:54]process_json_proto returns [05:30:54]Send response to host [05:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7629,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [05:30:54]free response buf [05:30:54]execute_script done [05:30:54]execute_script returns [05:30:54]free content buf [05:30:54]Sock 8.Close socket [05:30:54]Sock 8.Thread stoped [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:58]accept exits with 9 [05:31:58]New connection [05:31:58]New thread 3066781028 created [05:31:58]Thread 3066924388 joined [05:31:58]Waiting for new connection... [05:31:58] Sock 9.Parse request [05:31:58]Sock 9.Check first char [05:31:58]Sock 9.First char is OK [05:31:58]request: POST /json_proto HTTP/1.0 [05:31:58]Method: POST [05:31:58]URL: /json_proto [05:31:58]Method is POST - this is cgi request [05:31:58]url: /json_proto [05:31:58]query_string will be loaded in cgi processing [05:31:58]execute_cgi json_proto POST (null) [05:31:58]execute_cgi path=json_proto method=POST [05:31:58]POST find Content-Length [05:31:58]Host: 172.17.47.195:8080 [05:31:58]Content-Length: 805 [05:31:58]Content-Type: application/json [05:31:58] [05:31:58]POST finish read [05:31:58]Found Content-Length = 805 [05:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.280, "sum" : 402.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 402.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:31:58]execute_script... [05:31: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)871565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.280, "sum" : 402.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 402.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:31:58]POST & json_proto [05:31:58]process_json_proto [05:31:58]json parsed OK: [05:31:58]protocol is kg_v1.0 [05:31:58]action value=close_receipt [05:31:58]process_action close_receipt [05:31:58]cmd_close_receipt [05:31:58]MH_GetDate [05:31:58]Write to MH i2c: F0 00 00 94 01 84 [05:31:58]Write i2c OK [05:31:58]MH_I2C_Read... [05:31:58]Read from MH i2c: F0 [05:31:58]MH_I2C_Read... [05:31:58]Read from MH i2c: F0 09 00 [05:31:58]MH_I2C_Read... [05:31:58]Read from MH i2c: F0 09 00 94 01 00 CE AB EF 66 96 2E 95 66 1A [05:31:58]GetLastDocTimeStamp 1726983050 [05:31:58]current date 1726983118 [05:31:58]FM_GetShiftState [05:31:58]SAM_PROTO_GetShiftState [05:31:58]wFMCommunicate request_size=4 [05:31:58]MH_SAM_APDU [05:31:58]CAPDU: 80 13 01 00 [05:31:58]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [05:31:58]Write i2c OK [05:31:58]MH_I2C_Read... [05:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:58]Read from MH i2c: E2 [05:31:58]MH_I2C_Read... [05:31:58]Read from MH i2c: E2 0E 00 [05:31:58]MH_I2C_Read... [05:31:58]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D6 [05:31:58]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:31:58]wFMCommunicate OK [05:31:58]SAM_PROTO_GetShiftState done [05:31:58]FM_GetShiftState done [05:31:58]opened in 1726964224 [05:31:58]opened+sec_in_day 1727050624 [05:31:58]quantity*price = 40233 [05:31:58]sum+1 = 40235 [05:31:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 402.34 НСП 1% : 3.56 НДС 12% : 42.73 Наличными: 0.00 Безнал.: 402.34 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 28 22.09.2024 05:31 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7630 ФПД: 177437145535848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T053158&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7630&fm=177437145535848&tin=02508201610067®Number=0000000000190446&sum=40234 [05:31:59]StoreToDocumentArchive [05:31:59]shift 70 fd 7630 [05:31:59]save to /storage/0070/doc_00007630 [05:31:59]save last doc name /storage/0070/doc_00007630 to /storage/kkm_last_doc_name [05:31:59]save OK [05:31:59]Clear old archive folders... [05:31:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:31:59]tlvbuf is 01209D00 [05:31:59]SAM_PROTO_ClearQueue [05:31:59]wFMCommunicate request_size=4 [05:31:59]MH_SAM_APDU [05:31:59]CAPDU: 80 09 00 00 [05:31:59]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [05:31:59]Write i2c OK [05:31:59]MH_I2C_Read... [05:31:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:31:59]Read from MH i2c: E2 [05:31:59]MH_I2C_Read... [05:31:59]Read from MH i2c: E2 03 00 [05:31:59]MH_I2C_Read... [05:31:59]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [05:31:59]RAPDU: 90 00 [05:31:59]wFMCommunicate OK [05:31:59]SAM_PROTO_ClearQueue done [05:31:59]KKMCreateOFDPacket [05:31:59]OFDProtocolAddRootSTLVToBuf [05:31:59]FM_MakeSignedData [05:31:59]FM_MakeSignedData [05:31:59]SAM_PROTO_SignData [05:31:59]wFMCommunicate request_size=4 [05:31:59]MH_SAM_APDU [05:31:59]CAPDU: 80 0D 01 02 [05:31:59]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [05:31:59]Write i2c OK [05:31:59]MH_I2C_Read... [05:31:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:31:59]Read from MH i2c: E2 [05:31:59]MH_I2C_Read... [05:31:59]Read from MH i2c: E2 03 00 [05:31:59]MH_I2C_Read... [05:31:59]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [05:31:59]RAPDU: 90 00 [05:31:59]wFMCommunicate OK [05:31:59]wFMCommunicate request_size=255 [05:31:59]MH_SAM_APDU [05:31:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2A 9D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 9D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 CE AB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CE 1D 00 00 35 04 06 00 [05:31:59]Write to MH i2c: E2 02 01 A4 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 34 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2A 9D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 9D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 CE AB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CE 1D 00 00 35 04 06 00 00 00 89 [05:31:59]Write i2c OK [05:31:59]MH_I2C_Read... [05:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:00]Read from MH i2c: E2 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: E2 03 00 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [05:32:00]RAPDU: 90 00 [05:32:00]wFMCommunicate OK [05:32:00]wFMCommunicate request_size=11 [05:32:00]MH_SAM_APDU [05:32:00]CAPDU: 80 0D 02 02 06 A1 60 CE 07 95 68 [05:32:00]Write to MH i2c: E2 0E 00 A5 01 80 0D 02 02 06 00 A1 60 CE 07 95 68 00 00 FF [05:32:00]Write i2c OK [05:32:00]MH_I2C_Read... [05:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:00]Read from MH i2c: E2 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: E2 03 00 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [05:32:00]RAPDU: 90 00 [05:32:00]wFMCommunicate OK [05:32:00]wFMCommunicate request_size=4 [05:32:00]MH_SAM_APDU [05:32:00]CAPDU: 80 0D 03 02 [05:32:00]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [05:32:00]Write i2c OK [05:32:00]MH_I2C_Read... [05:32:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:00]Read from MH i2c: E2 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: E2 0B 00 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: E2 0B 00 A6 01 00 51 8D 12 C2 EF 37 27 B1 90 00 D3 [05:32:00]RAPDU: 51 8D 12 C2 EF 37 27 B1 90 00 [05:32:00]wFMCommunicate OK [05:32:00]SAM_PROTO_SignData done [05:32:00]FM_MakeSignedData done [05:32:00]CreateOFDProtocolMessage [05:32:00]wFMCommunicate request_size=4 [05:32:00]MH_SAM_APDU [05:32:00]CAPDU: 80 11 00 00 [05:32:00]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [05:32:00]Write i2c OK [05:32:00]MH_I2C_Read... [05:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:00]Read from MH i2c: E2 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: E2 17 00 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 73 [05:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:32:00]wFMCommunicate OK [05:32:00]CreateOFDProtocolMessage done [05:32:00]OFDSenderStorePacket 7630 [05:32:00]StoreOFDPacket docnum=7630 [05:32:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 09 1C 08 01 58 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2A 9D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 9D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 CE AB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CE 1D 00 00 35 04 06 00 A1 60 CE 07 95 68 51 8D 12 C2 EF 37 27 B1 [05:32:00]CheckFolder [05:32:00]dirname=/storage/ofd_packets [05:32:00]CheckFolder done [05:32:00]ProducePacketName [05:32:00]name=ofd_packets/00007630 [05:32:00]NVStorageSaveData ofd_packets/00007630 [05:32:00]File name is /storage/ofd_packets/00007630 [05:32:00]Write 302 bytes [05:32:00]NVStorageSaveData done [05:32:00]OFDSenderStorePacket done [05:32:00]KKMCreateOFDPacket done [05:32:00]NVStorageSaveData kkm_last_timestamp [05:32:00]File name is /storage/kkm_last_timestamp [05:32:00]Write 4 bytes [05:32:00]NVStorageSaveData done [05:32:00]ExternCall_PrintAddStr [05:32:00]wPrintStart [05:32:00]Write to MH i2c: 01 00 00 A8 01 A9 [05:32:00]Write i2c OK [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: 01 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: 01 07 00 [05:32:00]MH_I2C_Read... [05:32:00]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [05:32:00]RasterBufferAndPrint [05:32:00]line Счет N : (1)871565 [05:32:00]line ИНН: 02508201610067 [05:32:00]line Контрольно-Кассовый Чек [05:32:00]line ПРОДАЖА [05:32:00]line ТРК (МРК, ГНК) : 44 [05:32:00]line Товар: 2710194210 [05:32:00]line ДТ(л)-К-4 [05:32:00]line 5.280 * 76.20 [05:32:00]line = 402.34 [05:32:00]line НДС 12% НСП 1% [05:32:00]line > о реализуемом товаре [05:32:00]line ИТОГО: 402.34 [05:32:00]line НСП 1% : 3.56 [05:32:00]line НДС 12% : 42.73 [05:32:00]line Наличными: 0.00 [05:32:00]line Безнал.: 402.34 [05:32:00]line Место: АЗС № 137 "Партнер Нефть" [05:32:00]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [05:32:00]line СНО: Общий режим [05:32:00]line Чек 28 22.09.2024 05:31 [05:32:00]line Смена: 70 ФФД: 1.0 [05:32:00]line ЗНМ: 0300000041 [05:32:00]line РНМ: 0000000000190446 [05:32:00]line Версия ККМ: v1.0 [05:32:00]line Платежная система: O! деньги [05:32:00]line ФМ: 0000000002094258 [05:32:00]line ФД: 7630 [05:32:00]line ФПД: 177437145535848 [05:32:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T053158&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7630&fm=177437145535848&tin=02508201610067®Number=0000000000190446&sum=40234 [05:32:00]OFD Sender: Processing packet 7630 [packets to send 51, broken 50] [05:32:00]ProducePacketName [05:32:00]name=ofd_packets/00007630 [05:32:00]OFD Sender: To server: pG, [05:32:00]CommunicateWithHost lk.salyk.kg:30040 [05:32:00]ConnectInit lk.salyk.kg [05:32:00]written 0, free lines is 4095 [05:32:00]Connected sock=10 [05:32:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 09 1C 08 01 58 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2A 9D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 9D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 CE AB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CE 1D 00 00 35 04 06 00 A1 60 CE 07 95 68 51 8D 12 C2 EF 37 27 B1 [05:32:01]Write to MH i2c: 01 00 00 D2 01 D3 [05:32:01]Write i2c OK [05:32:01]MH_I2C_Read... [05:32:01]Read from MH i2c: 01 [05:32:01]MH_I2C_Read... [05:32:01]Read from MH i2c: 01 07 00 [05:32:01]MH_I2C_Read... [05:32:01]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 16 0D FD [05:32:01]RasterBufferAndPrint [05:32:01]line [05:32:01]line [05:32:01]line [05:32:01]line [05:32:01]line [05:32:01]written 0, free lines is 3359 [05:32:01]MH_Cut [05:32:01]Write to MH i2c: D1 01 00 D9 01 01 AC [05:32:01]Write i2c OK [05:32:01]MH_I2C_Read... [05:32:01]Read from MH i2c: D1 [05:32:01]MH_I2C_Read... [05:32:01]Read from MH i2c: D1 01 00 [05:32:01]MH_I2C_Read... [05:32:01]Read from MH i2c: D1 01 00 D9 01 00 AB [05:32:01]Write to MH i2c: 01 00 00 DA 01 DB [05:32:01]Write i2c OK [05:32:01]MH_I2C_Read... [05:32:01]*** Cut start [05:32:01]*** Purtial cut [05:32:01]*** Stage 1: CUTSNS_PIN = 1 [05:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 D8 28 47 00 A9 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 32 30 39 34 32 35 38 10 04 04 00 CE 1D 00 00 F4 03 04 00 8E 56 EF 66 B6 04 01 00 00 67 FB 99 D9 17 29 0C 87 [05:32:02]CommunicateWithHost err = 0 [05:32:02]CheckOFDResponse [05:32:02]1017 (14) - 77093643461234 [05:32:02]1041 (16) - 0000000002094258 [05:32:02]1040 (4) - 7630 [05:32:02]1012 (4) - 21.09.2024 23:28 [05:32:02]1206 (1) - 0 [05:32:02]OFD Sender: Remove packet 7630 [05:32:02]ProducePacketName [05:32:02]name=ofd_packets/00007630 [05:32:02]NVStorageDeleteData [05:32:02]Read from MH i2c: 01 [05:32:02]MH_I2C_Read... [05:32:02]*** Stop cut motor [05:32:02]*** Cut end [05:32:02]Read from MH i2c: 01 07 00 [05:32:02]MH_I2C_Read... [05:32:02]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [05:32:02]process_action close_receipt done [05:32:02]requested_data is exist [05:32:02]produce_requested_data [05:32:02]requested_item fm.sn is exist - process it [05:32:02]wFMCommunicate request_size=4 [05:32:02]MH_SAM_APDU [05:32:02]CAPDU: 80 11 00 00 [05:32:02]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [05:32:02]Write i2c OK [05:32:02]MH_I2C_Read... [05:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:02]Read from MH i2c: E2 [05:32:02]MH_I2C_Read... [05:32:02]Read from MH i2c: E2 17 00 [05:32:02]MH_I2C_Read... [05:32:02]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A7 [05:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:32:02]wFMCommunicate OK [05:32:02]requested_item fd.num is exist - process it [05:32:02]SAM_PROTO_GetFieldsCounters [05:32:02]wFMCommunicate request_size=4 [05:32:02]MH_SAM_APDU [05:32:02]CAPDU: 80 13 00 00 [05:32:02]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [05:32:02]Write i2c OK [05:32:02]MH_I2C_Read... [05:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:02]Read from MH i2c: E2 [05:32:02]MH_I2C_Read... [05:32:02]Read from MH i2c: E2 62 00 [05:32:02]MH_I2C_Read... [05:32:02]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CE 1D 00 00 0E 04 04 00 46 00 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 FC [05:32:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CE 1D 00 00 0E 04 04 00 46 00 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 [05:32:02]wFMCommunicate OK [05:32:02]SAM_PROTO_GetFieldsCounters done [05:32:02]requested_item shift.num is exist - process it [05:32:02]requested_item shift.opened is exist - process it [05:32:02]req_shift_opened [05:32:02]FM_GetShiftState [05:32:02]SAM_PROTO_GetShiftState [05:32:02]wFMCommunicate request_size=4 [05:32:02]MH_SAM_APDU [05:32:02]CAPDU: 80 13 01 00 [05:32:02]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [05:32:02]Write i2c OK [05:32:02]MH_I2C_Read... [05:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:02]Read from MH i2c: E2 [05:32:02]MH_I2C_Read... [05:32:02]Read from MH i2c: E2 0E 00 [05:32:02]MH_I2C_Read... [05:32:02]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 1E [05:32:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:32:02]wFMCommunicate OK [05:32:02]SAM_PROTO_GetShiftState done [05:32:02]FM_GetShiftState done [05:32:02]req_shift_opened done [05:32:02]requested_item shift.open_date is exist - process it [05:32:02]req_shift_open_date [05:32:02]req_shift_open_date done [05:32:02]produce_requested_data done [05:32:02]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7630,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [05:32:02]process_action_free close_receipt [05:32:02]json_value_free [05:32:02]json_value_free done [05:32:02]process_json_proto returns [05:32:02]Send response to host [05:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7630,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [05:32:02]free response buf [05:32:02]execute_script done [05:32:02]execute_script returns [05:32:02]free content buf [05:32:02]Sock 9.Close socket [05:32:02]Sock 9.Thread stoped [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:44]recv_with_timeout no data received [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]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: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: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:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:08]wFMCommunicate request_size=13 [05:38:08]MH_SAM_APDU [05:38:08]CAPDU: 80 15 02 00 08 F4 03 04 00 3F AD EF 66 [05:38:08]Write to MH i2c: E2 10 00 E8 01 80 15 02 00 08 00 F4 03 04 00 3F AD EF 66 00 00 B5 [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [05:38:08]Read from MH i2c: E2 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 03 00 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [05:38:08]RAPDU: 90 00 [05:38:08]wFMCommunicate OK [05:38:08]wFMCommunicate request_size=25 [05:38:08]MH_SAM_APDU [05:38:08]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 [05:38:08]Write to MH i2c: E2 1C 00 E9 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 00 00 CB [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [05:38:08]Read from MH i2c: E2 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 03 00 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [05:38:08]RAPDU: 90 00 [05:38:08]wFMCommunicate OK [05:38:08]wFMCommunicate request_size=4 [05:38:08]MH_SAM_APDU [05:38:08]CAPDU: 80 15 03 00 [05:38:08]Write to MH i2c: E2 08 00 EA 01 80 15 03 00 00 00 00 00 6C [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [05:38:08]Read from MH i2c: E2 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 40 00 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 40 00 EA 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CF 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1D 00 00 00 35 04 06 00 D6 11 37 D4 18 A2 90 00 5B [05:38:08]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CF 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1D 00 00 00 35 04 06 00 D6 11 37 D4 18 A2 90 00 [05:38:08]wFMCommunicate OK [05:38:08]SAM_PROTO_ProcessDocument answer len = 59 [05:38:08]SAM_PROTO_ProcessDocument done [05:38:08]SetTLVBufToDocument [05:38:08]Processing tag 1209 (04B9) [05:38:08]Malloc new data [05:38:08]Processing tag 1041 (0411) [05:38:08]Processing tag 1040 (0410) [05:38:08]Malloc new data [05:38:08]Processing tag 1038 (040E) [05:38:08]Malloc new data [05:38:08]Processing tag 1042 (0412) [05:38:08]Malloc new data [05:38:08]Processing tag 1077 (0435) [05:38:08]Malloc new data [05:38:08]SetTLVBufToDocument err=0 [05:38:08]KKMLoadAndSignReceiptData store KKM data [05:38:08]KKMLoadAndSignReceiptData err=0 [05:38:08]wFMCommunicate request_size=4 [05:38:08]MH_SAM_APDU [05:38:08]CAPDU: 80 11 00 00 [05:38:08]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:08]Read from MH i2c: E2 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 17 00 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 B7 [05:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:38:08]wFMCommunicate OK [05:38:08]Счет N : (1)871566 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 44 Товар: 2710194210 ДТ(л)-К-4 13.130 * 76.20 = 1000.51 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 29 22.09.2024 05:38 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7631 ФПД: 235369439434914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T053807&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7631&fm=235369439434914&tin=02508201610067®Number=0000000000190446&sum=100000 [05:38:08]StoreToDocumentArchive [05:38:08]shift 70 fd 7631 [05:38:08]save to /storage/0070/doc_00007631 [05:38:08]save last doc name /storage/0070/doc_00007631 to /storage/kkm_last_doc_name [05:38:08]save OK [05:38:08]Clear old archive folders... [05:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:38:08]tlvbuf is 0120B660 [05:38:08]SAM_PROTO_ClearQueue [05:38:08]wFMCommunicate request_size=4 [05:38:08]MH_SAM_APDU [05:38:08]CAPDU: 80 09 00 00 [05:38:08]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:38:08]Read from MH i2c: E2 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 03 00 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [05:38:08]RAPDU: 90 00 [05:38:08]wFMCommunicate OK [05:38:08]SAM_PROTO_ClearQueue done [05:38:08]KKMCreateOFDPacket [05:38:08]OFDProtocolAddRootSTLVToBuf [05:38:08]FM_MakeSignedData [05:38:08]FM_MakeSignedData [05:38:08]SAM_PROTO_SignData [05:38:08]wFMCommunicate request_size=4 [05:38:08]MH_SAM_APDU [05:38:08]CAPDU: 80 0D 01 02 [05:38:08]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:38:08]Read from MH i2c: E2 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 03 00 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [05:38:08]RAPDU: 90 00 [05:38:08]wFMCommunicate OK [05:38:08]wFMCommunicate request_size=255 [05:38:08]MH_SAM_APDU [05:38:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3F AD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CF 1D 00 00 35 04 06 00 [05:38:08]Write to MH i2c: E2 02 01 EE 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3F AD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CF 1D 00 00 35 04 06 00 00 00 60 [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:09]Read from MH i2c: E2 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 03 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [05:38:09]RAPDU: 90 00 [05:38:09]wFMCommunicate OK [05:38:09]wFMCommunicate request_size=11 [05:38:09]MH_SAM_APDU [05:38:09]CAPDU: 80 0D 02 02 06 D6 11 37 D4 18 A2 [05:38:09]Write to MH i2c: E2 0E 00 EF 01 80 0D 02 02 06 00 D6 11 37 D4 18 A2 00 00 22 [05:38:09]Write i2c OK [05:38:09]MH_I2C_Read... [05:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:09]Read from MH i2c: E2 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 03 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [05:38:09]RAPDU: 90 00 [05:38:09]wFMCommunicate OK [05:38:09]wFMCommunicate request_size=4 [05:38:09]MH_SAM_APDU [05:38:09]CAPDU: 80 0D 03 02 [05:38:09]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [05:38:09]Write i2c OK [05:38:09]MH_I2C_Read... [05:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:38:09]Read from MH i2c: E2 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 0B 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 0B 00 F0 01 00 1A 52 AE D8 C5 99 16 D2 90 00 A5 [05:38:09]RAPDU: 1A 52 AE D8 C5 99 16 D2 90 00 [05:38:09]wFMCommunicate OK [05:38:09]SAM_PROTO_SignData done [05:38:09]FM_MakeSignedData done [05:38:09]CreateOFDProtocolMessage [05:38:09]wFMCommunicate request_size=4 [05:38:09]MH_SAM_APDU [05:38:09]CAPDU: 80 11 00 00 [05:38:09]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [05:38:09]Write i2c OK [05:38:09]MH_I2C_Read... [05:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:09]Read from MH i2c: E2 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 17 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 BD [05:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:38:09]wFMCommunicate OK [05:38:09]CreateOFDProtocolMessage done [05:38:09]OFDSenderStorePacket 7631 [05:38:09]StoreOFDPacket docnum=7631 [05:38:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D6 B7 08 01 41 FF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3F AD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CF 1D 00 00 35 04 06 00 D6 11 37 D4 18 A2 1A 52 AE D8 C5 99 16 D2 [05:38:09]CheckFolder [05:38:09]dirname=/storage/ofd_packets [05:38:09]CheckFolder done [05:38:09]ProducePacketName [05:38:09]name=ofd_packets/00007631 [05:38:09]NVStorageSaveData ofd_packets/00007631 [05:38:09]File name is /storage/ofd_packets/00007631 [05:38:09]Write 302 bytes [05:38:09]NVStorageSaveData done [05:38:09]OFDSenderStorePacket done [05:38:09]KKMCreateOFDPacket done [05:38:09]NVStorageSaveData kkm_last_timestamp [05:38:09]File name is /storage/kkm_last_timestamp [05:38:09]Write 4 bytes [05:38:09]NVStorageSaveData done [05:38:09]ExternCall_PrintAddStr [05:38:09]wPrintStart [05:38:09]Write to MH i2c: 01 00 00 F2 01 F3 [05:38:09]Write i2c OK [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: 01 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: 01 07 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [05:38:09]RasterBufferAndPrint [05:38:09]line Счет N : (1)871566 [05:38:09]line ИНН: 02508201610067 [05:38:09]line Контрольно-Кассовый Чек [05:38:09]line ПРОДАЖА [05:38:09]line ТРК (МРК, ГНК) : 44 [05:38:09]line Товар: 2710194210 [05:38:09]line ДТ(л)-К-4 [05:38:09]line 13.130 * 76.20 [05:38:09]line = 1000.51 [05:38:09]line НДС 12% НСП 1% [05:38:09]line > о реализуемом товаре [05:38:09]line ОКРУГЛЕНИЕ: -0.51 [05:38:09]line ИТОГО: 1000.00 [05:38:09]line Внесено: 1000.00 [05:38:09]line СДАЧА: 0.00 [05:38:09]line НСП 1% : 8.85 [05:38:09]line НДС 12% : 106.25 [05:38:09]line Наличными: 1000.00 [05:38:09]line Безнал.: 0.00 [05:38:09]line Место: АЗС № 137 "Партнер Нефть" [05:38:09]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [05:38:09]line СНО: Общий режим [05:38:09]line Чек 29 22.09.2024 05:38 [05:38:09]line Смена: 70 ФФД: 1.0 [05:38:09]line ЗНМ: 0300000041 [05:38:09]line РНМ: 0000000000190446 [05:38:09]line Версия ККМ: v1.0 [05:38:09]line ФМ: 0000000002094258 [05:38:09]line ФД: 7631 [05:38:09]line ФПД: 235369439434914 [05:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T053807&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7631&fm=235369439434914&tin=02508201610067®Number=0000000000190446&sum=100000 [05:38:09]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:38:09]ProducePacketName [05:38:09]name=ofd_packets/00007631 [05:38:09]OFD Sender: To server: pG, [05:38:09]CommunicateWithHost lk.salyk.kg:30040 [05:38:09]ConnectInit lk.salyk.kg [05:38:09]written 0, free lines is 4095 [05:38:10]Write to MH i2c: 01 00 00 1D 02 1F [05:38:10]Write i2c OK [05:38:10]MH_I2C_Read... [05:38:10]Read from MH i2c: 01 [05:38:10]MH_I2C_Read... [05:38:10]Read from MH i2c: 01 07 00 [05:38:10]MH_I2C_Read... [05:38:10]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 F0 0C 22 [05:38:10]RasterBufferAndPrint [05:38:10]line [05:38:10]line [05:38:10]line [05:38:10]line [05:38:10]line [05:38:10]written 0, free lines is 3321 [05:38:10]MH_Cut [05:38:10]Write to MH i2c: D1 01 00 24 02 01 F8 [05:38:10]Write i2c OK [05:38:10]MH_I2C_Read... [05:38:10]Read from MH i2c: D1 [05:38:10]MH_I2C_Read... [05:38:10]Read from MH i2c: D1 01 00 [05:38:10]MH_I2C_Read... [05:38:10]Read from MH i2c: D1 01 00 24 02 00 F7 [05:38:10]Write to MH i2c: 01 00 00 25 02 27 [05:38:10]Write i2c OK [05:38:10]MH_I2C_Read... [05:38:10]*** Cut start [05:38:10]*** Purtial cut [05:38:10]*** Stage 1: CUTSNS_PIN = 1 [05:38:10]Read from MH i2c: 01 [05:38:10]MH_I2C_Read... [05:38:10]*** Stop cut motor [05:38:10]*** Cut end [05:38:10]Read from MH i2c: 01 07 00 [05:38:10]MH_I2C_Read... [05:38:10]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [05:38:10]process_action close_receipt done [05:38:10]requested_data is exist [05:38:10]produce_requested_data [05:38:10]requested_item fm.sn is exist - process it [05:38:10]wFMCommunicate request_size=4 [05:38:10]MH_SAM_APDU [05:38:10]CAPDU: 80 11 00 00 [05:38:10]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [05:38:10]Write i2c OK [05:38:10]MH_I2C_Read... [05:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:11]Read from MH i2c: E2 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: E2 17 00 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 F3 [05:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:38:11]wFMCommunicate OK [05:38:11]requested_item fd.num is exist - process it [05:38:11]SAM_PROTO_GetFieldsCounters [05:38:11]wFMCommunicate request_size=4 [05:38:11]MH_SAM_APDU [05:38:11]CAPDU: 80 13 00 00 [05:38:11]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [05:38:11]Write i2c OK [05:38:11]MH_I2C_Read... [05:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:38:11]Read from MH i2c: E2 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: E2 62 00 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CF 1D 00 00 0E 04 04 00 46 00 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 4C [05:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 CF 1D 00 00 0E 04 04 00 46 00 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 [05:38:11]wFMCommunicate OK [05:38:11]SAM_PROTO_GetFieldsCounters done [05:38:11]requested_item shift.num is exist - process it [05:38:11]requested_item shift.opened is exist - process it [05:38:11]req_shift_opened [05:38:11]FM_GetShiftState [05:38:11]SAM_PROTO_GetShiftState [05:38:11]wFMCommunicate request_size=4 [05:38:11]MH_SAM_APDU [05:38:11]CAPDU: 80 13 01 00 [05:38:11]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [05:38:11]Write i2c OK [05:38:11]MH_I2C_Read... [05:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:11]Read from MH i2c: E2 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: E2 0E 00 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6A [05:38:11]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:38:11]wFMCommunicate OK [05:38:11]SAM_PROTO_GetShiftState done [05:38:11]FM_GetShiftState done [05:38:11]req_shift_opened done [05:38:11]requested_item shift.open_date is exist - process it [05:38:11]req_shift_open_date [05:38:11]req_shift_open_date done [05:38:11]produce_requested_data done [05:38:11]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7631,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [05:38:11]process_action_free close_receipt [05:38:11]json_value_free [05:38:11]json_value_free done [05:38:11]process_json_proto returns [05:38:11]Send response to host [05:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7631,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [05:38:11]free response buf [05:38:11]execute_script done [05:38:11]execute_script returns [05:38:11]free content buf [05:38:11]Sock 8.Close socket [05:38:11]Sock 8.Thread stoped [05:38:14]ConnectInit Can't take IP for lk.salyk.kg [05:38:14]CommunicateWithHost connect error [05:38:14]CommunicateWithHost err = -1 [05:38:14]OFD Sender: Server communicate error [05:38:19]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:38:19]ProducePacketName [05:38:19]name=ofd_packets/00007631 [05:38:19]OFD Sender: To server: pG, [05:38:19]CommunicateWithHost lk.salyk.kg:30040 [05:38:19]ConnectInit lk.salyk.kg [05:38:24]ConnectInit Can't take IP for lk.salyk.kg [05:38:24]CommunicateWithHost connect error [05:38:24]CommunicateWithHost err = -1 [05:38:24]OFD Sender: Server communicate error [05:38:29]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:38:29]ProducePacketName [05:38:29]name=ofd_packets/00007631 [05:38:29]OFD Sender: To server: pG, [05:38:29]CommunicateWithHost lk.salyk.kg:30040 [05:38:29]ConnectInit lk.salyk.kg [05:38:34]ConnectInit Can't take IP for lk.salyk.kg [05:38:34]CommunicateWithHost connect error [05:38:34]CommunicateWithHost err = -1 [05:38:34]OFD Sender: Server communicate error [05:38:39]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:38:39]ProducePacketName [05:38:39]name=ofd_packets/00007631 [05:38:39]OFD Sender: To server: pG, [05:38:39]CommunicateWithHost lk.salyk.kg:30040 [05:38:39]ConnectInit lk.salyk.kg [05:38:44]ConnectInit Can't take IP for lk.salyk.kg [05:38:44]CommunicateWithHost connect error [05:38:44]CommunicateWithHost err = -1 [05:38:44]OFD Sender: Server communicate error [05:38:49]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:38:49]ProducePacketName [05:38:49]name=ofd_packets/00007631 [05:38:49]OFD Sender: To server: pG, [05:38:49]CommunicateWithHost lk.salyk.kg:30040 [05:38:49]ConnectInit lk.salyk.kg [05:38:54]ConnectInit Can't take IP for lk.salyk.kg [05:38:54]CommunicateWithHost connect error [05:38:54]CommunicateWithHost err = -1 [05:38:54]OFD Sender: Server communicate error [05:38:59]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:38:59]ProducePacketName [05:38:59]name=ofd_packets/00007631 [05:38:59]OFD Sender: To server: pG, [05:38:59]CommunicateWithHost lk.salyk.kg:30040 [05:38:59]ConnectInit lk.salyk.kg [05:39:04]ConnectInit Can't take IP for lk.salyk.kg [05:39:04]CommunicateWithHost connect error [05:39:04]CommunicateWithHost err = -1 [05:39:04]OFD Sender: Server communicate error [05:39:09]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:39:09]ProducePacketName [05:39:09]name=ofd_packets/00007631 [05:39:09]OFD Sender: To server: pG, [05:39:09]CommunicateWithHost lk.salyk.kg:30040 [05:39:09]ConnectInit lk.salyk.kg [05:39:14]ConnectInit Can't take IP for lk.salyk.kg [05:39:14]CommunicateWithHost connect error [05:39:14]CommunicateWithHost err = -1 [05:39:14]OFD Sender: Server communicate error [05:39:19]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:39:19]ProducePacketName [05:39:19]name=ofd_packets/00007631 [05:39:19]OFD Sender: To server: pG, [05:39:19]CommunicateWithHost lk.salyk.kg:30040 [05:39:19]ConnectInit lk.salyk.kg [05:39:24]ConnectInit Can't take IP for lk.salyk.kg [05:39:24]CommunicateWithHost connect error [05:39:24]CommunicateWithHost err = -1 [05:39:24]OFD Sender: Server communicate error [05:39:29]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:39:29]ProducePacketName [05:39:29]name=ofd_packets/00007631 [05:39:29]OFD Sender: To server: pG, [05:39:29]CommunicateWithHost lk.salyk.kg:30040 [05:39:29]ConnectInit lk.salyk.kg [05:39:34]ConnectInit Can't take IP for lk.salyk.kg [05:39:34]CommunicateWithHost connect error [05:39:34]CommunicateWithHost err = -1 [05:39:34]OFD Sender: Server communicate error [05:39:39]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:39:39]ProducePacketName [05:39:39]name=ofd_packets/00007631 [05:39:39]OFD Sender: To server: pG, [05:39:39]CommunicateWithHost lk.salyk.kg:30040 [05:39:39]ConnectInit lk.salyk.kg [05:39:44]ConnectInit Can't take IP for lk.salyk.kg [05:39:44]CommunicateWithHost connect error [05:39:44]CommunicateWithHost err = -1 [05:39:44]OFD Sender: Server communicate error [05:39:49]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:39:49]ProducePacketName [05:39:49]name=ofd_packets/00007631 [05:39:49]OFD Sender: To server: pG, [05:39:49]CommunicateWithHost lk.salyk.kg:30040 [05:39:49]ConnectInit lk.salyk.kg [05:39:54]ConnectInit Can't take IP for lk.salyk.kg [05:39:54]CommunicateWithHost connect error [05:39:54]CommunicateWithHost err = -1 [05:39:54]OFD Sender: Server communicate error [05:39:59]OFD Sender: Processing packet 7631 [packets to send 51, broken 50] [05:39:59]ProducePacketName [05:39:59]name=ofd_packets/00007631 [05:39:59]OFD Sender: To server: pG, [05:39:59]CommunicateWithHost lk.salyk.kg:30040 [05:39:59]ConnectInit lk.salyk.kg [05:40:04]ConnectInit Can't take IP for lk.salyk.kg [05:40:04]CommunicateWithHost connect error [05:40:04]CommunicateWithHost err = -1 [05:40:04]OFD Sender: Server communicate error [05:40:06]accept exits with 9 [05:40:06]New connection [05:40:06]New thread 3066781028 created [05:40:06]Thread 3066924388 joined [05:40:06]Waiting for new connection... [05:40:06] Sock 9.Parse request [05:40:06]Sock 9.Check first char [05:40:06]Sock 9.First char is OK [05:40:06]request: POST /json_proto HTTP/1.0 [05:40:06]Method: POST [05:40:06]URL: /json_proto [05:40:06]Method is POST - this is cgi request [05:40:06]url: /json_proto [05:40:06]query_string will be loaded in cgi processing [05:40:06]execute_cgi json_proto POST (null) [05:40:06]execute_cgi path=json_proto method=POST [05:40:06]POST find Content-Length [05:40:06]Host: 172.17.47.195:8080 [05:40:06]Content-Length: 677 [05:40:06]Content-Type: application/json [05:40:06] [05:40:06]POST finish read [05:40:06]Found Content-Length = 677 [05:40:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:06]execute_script... [05:40: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)871567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:06]POST & json_proto [05:40:06]process_json_proto [05:40:06]json parsed OK: [05:40:06]protocol is kg_v1.0 [05:40:06]action value=close_receipt [05:40:06]process_action close_receipt [05:40:06]cmd_close_receipt [05:40:06]MH_GetDate [05:40:06]Write to MH i2c: F0 00 00 29 02 1A [05:40:06]Write i2c OK [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: F0 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: F0 09 00 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: F0 09 00 29 02 00 B6 AD EF 66 96 2E 95 66 9A [05:40:06]GetLastDocTimeStamp 1726983487 [05:40:06]current date 1726983606 [05:40:06]FM_GetShiftState [05:40:06]SAM_PROTO_GetShiftState [05:40:06]wFMCommunicate request_size=4 [05:40:06]MH_SAM_APDU [05:40:06]CAPDU: 80 13 01 00 [05:40:06]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [05:40:06]Write i2c OK [05:40:06]MH_I2C_Read... [05:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:06]Read from MH i2c: E2 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: E2 0E 00 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6C [05:40:06]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:40:06]wFMCommunicate OK [05:40:06]SAM_PROTO_GetShiftState done [05:40:06]FM_GetShiftState done [05:40:06]opened in 1726964224 [05:40:06]opened+sec_in_day 1727050624 [05:40:06]quantity*price = 40002 [05:40:06]sum+1 = 40003 [05:40:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 30 22.09.2024 05:40 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7632 ФПД: 277136400750237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T054006&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7632&fm=277136400750237&tin=02508201610067®Number=0000000000190446&sum=40000 [05:40:07]StoreToDocumentArchive [05:40:07]shift 70 fd 7632 [05:40:07]save to /storage/0070/doc_00007632 [05:40:07]save last doc name /storage/0070/doc_00007632 to /storage/kkm_last_doc_name [05:40:07]save OK [05:40:07]Clear old archive folders... [05:40:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:40:07]tlvbuf is 01194550 [05:40:07]SAM_PROTO_ClearQueue [05:40:07]wFMCommunicate request_size=4 [05:40:07]MH_SAM_APDU [05:40:07]CAPDU: 80 09 00 00 [05:40:07]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [05:40:07]Write i2c OK [05:40:07]MH_I2C_Read... [05:40:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:40:07]Read from MH i2c: E2 [05:40:07]MH_I2C_Read... [05:40:07]Read from MH i2c: E2 03 00 [05:40:07]MH_I2C_Read... [05:40:07]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [05:40:07]RAPDU: 90 00 [05:40:07]wFMCommunicate OK [05:40:07]SAM_PROTO_ClearQueue done [05:40:07]KKMCreateOFDPacket [05:40:07]OFDProtocolAddRootSTLVToBuf [05:40:07]FM_MakeSignedData [05:40:07]FM_MakeSignedData [05:40:07]SAM_PROTO_SignData [05:40:07]wFMCommunicate request_size=4 [05:40:07]MH_SAM_APDU [05:40:07]CAPDU: 80 0D 01 02 [05:40:07]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [05:40:07]Write i2c OK [05:40:07]MH_I2C_Read... [05:40:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:40:07]Read from MH i2c: E2 [05:40:07]MH_I2C_Read... [05:40:07]Read from MH i2c: E2 03 00 [05:40:07]MH_I2C_Read... [05:40:07]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [05:40:07]RAPDU: 90 00 [05:40:07]wFMCommunicate OK [05:40:07]wFMCommunicate request_size=255 [05:40:07]MH_SAM_APDU [05:40:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 AD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D0 1D 00 00 35 04 06 00 FC [05:40:07]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 AD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D0 1D 00 00 35 04 06 00 FC 00 00 19 [05:40:07]Write i2c OK [05:40:07]MH_I2C_Read... [05:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:07]Read from MH i2c: E2 [05:40:07]MH_I2C_Read... [05:40:07]Read from MH i2c: E2 03 00 [05:40:07]MH_I2C_Read... [05:40:07]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [05:40:07]RAPDU: 90 00 [05:40:07]wFMCommunicate OK [05:40:07]wFMCommunicate request_size=10 [05:40:07]MH_SAM_APDU [05:40:07]CAPDU: 80 0D 02 02 05 0D D8 B8 96 9D [05:40:07]Write to MH i2c: E2 0D 00 3A 02 80 0D 02 02 05 00 0D D8 B8 96 9D 00 00 90 [05:40:08]Write i2c OK [05:40:08]MH_I2C_Read... [05:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:08]Read from MH i2c: E2 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: E2 03 00 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [05:40:08]RAPDU: 90 00 [05:40:08]wFMCommunicate OK [05:40:08]wFMCommunicate request_size=4 [05:40:08]MH_SAM_APDU [05:40:08]CAPDU: 80 0D 03 02 [05:40:08]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [05:40:08]Write i2c OK [05:40:08]MH_I2C_Read... [05:40:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:40:08]Read from MH i2c: E2 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: E2 0B 00 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: E2 0B 00 3B 02 00 0C 15 5B 86 40 60 CF 1C 90 00 46 [05:40:08]RAPDU: 0C 15 5B 86 40 60 CF 1C 90 00 [05:40:08]wFMCommunicate OK [05:40:08]SAM_PROTO_SignData done [05:40:08]FM_MakeSignedData done [05:40:08]CreateOFDProtocolMessage [05:40:08]wFMCommunicate request_size=4 [05:40:08]MH_SAM_APDU [05:40:08]CAPDU: 80 11 00 00 [05:40:08]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [05:40:08]Write i2c OK [05:40:08]MH_I2C_Read... [05:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:08]Read from MH i2c: E2 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: E2 17 00 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 09 [05:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:40:08]wFMCommunicate OK [05:40:08]CreateOFDProtocolMessage done [05:40:08]OFDSenderStorePacket 7632 [05:40:08]StoreOFDPacket docnum=7632 [05:40:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 80 D6 07 01 9B 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 AD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D0 1D 00 00 35 04 06 00 FC 0D D8 B8 96 9D 0C 15 5B 86 40 60 CF 1C [05:40:08]CheckFolder [05:40:08]dirname=/storage/ofd_packets [05:40:08]CheckFolder done [05:40:08]ProducePacketName [05:40:08]name=ofd_packets/00007632 [05:40:08]NVStorageSaveData ofd_packets/00007632 [05:40:08]File name is /storage/ofd_packets/00007632 [05:40:08]Write 301 bytes [05:40:08]NVStorageSaveData done [05:40:08]OFDSenderStorePacket done [05:40:08]KKMCreateOFDPacket done [05:40:08]NVStorageSaveData kkm_last_timestamp [05:40:08]File name is /storage/kkm_last_timestamp [05:40:08]Write 4 bytes [05:40:08]NVStorageSaveData done [05:40:08]ExternCall_PrintAddStr [05:40:08]wPrintStart [05:40:08]Write to MH i2c: 01 00 00 3D 02 3F [05:40:08]Write i2c OK [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: 01 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: 01 07 00 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [05:40:08]RasterBufferAndPrint [05:40:08]line Счет N : (1)871567 [05:40:08]line ИНН: 02508201610067 [05:40:08]line Контрольно-Кассовый Чек [05:40:08]line ПРОДАЖА [05:40:08]line ТРК (МРК, ГНК) : 33 [05:40:08]line Товар: 2710124130 [05:40:08]line Аи-92-К-5 [05:40:08]line 5.900 * 67.80 [05:40:08]line = 400.02 [05:40:08]line НДС 12% НСП 1% [05:40:08]line > о реализуемом товаре [05:40:08]line ОКРУГЛЕНИЕ: -0.02 [05:40:08]line ИТОГО: 400.00 [05:40:08]line Внесено: 400.00 [05:40:08]line СДАЧА: 0.00 [05:40:08]line НСП 1% : 3.54 [05:40:08]line НДС 12% : 42.48 [05:40:08]line Наличными: 400.00 [05:40:08]line Безнал.: 0.00 [05:40:08]line Место: АЗС № 137 "Партнер Нефть" [05:40:08]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [05:40:08]line СНО: Общий режим [05:40:08]line Чек 30 22.09.2024 05:40 [05:40:08]line Смена: 70 ФФД: 1.0 [05:40:08]line ЗНМ: 0300000041 [05:40:08]line РНМ: 0000000000190446 [05:40:08]line Версия ККМ: v1.0 [05:40:08]line ФМ: 0000000002094258 [05:40:08]line ФД: 7632 [05:40:08]line ФПД: 277136400750237 [05:40:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T054006&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7632&fm=277136400750237&tin=02508201610067®Number=0000000000190446&sum=40000 [05:40:08]written 0, free lines is 4095 [05:40:08]OFD Sender: Processing packet 7631 [packets to send 52, broken 50] [05:40:08]ProducePacketName [05:40:08]name=ofd_packets/00007631 [05:40:08]OFD Sender: To server: pG, [05:40:08]CommunicateWithHost lk.salyk.kg:30040 [05:40:08]ConnectInit lk.salyk.kg [05:40:08]Write to MH i2c: 01 00 00 68 02 6A [05:40:08]Write i2c OK [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: 01 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: 01 07 00 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 F3 0C 70 [05:40:08]RasterBufferAndPrint [05:40:08]line [05:40:08]line [05:40:08]line [05:40:08]line [05:40:08]line [05:40:08]written 0, free lines is 3327 [05:40:08]MH_Cut [05:40:08]Write to MH i2c: D1 01 00 6F 02 01 43 [05:40:08]Write i2c OK [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: D1 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: D1 01 00 [05:40:08]MH_I2C_Read... [05:40:08]Read from MH i2c: D1 01 00 6F 02 00 42 [05:40:08]Write to MH i2c: 01 00 00 70 02 72 [05:40:08]Write i2c OK [05:40:08]MH_I2C_Read... [05:40:09]*** Cut start [05:40:09]*** Purtial cut [05:40:09]*** Stage 1: CUTSNS_PIN = 1 [05:40:09]Read from MH i2c: 01 [05:40:09]MH_I2C_Read... [05:40:09]*** Stop cut motor [05:40:09]*** Cut end [05:40:09]Read from MH i2c: 01 07 00 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [05:40:09]process_action close_receipt done [05:40:09]requested_data is exist [05:40:09]produce_requested_data [05:40:09]requested_item fm.sn is exist - process it [05:40:09]wFMCommunicate request_size=4 [05:40:09]MH_SAM_APDU [05:40:09]CAPDU: 80 11 00 00 [05:40:09]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [05:40:09]Write i2c OK [05:40:09]MH_I2C_Read... [05:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:09]Read from MH i2c: E2 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: E2 17 00 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 3E [05:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [05:40:09]wFMCommunicate OK [05:40:09]requested_item fd.num is exist - process it [05:40:09]SAM_PROTO_GetFieldsCounters [05:40:09]wFMCommunicate request_size=4 [05:40:09]MH_SAM_APDU [05:40:09]CAPDU: 80 13 00 00 [05:40:09]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [05:40:09]Write i2c OK [05:40:09]MH_I2C_Read... [05:40:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:40:09]Read from MH i2c: E2 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: E2 62 00 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D0 1D 00 00 0E 04 04 00 46 00 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 9B [05:40:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D0 1D 00 00 0E 04 04 00 46 00 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 [05:40:09]wFMCommunicate OK [05:40:09]SAM_PROTO_GetFieldsCounters done [05:40:09]requested_item shift.num is exist - process it [05:40:09]requested_item shift.opened is exist - process it [05:40:09]req_shift_opened [05:40:09]FM_GetShiftState [05:40:09]SAM_PROTO_GetShiftState [05:40:09]wFMCommunicate request_size=4 [05:40:09]MH_SAM_APDU [05:40:09]CAPDU: 80 13 01 00 [05:40:09]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [05:40:09]Write i2c OK [05:40:09]MH_I2C_Read... [05:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:09]Read from MH i2c: E2 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: E2 0E 00 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B5 [05:40:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:40:09]wFMCommunicate OK [05:40:09]SAM_PROTO_GetShiftState done [05:40:09]FM_GetShiftState done [05:40:09]req_shift_opened done [05:40:09]requested_item shift.open_date is exist - process it [05:40:09]req_shift_open_date [05:40:09]req_shift_open_date done [05:40:09]produce_requested_data done [05:40:09]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7632,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [05:40:09]process_action_free close_receipt [05:40:09]json_value_free [05:40:09]json_value_free done [05:40:09]process_json_proto returns [05:40:09]Send response to host [05:40:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7632,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [05:40:09]free response buf [05:40:09]execute_script done [05:40:09]execute_script returns [05:40:09]free content buf [05:40:09]Sock 9.Close socket [05:40:09]Sock 9.Thread stoped [05:40:13]ConnectInit Can't take IP for lk.salyk.kg [05:40:13]CommunicateWithHost connect error [05:40:13]CommunicateWithHost err = -1 [05:40:13]OFD Sender: Server communicate error [05:40:18]OFD Sender: Processing packet 7631 [packets to send 52, broken 50] [05:40:18]ProducePacketName [05:40:18]name=ofd_packets/00007631 [05:40:18]OFD Sender: To server: pG, [05:40:18]CommunicateWithHost lk.salyk.kg:30040 [05:40:18]ConnectInit lk.salyk.kg [05:40:20]ConnectInit Can't connect to host [05:40:23]ConnectInit Can't take IP for lk.salyk.kg [05:40:23]CommunicateWithHost connect error [05:40:23]CommunicateWithHost err = -1 [05:40:23]OFD Sender: Server communicate error [05:40:28]OFD Sender: Processing packet 7631 [packets to send 52, broken 50] [05:40:28]ProducePacketName [05:40:28]name=ofd_packets/00007631 [05:40:28]OFD Sender: To server: pG, [05:40:28]CommunicateWithHost lk.salyk.kg:30040 [05:40:28]ConnectInit lk.salyk.kg [05:40:33]ConnectInit Can't take IP for lk.salyk.kg [05:40:33]CommunicateWithHost connect error [05:40:33]CommunicateWithHost err = -1 [05:40:33]OFD Sender: Server communicate error [05:40:38]OFD Sender: Processing packet 7631 [packets to send 52, broken 50] [05:40:38]ProducePacketName [05:40:38]name=ofd_packets/00007631 [05:40:38]OFD Sender: To server: pG, [05:40:38]CommunicateWithHost lk.salyk.kg:30040 [05:40:38]ConnectInit lk.salyk.kg [05:40:43]ConnectInit Can't take IP for lk.salyk.kg [05:40:43]CommunicateWithHost connect error [05:40:43]CommunicateWithHost err = -1 [05:40:43]OFD Sender: Server communicate error [05:40:48]OFD Sender: Processing packet 7631 [packets to send 52, broken 50] [05:40:48]ProducePacketName [05:40:48]name=ofd_packets/00007631 [05:40:48]OFD Sender: To server: pG, [05:40:48]CommunicateWithHost lk.salyk.kg:30040 [05:40:48]ConnectInit lk.salyk.kg [05:40:53]ConnectInit Can't take IP for lk.salyk.kg [05:40:53]CommunicateWithHost connect error [05:40:53]CommunicateWithHost err = -1 [05:40:53]OFD Sender: Server communicate error [05:40:58]OFD Sender: Processing packet 7631 [packets to send 52, broken 50] [05:40:58]ProducePacketName [05:40:58]name=ofd_packets/00007631 [05:40:58]OFD Sender: To server: pG, [05:40:58]CommunicateWithHost lk.salyk.kg:30040 [05:40:58]ConnectInit lk.salyk.kg [05:41:03]ConnectInit Can't take IP for lk.salyk.kg [05:41:03]CommunicateWithHost connect error [05:41:03]CommunicateWithHost err = -1 [05:41:03]OFD Sender: Server communicate error [05:41:08]OFD Sender: Processing packet 7631 [packets to send 52, broken 50] [05:41:08]ProducePacketName [05:41:08]name=ofd_packets/00007631 [05:41:08]OFD Sender: To server: pG, [05:41:08]CommunicateWithHost lk.salyk.kg:30040 [05:41:08]ConnectInit lk.salyk.kg [05:41:13]ConnectInit Can't take IP for lk.salyk.kg [05:41:13]CommunicateWithHost connect error [05:41:13]CommunicateWithHost err = -1 [05:41:13]OFD Sender: Server communicate error [05:41:18]OFD Sender: Processing packet 7631 [packets to send 52, broken 50] [05:41:18]ProducePacketName [05:41:18]name=ofd_packets/00007631 [05:41:18]OFD Sender: To server: pG, [05:41:18]CommunicateWithHost lk.salyk.kg:30040 [05:41:18]ConnectInit lk.salyk.kg [05:41:20]Connected sock=10 [05:41:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D6 B7 08 01 41 FF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3F AD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CF 1D 00 00 35 04 06 00 D6 11 37 D4 18 A2 1A 52 AE D8 C5 99 16 D2 [05:41:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 8C 34 47 00 9F 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 CF 1D 00 00 F4 03 04 00 BE 58 EF 66 B6 04 01 00 00 B7 F7 F8 E9 3E 8E FA 1B [05:41:23]CommunicateWithHost err = 0 [05:41:23]CheckOFDResponse [05:41:23]1017 (14) - 77093643461234 [05:41:23]1041 (16) - 0000000002094258 [05:41:23]1040 (4) - 7631 [05:41:23]1012 (4) - 21.09.2024 23:37 [05:41:23]1206 (1) - 0 [05:41:23]OFD Sender: Remove packet 7631 [05:41:23]ProducePacketName [05:41:23]name=ofd_packets/00007631 [05:41:23]NVStorageDeleteData [05:41:24]OFD Sender: Processing packet 7632 [packets to send 51, broken 50] [05:41:24]ProducePacketName [05:41:24]name=ofd_packets/00007632 [05:41:24]OFD Sender: To server: pG, [05:41:24]CommunicateWithHost lk.salyk.kg:30040 [05:41:24]ConnectInit lk.salyk.kg [05:41:25]Connected sock=10 [05:41:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 80 D6 07 01 9B 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 AD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D0 1D 00 00 35 04 06 00 FC 0D D8 B8 96 9D 0C 15 5B 86 40 60 CF 1C [05:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 10 26 47 00 36 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D0 1D 00 00 F4 03 04 00 C4 58 EF 66 B6 04 01 00 00 BD 4F AE C6 1E FC 82 66 [05:41:27]CommunicateWithHost err = 0 [05:41:27]CheckOFDResponse [05:41:27]1017 (14) - 77093643461234 [05:41:27]1041 (16) - 0000000002094258 [05:41:27]1040 (4) - 7632 [05:41:27]1012 (4) - 21.09.2024 23:37 [05:41:27]1206 (1) - 0 [05:41:27]OFD Sender: Remove packet 7632 [05:41:27]ProducePacketName [05:41:27]name=ofd_packets/00007632 [05:41:27]NVStorageDeleteData [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:35]recv_with_timeout no data received [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:41:59]recv_with_timeout no data received [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44: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: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: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: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:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:17]recv_with_timeout no data received [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:11]recv_with_timeout no data received [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:52:41]ConnectInit Can't connect to host [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:04]accept exits with 8 [05:57:04]New connection [05:57:04]New thread 3066924388 created [05:57:04]Thread 3066781028 joined [05:57:04]Waiting for new connection... [05:57:04] Sock 8.Parse request [05:57:04]Sock 8.Check first char [05:57:04]Sock 8.First char is OK [05:57:04]request: POST /json_proto HTTP/1.0 [05:57:04]Method: POST [05:57:04]URL: /json_proto [05:57:04]Method is POST - this is cgi request [05:57:04]url: /json_proto [05:57:04]query_string will be loaded in cgi processing [05:57:04]execute_cgi json_proto POST (null) [05:57:04]execute_cgi path=json_proto method=POST [05:57:04]POST find Content-Length [05:57:04]Host: 172.17.47.195:8080 [05:57:04]Content-Length: 682 [05:57:04]Content-Type: application/json [05:57:04] [05:57:04]POST finish read [05:57:04]Found Content-Length = 682 [05:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:04]execute_script... [05:57:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:04]POST & json_proto [05:57:04]process_json_proto [05:57:04]json parsed OK: [05:57:04]protocol is kg_v1.0 [05:57:04]action value=close_receipt [05:57:04]process_action close_receipt [05:57:04]cmd_close_receipt [05:57:04]MH_GetDate [05:57:04]Write to MH i2c: F0 00 00 74 02 65 [05:57:04]Write i2c OK [05:57:04]MH_I2C_Read... [05:57:04]Read from MH i2c: F0 [05:57:04]MH_I2C_Read... [05:57:04]Read from MH i2c: F0 09 00 [05:57:04]MH_I2C_Read... [05:57:04]Read from MH i2c: F0 09 00 74 02 00 B0 B1 EF 66 96 2E 95 66 E3 [05:57:04]GetLastDocTimeStamp 1726983606 [05:57:04]current date 1726984624 [05:57:04]FM_GetShiftState [05:57:04]SAM_PROTO_GetShiftState [05:57:04]wFMCommunicate request_size=4 [05:57:04]MH_SAM_APDU [05:57:04]CAPDU: 80 13 01 00 [05:57:04]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [05:57:04]Write i2c OK [05:57:04]MH_I2C_Read... [05:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:04]Read from MH i2c: E2 [05:57:04]MH_I2C_Read... [05:57:04]Read from MH i2c: E2 0E 00 [05:57:04]MH_I2C_Read... [05:57:04]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B7 [05:57:04]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [05:57:04]wFMCommunicate OK [05:57:04]SAM_PROTO_GetShiftState done [05:57:04]FM_GetShiftState done [05:57:04]opened in 1726964224 [05:57:04]opened+sec_in_day 1727050624 [05:57:04]quantity*price = 40005 [05:57:04]sum+1 = 40006 [05:57:04]Check (price>sum+1) || (price+1 о реализуемом товаре [06:22:22]line ОКРУГЛЕНИЕ: -0.05 [06:22:22]line ИТОГО: 400.00 [06:22:22]line Внесено: 400.00 [06:22:22]line СДАЧА: 0.00 [06:22:22]line НСП 1% : 3.54 [06:22:22]line НДС 12% : 42.48 [06:22:22]line Наличными: 400.00 [06:22:22]line Безнал.: 0.00 [06:22:22]line Место: АЗС № 137 "Партнер Нефть" [06:22:22]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [06:22:22]line СНО: Общий режим [06:22:22]line Чек 31 22.09.2024 05:57 [06:22:22]line Смена: 70 ФФД: 1.0 [06:22:22]line ЗНМ: 0300000041 [06:22:22]line РНМ: 0000000000190446 [06:22:22]line Версия ККМ: v1.0 [06:22:22]line ФМ: 0000000002094258 [06:22:22]line ФД: 7633 [06:22:22]line ФПД: 133535494515335 [06:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055704&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7633&fm=133535494515335&tin=02508201610067®Number=0000000000190446&sum=40000 [06:22:22]written 0, free lines is 4095 [06:22:23]Write to MH i2c: 01 00 00 48 00 48 [06:22:23]Write i2c OK [06:22:23]MH_I2C_Read... [06:22:23]Read from MH i2c: 01 [06:22:23]MH_I2C_Read... [06:22:23]Read from MH i2c: 01 07 00 [06:22:23]MH_I2C_Read... [06:22:23]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F3 0C 4E [06:22:23]RasterBufferAndPrint [06:22:23]line [06:22:23]line [06:22:23]line [06:22:23]line [06:22:23]line [06:22:23]written 0, free lines is 3333 [06:22:23]MH_Cut [06:22:23]Write to MH i2c: D1 01 00 4F 00 01 21 [06:22:23]Write i2c OK [06:22:23]MH_I2C_Read... [06:22:23]Read from MH i2c: D1 [06:22:23]MH_I2C_Read... [06:22:23]Read from MH i2c: D1 01 00 [06:22:23]MH_I2C_Read... [06:22:23]Read from MH i2c: D1 01 00 4F 00 00 20 [06:22:23]Write to MH i2c: 01 00 00 50 00 50 [06:22:23]Write i2c OK [06:22:23]MH_I2C_Read... [06:22:24]*** Cut start [06:22:24]*** Purtial cut [06:22:24]*** Stage 1: CUTSNS_PIN = 1 [06:22:24]Read from MH i2c: 01 [06:22:24]MH_I2C_Read... [06:22:24]*** Stop cut motor [06:22:24]*** Cut end [06:22:24]Read from MH i2c: 01 07 00 [06:22:24]MH_I2C_Read... [06:22:24]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [06:22:24]process_action print_doc done [06:22:24]requested_data is exist [06:22:24]produce_requested_data [06:22:24]produce_requested_data return (null) [06:22:24]process_action_free print_doc [06:22:24]json_value_free [06:22:24]json_value_free done [06:22:24]process_json_proto returns [06:22:24]Send response to host [06:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [06:22:24]free response buf [06:22:24]execute_script done [06:22:24]execute_script returns [06:22:24]free content buf [06:22:24]Sock 9.Close socket [06:22:24]Sock 9.Thread stoped [06:22:26]OFD Sender: Processing packet 7633 [packets to send 51, broken 50] [06:22:26]ProducePacketName [06:22:26]name=ofd_packets/00007633 [06:22:26]OFD Sender: To server: pG, [06:22:26]CommunicateWithHost lk.salyk.kg:30040 [06:22:26]ConnectInit lk.salyk.kg [06:22:29]Connected sock=9 [06:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 E3 D2 08 01 95 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B0 B1 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D1 1D 00 00 35 04 06 00 79 73 27 B7 2A 87 43 A2 B4 C0 75 78 2E 3F [06:22:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 EA 57 47 00 00 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 32 30 39 34 32 35 38 10 04 04 00 D1 1D 00 00 F4 03 04 00 64 62 EF 66 B6 04 01 00 00 26 ED F7 97 AC FF 1E DB [06:22:31]CommunicateWithHost err = 0 [06:22:31]CheckOFDResponse [06:22:31]1017 (14) - 77093643461234 [06:22:31]1041 (16) - 0000000002094258 [06:22:31]1040 (4) - 7633 [06:22:31]1012 (4) - 22.09.2024 00:18 [06:22:31]1206 (1) - 0 [06:22:31]OFD Sender: Remove packet 7633 [06:22:31]ProducePacketName [06:22:31]name=ofd_packets/00007633 [06:22:31]NVStorageDeleteData [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:04]recv_with_timeout no data received [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:29]accept exits with 7 [06:23:29]New connection [06:23:29]New thread 3066760548 created [06:23:29]Thread 3066903908 joined [06:23:29]Waiting for new connection... [06:23:29] Sock 7.Parse request [06:23:29]Sock 7.Check first char [06:23:29]Sock 7.First char is OK [06:23:29]request: POST /json_proto HTTP/1.0 [06:23:29]Method: POST [06:23:29]URL: /json_proto [06:23:29]Method is POST - this is cgi request [06:23:29]url: /json_proto [06:23:29]query_string will be loaded in cgi processing [06:23:29]execute_cgi json_proto POST (null) [06:23:29]execute_cgi path=json_proto method=POST [06:23:29]POST find Content-Length [06:23:29]Host: 172.17.47.195:8080 [06:23:29]Content-Length: 677 [06:23:29]Content-Type: application/json [06:23:29] [06:23:29]POST finish read [06:23:29]Found Content-Length = 677 [06:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871571", "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" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:29]execute_script... [06: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)871571", "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" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:29]POST & json_proto [06:23:29]process_json_proto [06:23:29]json parsed OK: [06:23:29]protocol is kg_v1.0 [06:23:29]action value=close_receipt [06:23:29]process_action close_receipt [06:23:29]cmd_close_receipt [06:23:29]MH_GetDate [06:23:29]Write to MH i2c: F0 00 00 51 00 40 [06:23:29]Write i2c OK [06:23:29]MH_I2C_Read... [06:23:29]Read from MH i2c: F0 [06:23:29]MH_I2C_Read... [06:23:29]Read from MH i2c: F0 09 00 [06:23:29]MH_I2C_Read... [06:23:29]Read from MH i2c: F0 09 00 51 00 00 E1 B7 EF 66 96 2E 95 66 F5 [06:23:29]GetLastDocTimeStamp 1726984624 [06:23:29]current date 1726986209 [06:23:29]FM_GetShiftState [06:23:29]SAM_PROTO_GetShiftState [06:23:29]wFMCommunicate request_size=4 [06:23:29]MH_SAM_APDU [06:23:29]CAPDU: 80 13 01 00 [06:23:29]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [06:23:29]Write i2c OK [06:23:29]MH_I2C_Read... [06:23:29]Read from MH i2c: E2 [06:23:29]MH_I2C_Read... [06:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:29]Read from MH i2c: E2 0E 00 [06:23:29]MH_I2C_Read... [06:23:29]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 92 [06:23:29]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [06:23:29]wFMCommunicate OK [06:23:29]SAM_PROTO_GetShiftState done [06:23:29]FM_GetShiftState done [06:23:29]opened in 1726964224 [06:23:29]opened+sec_in_day 1727050624 [06:23:29]quantity*price = 20001 [06:23:29]sum+1 = 20002 [06:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 32 22.09.2024 06:23 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7634 ФПД: 182015653642619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T062329&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7634&fm=182015653642619&tin=02508201610067®Number=0000000000190446&sum=20000 [06:23:30]StoreToDocumentArchive [06:23:30]shift 70 fd 7634 [06:23:30]save to /storage/0070/doc_00007634 [06:23:30]save last doc name /storage/0070/doc_00007634 to /storage/kkm_last_doc_name [06:23:30]save OK [06:23:30]Clear old archive folders... [06:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:23:30]tlvbuf is 005D7DC0 [06:23:30]SAM_PROTO_ClearQueue [06:23:30]wFMCommunicate request_size=4 [06:23:30]MH_SAM_APDU [06:23:30]CAPDU: 80 09 00 00 [06:23:30]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [06:23:30]Write i2c OK [06:23:30]MH_I2C_Read... [06:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:30]Read from MH i2c: E2 [06:23:30]MH_I2C_Read... [06:23:30]Read from MH i2c: E2 03 00 [06:23:30]MH_I2C_Read... [06:23:30]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [06:23:30]RAPDU: 90 00 [06:23:30]wFMCommunicate OK [06:23:30]SAM_PROTO_ClearQueue done [06:23:30]KKMCreateOFDPacket [06:23:30]OFDProtocolAddRootSTLVToBuf [06:23:30]FM_MakeSignedData [06:23:30]FM_MakeSignedData [06:23:30]SAM_PROTO_SignData [06:23:30]wFMCommunicate request_size=4 [06:23:30]MH_SAM_APDU [06:23:30]CAPDU: 80 0D 01 02 [06:23:30]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [06:23:30]Write i2c OK [06:23:30]MH_I2C_Read... [06:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:30]Read from MH i2c: E2 [06:23:30]MH_I2C_Read... [06:23:30]Read from MH i2c: E2 03 00 [06:23:30]MH_I2C_Read... [06:23:30]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [06:23:30]RAPDU: 90 00 [06:23:30]wFMCommunicate OK [06:23:30]wFMCommunicate request_size=255 [06:23:30]MH_SAM_APDU [06:23:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E1 B7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D2 1D 00 00 35 04 06 00 A5 [06:23:30]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E1 B7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D2 1D 00 00 35 04 06 00 A5 00 00 3E [06:23:30]Write i2c OK [06:23:30]MH_I2C_Read... [06:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:30]Read from MH i2c: E2 [06:23:30]MH_I2C_Read... [06:23:30]Read from MH i2c: E2 03 00 [06:23:30]MH_I2C_Read... [06:23:30]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [06:23:30]RAPDU: 90 00 [06:23:30]wFMCommunicate OK [06:23:30]wFMCommunicate request_size=10 [06:23:30]MH_SAM_APDU [06:23:30]CAPDU: 80 0D 02 02 05 8A D2 61 01 7B [06:23:30]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 8A D2 61 01 7B 00 00 1F [06:23:30]Write i2c OK [06:23:30]MH_I2C_Read... [06:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:31]Read from MH i2c: E2 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: E2 03 00 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [06:23:31]RAPDU: 90 00 [06:23:31]wFMCommunicate OK [06:23:31]wFMCommunicate request_size=4 [06:23:31]MH_SAM_APDU [06:23:31]CAPDU: 80 0D 03 02 [06:23:31]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [06:23:31]Write i2c OK [06:23:31]MH_I2C_Read... [06:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:31]Read from MH i2c: E2 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: E2 0B 00 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: E2 0B 00 63 00 00 DF 12 7E 74 86 04 76 34 90 00 F6 [06:23:31]RAPDU: DF 12 7E 74 86 04 76 34 90 00 [06:23:31]wFMCommunicate OK [06:23:31]SAM_PROTO_SignData done [06:23:31]FM_MakeSignedData done [06:23:31]CreateOFDProtocolMessage [06:23:31]wFMCommunicate request_size=4 [06:23:31]MH_SAM_APDU [06:23:31]CAPDU: 80 11 00 00 [06:23:31]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [06:23:31]Write i2c OK [06:23:31]MH_I2C_Read... [06:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:31]Read from MH i2c: E2 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: E2 17 00 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 2F [06:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [06:23:31]wFMCommunicate OK [06:23:31]CreateOFDProtocolMessage done [06:23:31]OFDSenderStorePacket 7634 [06:23:31]StoreOFDPacket docnum=7634 [06:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 55 6C 07 01 B4 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E1 B7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D2 1D 00 00 35 04 06 00 A5 8A D2 61 01 7B DF 12 7E 74 86 04 76 34 [06:23:31]CheckFolder [06:23:31]dirname=/storage/ofd_packets [06:23:31]CheckFolder done [06:23:31]ProducePacketName [06:23:31]name=ofd_packets/00007634 [06:23:31]NVStorageSaveData ofd_packets/00007634 [06:23:31]File name is /storage/ofd_packets/00007634 [06:23:31]Write 301 bytes [06:23:31]NVStorageSaveData done [06:23:31]OFDSenderStorePacket done [06:23:31]KKMCreateOFDPacket done [06:23:31]NVStorageSaveData kkm_last_timestamp [06:23:31]File name is /storage/kkm_last_timestamp [06:23:31]Write 4 bytes [06:23:31]NVStorageSaveData done [06:23:31]ExternCall_PrintAddStr [06:23:31]wPrintStart [06:23:31]Write to MH i2c: 01 00 00 65 00 65 [06:23:31]Write i2c OK [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: 01 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: 01 07 00 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [06:23:31]RasterBufferAndPrint [06:23:31]line Счет N : (1)871571 [06:23:31]line ИНН: 02508201610067 [06:23:31]line Контрольно-Кассовый Чек [06:23:31]line ПРОДАЖА [06:23:31]line ТРК (МРК, ГНК) : 63 [06:23:31]line Товар: 2710124130 [06:23:31]line Аи-92-К-5 [06:23:31]line 2.950 * 67.80 [06:23:31]line = 200.01 [06:23:31]line НДС 12% НСП 1% [06:23:31]line > о реализуемом товаре [06:23:31]line ОКРУГЛЕНИЕ: -0.01 [06:23:31]line ИТОГО: 200.00 [06:23:31]line Внесено: 200.00 [06:23:31]line СДАЧА: 0.00 [06:23:31]line НСП 1% : 1.77 [06:23:31]line НДС 12% : 21.24 [06:23:31]line Наличными: 200.00 [06:23:31]line Безнал.: 0.00 [06:23:31]line Место: АЗС № 137 "Партнер Нефть" [06:23:31]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [06:23:31]line СНО: Общий режим [06:23:31]line Чек 32 22.09.2024 06:23 [06:23:31]line Смена: 70 ФФД: 1.0 [06:23:31]line ЗНМ: 0300000041 [06:23:31]line РНМ: 0000000000190446 [06:23:31]line Версия ККМ: v1.0 [06:23:31]line ФМ: 0000000002094258 [06:23:31]line ФД: 7634 [06:23:31]line ФПД: 182015653642619 [06:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T062329&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7634&fm=182015653642619&tin=02508201610067®Number=0000000000190446&sum=20000 [06:23:31]OFD Sender: Processing packet 7634 [packets to send 51, broken 50] [06:23:31]ProducePacketName [06:23:31]name=ofd_packets/00007634 [06:23:31]OFD Sender: To server: pG, [06:23:31]CommunicateWithHost lk.salyk.kg:30040 [06:23:31]ConnectInit lk.salyk.kg [06:23:31]written 0, free lines is 4095 [06:23:31]Write to MH i2c: 01 00 00 90 00 90 [06:23:31]Write i2c OK [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: 01 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: 01 07 00 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 F3 0C 96 [06:23:31]RasterBufferAndPrint [06:23:31]line [06:23:31]line [06:23:31]line [06:23:31]line [06:23:31]line [06:23:31]written 0, free lines is 3321 [06:23:31]MH_Cut [06:23:31]Write to MH i2c: D1 01 00 97 00 01 69 [06:23:31]Write i2c OK [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: D1 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: D1 01 00 [06:23:31]MH_I2C_Read... [06:23:31]Read from MH i2c: D1 01 00 97 00 00 68 [06:23:31]Write to MH i2c: 01 00 00 98 00 98 [06:23:31]Write i2c OK [06:23:31]MH_I2C_Read... [06:23:32]*** Cut start [06:23:32]*** Purtial cut [06:23:32]*** Stage 1: CUTSNS_PIN = 1 [06:23:32]Read from MH i2c: 01 [06:23:32]MH_I2C_Read... [06:23:32]*** Stop cut motor [06:23:32]*** Cut end [06:23:32]Read from MH i2c: 01 07 00 [06:23:32]MH_I2C_Read... [06:23:32]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [06:23:32]process_action close_receipt done [06:23:32]requested_data is exist [06:23:32]produce_requested_data [06:23:32]requested_item fm.sn is exist - process it [06:23:32]wFMCommunicate request_size=4 [06:23:32]MH_SAM_APDU [06:23:32]CAPDU: 80 11 00 00 [06:23:32]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [06:23:32]Write i2c OK [06:23:32]MH_I2C_Read... [06:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:32]Read from MH i2c: E2 [06:23:32]MH_I2C_Read... [06:23:32]Read from MH i2c: E2 17 00 [06:23:32]MH_I2C_Read... [06:23:32]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 64 [06:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [06:23:32]wFMCommunicate OK [06:23:32]requested_item fd.num is exist - process it [06:23:32]SAM_PROTO_GetFieldsCounters [06:23:32]wFMCommunicate request_size=4 [06:23:32]MH_SAM_APDU [06:23:32]CAPDU: 80 13 00 00 [06:23:32]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [06:23:32]Write i2c OK [06:23:32]MH_I2C_Read... [06:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:33]Read from MH i2c: E2 [06:23:33]MH_I2C_Read... [06:23:33]Read from MH i2c: E2 62 00 [06:23:33]MH_I2C_Read... [06:23:33]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D2 1D 00 00 0E 04 04 00 46 00 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 C9 [06:23:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D2 1D 00 00 0E 04 04 00 46 00 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 [06:23:33]wFMCommunicate OK [06:23:33]SAM_PROTO_GetFieldsCounters done [06:23:33]requested_item shift.num is exist - process it [06:23:33]requested_item shift.opened is exist - process it [06:23:33]req_shift_opened [06:23:33]FM_GetShiftState [06:23:33]SAM_PROTO_GetShiftState [06:23:33]wFMCommunicate request_size=4 [06:23:33]MH_SAM_APDU [06:23:33]CAPDU: 80 13 01 00 [06:23:33]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [06:23:33]Write i2c OK [06:23:33]MH_I2C_Read... [06:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:33]Read from MH i2c: E2 [06:23:33]MH_I2C_Read... [06:23:33]Read from MH i2c: E2 0E 00 [06:23:33]MH_I2C_Read... [06:23:33]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 DB [06:23:33]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [06:23:33]wFMCommunicate OK [06:23:33]SAM_PROTO_GetShiftState done [06:23:33]FM_GetShiftState done [06:23:33]req_shift_opened done [06:23:33]requested_item shift.open_date is exist - process it [06:23:33]req_shift_open_date [06:23:33]req_shift_open_date done [06:23:33]produce_requested_data done [06:23:33]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7634,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [06:23:33]process_action_free close_receipt [06:23:33]json_value_free [06:23:33]json_value_free done [06:23:33]process_json_proto returns [06:23:33]Send response to host [06:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7634,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [06:23:33]free response buf [06:23:33]execute_script done [06:23:33]execute_script returns [06:23:33]free content buf [06:23:33]Sock 7.Close socket [06:23:33]Sock 7.Thread stoped [06:23:34]Connected sock=10 [06:23:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 55 6C 07 01 B4 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E1 B7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D2 1D 00 00 35 04 06 00 A5 8A D2 61 01 7B DF 12 7E 74 86 04 76 34 [06:23:36]accept exits with 9 [06:23:36]New connection [06:23:36]New thread 3066903908 created [06:23:36]Thread 3066760548 joined [06:23:36]Waiting for new connection... [06:23:36] Sock 9.Parse request [06:23:36]Sock 9.Check first char [06:23:36]Sock 9.First char is OK [06:23:36]request: POST /json_proto HTTP/1.0 [06:23:36]Method: POST [06:23:36]URL: /json_proto [06:23:36]Method is POST - this is cgi request [06:23:36]url: /json_proto [06:23:36]query_string will be loaded in cgi processing [06:23:36]execute_cgi json_proto POST (null) [06:23:36]execute_cgi path=json_proto method=POST [06:23:36]POST find Content-Length [06:23:36]Host: 172.17.47.195:8080 [06:23:36]Content-Length: 687 [06:23:36]Content-Type: application/json [06:23:36] [06:23:36]POST finish read [06:23:36]Found Content-Length = 687 [06:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:36]execute_script... [06:23: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)871569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:36]POST & json_proto [06:23:36]process_json_proto [06:23:36]json parsed OK: [06:23:36]protocol is kg_v1.0 [06:23:36]action value=close_receipt [06:23:36]process_action close_receipt [06:23:36]cmd_close_receipt [06:23:36]MH_GetDate [06:23:36]Write to MH i2c: F0 00 00 9C 00 8B [06:23:36]Write i2c OK [06:23:36]MH_I2C_Read... [06:23:36]Read from MH i2c: F0 [06:23:36]MH_I2C_Read... [06:23:36]Read from MH i2c: F0 09 00 [06:23:36]MH_I2C_Read... [06:23:36]Read from MH i2c: F0 09 00 9C 00 00 E9 B7 EF 66 96 2E 95 66 48 [06:23:36]GetLastDocTimeStamp 1726986209 [06:23:36]current date 1726986217 [06:23:36]FM_GetShiftState [06:23:36]SAM_PROTO_GetShiftState [06:23:36]wFMCommunicate request_size=4 [06:23:36]MH_SAM_APDU [06:23:36]CAPDU: 80 13 01 00 [06:23:36]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [06:23:36]Write i2c OK [06:23:36]MH_I2C_Read... [06:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:36]Read from MH i2c: E2 [06:23:36]MH_I2C_Read... [06:23:36]Read from MH i2c: E2 0E 00 [06:23:36]MH_I2C_Read... [06:23:36]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 DD [06:23:36]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [06:23:36]wFMCommunicate OK [06:23:36]SAM_PROTO_GetShiftState done [06:23:36]FM_GetShiftState done [06:23:36]opened in 1726964224 [06:23:36]opened+sec_in_day 1727050624 [06:23:36]quantity*price = 200025 [06:23:36]sum+1 = 200026 [06:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 33 22.09.2024 06:23 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7635 ФПД: 240564701697046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T062337&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7635&fm=240564701697046&tin=02508201610067®Number=0000000000190446&sum=200000 [06:23:37]StoreToDocumentArchive [06:23:37]shift 70 fd 7635 [06:23:37]save to /storage/0070/doc_00007635 [06:23:37]save last doc name /storage/0070/doc_00007635 to /storage/kkm_last_doc_name [06:23:37]save OK [06:23:37]Clear old archive folders... [06:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:23:37]tlvbuf is 0057E3A0 [06:23:37]SAM_PROTO_ClearQueue [06:23:37]wFMCommunicate request_size=4 [06:23:37]MH_SAM_APDU [06:23:37]CAPDU: 80 09 00 00 [06:23:37]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [06:23:37]Write i2c OK [06:23:37]MH_I2C_Read... [06:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:38]Read from MH i2c: E2 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 03 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [06:23:38]RAPDU: 90 00 [06:23:38]wFMCommunicate OK [06:23:38]SAM_PROTO_ClearQueue done [06:23:38]KKMCreateOFDPacket [06:23:38]OFDProtocolAddRootSTLVToBuf [06:23:38]FM_MakeSignedData [06:23:38]FM_MakeSignedData [06:23:38]SAM_PROTO_SignData [06:23:38]wFMCommunicate request_size=4 [06:23:38]MH_SAM_APDU [06:23:38]CAPDU: 80 0D 01 02 [06:23:38]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:38]Read from MH i2c: E2 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 03 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [06:23:38]RAPDU: 90 00 [06:23:38]wFMCommunicate OK [06:23:38]wFMCommunicate request_size=255 [06:23:38]MH_SAM_APDU [06:23:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E9 B7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D3 1D 00 00 35 04 06 00 [06:23:38]Write to MH i2c: E2 02 01 AC 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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E9 B7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D3 1D 00 00 35 04 06 00 00 00 C7 [06:23:38]OFD Sender: No OFD packet to send [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:38]Read from MH i2c: E2 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 03 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [06:23:38]RAPDU: 90 00 [06:23:38]wFMCommunicate OK [06:23:38]wFMCommunicate request_size=11 [06:23:38]MH_SAM_APDU [06:23:38]CAPDU: 80 0D 02 02 06 DA CA D5 97 14 16 [06:23:38]Write to MH i2c: E2 0E 00 AD 00 80 0D 02 02 06 00 DA CA D5 97 14 16 00 00 6D [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:38]Read from MH i2c: E2 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 03 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [06:23:38]RAPDU: 90 00 [06:23:38]wFMCommunicate OK [06:23:38]wFMCommunicate request_size=4 [06:23:38]MH_SAM_APDU [06:23:38]CAPDU: 80 0D 03 02 [06:23:38]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:38]Read from MH i2c: E2 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 0B 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 0B 00 AE 00 00 0C F9 B9 B7 5A 67 AB BC 90 00 C7 [06:23:38]RAPDU: 0C F9 B9 B7 5A 67 AB BC 90 00 [06:23:38]wFMCommunicate OK [06:23:38]SAM_PROTO_SignData done [06:23:38]FM_MakeSignedData done [06:23:38]CreateOFDProtocolMessage [06:23:38]wFMCommunicate request_size=4 [06:23:38]MH_SAM_APDU [06:23:38]CAPDU: 80 11 00 00 [06:23:38]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:38]Read from MH i2c: E2 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 17 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7A [06:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [06:23:38]wFMCommunicate OK [06:23:38]CreateOFDProtocolMessage done [06:23:38]OFDSenderStorePacket 7635 [06:23:38]StoreOFDPacket docnum=7635 [06:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 13 24 08 01 84 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E9 B7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D3 1D 00 00 35 04 06 00 DA CA D5 97 14 16 0C F9 B9 B7 5A 67 AB BC [06:23:38]CheckFolder [06:23:38]dirname=/storage/ofd_packets [06:23:38]CheckFolder done [06:23:38]ProducePacketName [06:23:38]name=ofd_packets/00007635 [06:23:38]NVStorageSaveData ofd_packets/00007635 [06:23:38]File name is /storage/ofd_packets/00007635 [06:23:38]Write 302 bytes [06:23:38]NVStorageSaveData done [06:23:38]OFDSenderStorePacket done [06:23:38]KKMCreateOFDPacket done [06:23:38]NVStorageSaveData kkm_last_timestamp [06:23:38]File name is /storage/kkm_last_timestamp [06:23:38]Write 4 bytes [06:23:38]NVStorageSaveData done [06:23:38]ExternCall_PrintAddStr [06:23:38]wPrintStart [06:23:38]Write to MH i2c: 01 00 00 B0 00 B0 [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: 01 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: 01 07 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [06:23:38]RasterBufferAndPrint [06:23:38]line Счет N : (1)871569 [06:23:38]line ИНН: 02508201610067 [06:23:38]line Контрольно-Кассовый Чек [06:23:38]line ПРОДАЖА [06:23:38]line ТРК (МРК, ГНК) : 44 [06:23:38]line Товар: 2710194210 [06:23:38]line ДТ(л)-К-4 [06:23:38]line 26.250 * 76.20 [06:23:38]line = 2000.25 [06:23:38]line НДС 12% НСП 1% [06:23:38]line > о реализуемом товаре [06:23:38]line ОКРУГЛЕНИЕ: -0.25 [06:23:38]line ИТОГО: 2000.00 [06:23:38]line Внесено: 2000.00 [06:23:38]line СДАЧА: 0.00 [06:23:38]line НСП 1% : 17.70 [06:23:38]line НДС 12% : 212.42 [06:23:38]line Наличными: 2000.00 [06:23:38]line Безнал.: 0.00 [06:23:38]line Место: АЗС № 137 "Партнер Нефть" [06:23:38]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [06:23:38]line СНО: Общий режим [06:23:38]line Чек 33 22.09.2024 06:23 [06:23:38]line Смена: 70 ФФД: 1.0 [06:23:38]line ЗНМ: 0300000041 [06:23:38]line РНМ: 0000000000190446 [06:23:38]line Версия ККМ: v1.0 [06:23:38]line ФМ: 0000000002094258 [06:23:38]line ФД: 7635 [06:23:38]line ФПД: 240564701697046 [06:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T062337&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7635&fm=240564701697046&tin=02508201610067®Number=0000000000190446&sum=200000 [06:23:38]written 0, free lines is 4095 [06:23:38]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:23:38]ProducePacketName [06:23:38]name=ofd_packets/00007635 [06:23:38]OFD Sender: To server: pG, [06:23:38]CommunicateWithHost lk.salyk.kg:30040 [06:23:38]ConnectInit lk.salyk.kg [06:23:39]Write to MH i2c: 01 00 00 DB 00 DB [06:23:39]Write i2c OK [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: 01 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: 01 07 00 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 F9 0C E7 [06:23:39]RasterBufferAndPrint [06:23:39]line [06:23:39]line [06:23:39]line [06:23:39]line [06:23:39]line [06:23:39]written 0, free lines is 3333 [06:23:39]MH_Cut [06:23:39]Write to MH i2c: D1 01 00 E2 00 01 B4 [06:23:39]Write i2c OK [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: D1 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: D1 01 00 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: D1 01 00 E2 00 00 B3 [06:23:39]Write to MH i2c: 01 00 00 E3 00 E3 [06:23:39]Write i2c OK [06:23:39]MH_I2C_Read... [06:23:39]*** Cut start [06:23:39]*** Purtial cut [06:23:39]*** Stage 1: CUTSNS_PIN = 1 [06:23:39]Read from MH i2c: 01 [06:23:40]MH_I2C_Read... [06:23:40]*** Stop cut motor [06:23:40]*** Cut end [06:23:40]Read from MH i2c: 01 07 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [06:23:40]process_action close_receipt done [06:23:40]requested_data is exist [06:23:40]produce_requested_data [06:23:40]requested_item fm.sn is exist - process it [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 11 00 00 [06:23:40]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 17 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 AF [06:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [06:23:40]wFMCommunicate OK [06:23:40]requested_item fd.num is exist - process it [06:23:40]SAM_PROTO_GetFieldsCounters [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 13 00 00 [06:23:40]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 62 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D3 1D 00 00 0E 04 04 00 46 00 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 18 [06:23:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D3 1D 00 00 0E 04 04 00 46 00 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 [06:23:40]wFMCommunicate OK [06:23:40]SAM_PROTO_GetFieldsCounters done [06:23:40]requested_item shift.num is exist - process it [06:23:40]requested_item shift.opened is exist - process it [06:23:40]req_shift_opened [06:23:40]FM_GetShiftState [06:23:40]SAM_PROTO_GetShiftState [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 13 01 00 [06:23:40]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [06:23:40]recv_with_timeout no data received [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 0E 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 26 [06:23:40]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [06:23:40]wFMCommunicate OK [06:23:40]SAM_PROTO_GetShiftState done [06:23:40]FM_GetShiftState done [06:23:40]req_shift_opened done [06:23:40]requested_item shift.open_date is exist - process it [06:23:40]req_shift_open_date [06:23:40]req_shift_open_date done [06:23:40]produce_requested_data done [06:23:40]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7635,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [06:23:40]process_action_free close_receipt [06:23:40]json_value_free [06:23:40]json_value_free done [06:23:40]process_json_proto returns [06:23:40]Send response to host [06:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7635,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [06:23:40]free response buf [06:23:40]execute_script done [06:23:40]execute_script returns [06:23:40]free content buf [06:23:40]Sock 9.Close socket [06:23:40]Sock 9.Thread stoped [06:23:43]ConnectInit Can't take IP for lk.salyk.kg [06:23:43]CommunicateWithHost connect error [06:23:43]CommunicateWithHost err = -1 [06:23:43]OFD Sender: Server communicate error [06:23:48]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:23:48]ProducePacketName [06:23:48]name=ofd_packets/00007635 [06:23:48]OFD Sender: To server: pG, [06:23:48]CommunicateWithHost lk.salyk.kg:30040 [06:23:48]ConnectInit lk.salyk.kg [06:23:53]ConnectInit Can't take IP for lk.salyk.kg [06:23:53]CommunicateWithHost connect error [06:23:53]CommunicateWithHost err = -1 [06:23:53]OFD Sender: Server communicate error [06:23:58]recv_with_timeout no data received [06:23:58]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:23:58]ProducePacketName [06:23:58]name=ofd_packets/00007635 [06:23:58]OFD Sender: To server: pG, [06:23:58]CommunicateWithHost lk.salyk.kg:30040 [06:23:58]ConnectInit lk.salyk.kg [06:24:03]ConnectInit Can't take IP for lk.salyk.kg [06:24:03]CommunicateWithHost connect error [06:24:03]CommunicateWithHost err = -1 [06:24:03]OFD Sender: Server communicate error [06:24:08]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:24:08]ProducePacketName [06:24:08]name=ofd_packets/00007635 [06:24:08]OFD Sender: To server: pG, [06:24:08]CommunicateWithHost lk.salyk.kg:30040 [06:24:08]ConnectInit lk.salyk.kg [06:24:13]ConnectInit Can't take IP for lk.salyk.kg [06:24:13]CommunicateWithHost connect error [06:24:13]CommunicateWithHost err = -1 [06:24:13]OFD Sender: Server communicate error [06:24:18]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:24:18]ProducePacketName [06:24:18]name=ofd_packets/00007635 [06:24:18]OFD Sender: To server: pG, [06:24:18]CommunicateWithHost lk.salyk.kg:30040 [06:24:18]ConnectInit lk.salyk.kg [06:24:23]ConnectInit Can't take IP for lk.salyk.kg [06:24:23]CommunicateWithHost connect error [06:24:23]CommunicateWithHost err = -1 [06:24:23]OFD Sender: Server communicate error [06:24:26]recv_with_timeout no data received [06:24:28]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:24:28]ProducePacketName [06:24:28]name=ofd_packets/00007635 [06:24:28]OFD Sender: To server: pG, [06:24:28]CommunicateWithHost lk.salyk.kg:30040 [06:24:28]ConnectInit lk.salyk.kg [06:24:33]ConnectInit Can't take IP for lk.salyk.kg [06:24:33]CommunicateWithHost connect error [06:24:33]CommunicateWithHost err = -1 [06:24:33]OFD Sender: Server communicate error [06:24:38]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:24:38]ProducePacketName [06:24:38]name=ofd_packets/00007635 [06:24:38]OFD Sender: To server: pG, [06:24:38]CommunicateWithHost lk.salyk.kg:30040 [06:24:38]ConnectInit lk.salyk.kg [06:24:43]ConnectInit Can't take IP for lk.salyk.kg [06:24:43]CommunicateWithHost connect error [06:24:43]CommunicateWithHost err = -1 [06:24:43]OFD Sender: Server communicate error [06:24:48]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:24:48]ProducePacketName [06:24:48]name=ofd_packets/00007635 [06:24:48]OFD Sender: To server: pG, [06:24:48]CommunicateWithHost lk.salyk.kg:30040 [06:24:48]ConnectInit lk.salyk.kg [06:24:53]ConnectInit Can't take IP for lk.salyk.kg [06:24:53]CommunicateWithHost connect error [06:24:53]CommunicateWithHost err = -1 [06:24:53]OFD Sender: Server communicate error [06:24:58]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:24:58]ProducePacketName [06:24:58]name=ofd_packets/00007635 [06:24:58]OFD Sender: To server: pG, [06:24:58]CommunicateWithHost lk.salyk.kg:30040 [06:24:58]ConnectInit lk.salyk.kg [06:25:03]ConnectInit Can't take IP for lk.salyk.kg [06:25:03]CommunicateWithHost connect error [06:25:03]CommunicateWithHost err = -1 [06:25:03]OFD Sender: Server communicate error [06:25:08]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:25:08]ProducePacketName [06:25:08]name=ofd_packets/00007635 [06:25:08]OFD Sender: To server: pG, [06:25:08]CommunicateWithHost lk.salyk.kg:30040 [06:25:08]ConnectInit lk.salyk.kg [06:25:13]ConnectInit Can't take IP for lk.salyk.kg [06:25:13]CommunicateWithHost connect error [06:25:13]CommunicateWithHost err = -1 [06:25:13]OFD Sender: Server communicate error [06:25:18]OFD Sender: Processing packet 7635 [packets to send 51, broken 50] [06:25:18]ProducePacketName [06:25:18]name=ofd_packets/00007635 [06:25:18]OFD Sender: To server: pG, [06:25:18]CommunicateWithHost lk.salyk.kg:30040 [06:25:18]ConnectInit lk.salyk.kg [06:25:24]Connected sock=7 [06:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 13 24 08 01 84 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E9 B7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D3 1D 00 00 35 04 06 00 DA CA D5 97 14 16 0C F9 B9 B7 5A 67 AB BC [06:25:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 B4 24 47 00 9E 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 32 30 39 34 32 35 38 10 04 04 00 D3 1D 00 00 F4 03 04 00 12 63 EF 66 B6 04 01 00 00 F9 D9 C6 7A BC 72 BB 5B [06:25:26]CommunicateWithHost err = 0 [06:25:26]CheckOFDResponse [06:25:26]1017 (14) - 77093643461234 [06:25:26]1041 (16) - 0000000002094258 [06:25:26]1040 (4) - 7635 [06:25:26]1012 (4) - 22.09.2024 00:21 [06:25:26]1206 (1) - 0 [06:25:26]OFD Sender: Remove packet 7635 [06:25:26]ProducePacketName [06:25:26]name=ofd_packets/00007635 [06:25:26]NVStorageDeleteData [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:42]recv_with_timeout no data received [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:03]accept exits with 11 [06:28:03]New connection [06:28:03]New thread 3066760548 created [06:28:03]Thread 3066903908 joined [06:28:03]Waiting for new connection... [06:28:03] Sock 11.Parse request [06:28:03]Sock 11.Check first char [06:28:03]Sock 11.First char is OK [06:28:03]request: POST /json_proto HTTP/1.0 [06:28:03]Method: POST [06:28:03]URL: /json_proto [06:28:03]Method is POST - this is cgi request [06:28:03]url: /json_proto [06:28:03]query_string will be loaded in cgi processing [06:28:03]execute_cgi json_proto POST (null) [06:28:03]execute_cgi path=json_proto method=POST [06:28:03]POST find Content-Length [06:28:03]Host: 172.17.47.195:8080 [06:28:03]Content-Length: 682 [06:28:03]Content-Type: application/json [06:28:03] [06:28:03]POST finish read [06:28:03]Found Content-Length = 682 [06:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:03]execute_script... [06:28:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:03]POST & json_proto [06:28:03]process_json_proto [06:28:03]json parsed OK: [06:28:03]protocol is kg_v1.0 [06:28:03]action value=close_receipt [06:28:03]process_action close_receipt [06:28:03]cmd_close_receipt [06:28:03]MH_GetDate [06:28:03]Write to MH i2c: F0 00 00 E7 00 D6 [06:28:03]Write i2c OK [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: F0 [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: F0 09 00 [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: F0 09 00 E7 00 00 F3 B8 EF 66 96 2E 95 66 9E [06:28:03]GetLastDocTimeStamp 1726986217 [06:28:03]current date 1726986483 [06:28:03]FM_GetShiftState [06:28:03]SAM_PROTO_GetShiftState [06:28:03]wFMCommunicate request_size=4 [06:28:03]MH_SAM_APDU [06:28:03]CAPDU: 80 13 01 00 [06:28:03]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [06:28:03]Write i2c OK [06:28:03]MH_I2C_Read... [06:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:03]Read from MH i2c: E2 [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: E2 0E 00 [06:28:03]MH_I2C_Read... [06:28:03]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 28 [06:28:03]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [06:28:03]wFMCommunicate OK [06:28:03]SAM_PROTO_GetShiftState done [06:28:03]FM_GetShiftState done [06:28:03]opened in 1726964224 [06:28:03]opened+sec_in_day 1727050624 [06:28:03]quantity*price = 100005 [06:28:03]sum+1 = 100006 [06:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 34 22.09.2024 06:28 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7636 ФПД: 233237600701064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T062803&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7636&fm=233237600701064&tin=02508201610067®Number=0000000000190446&sum=100000 [06:28:04]StoreToDocumentArchive [06:28:04]shift 70 fd 7636 [06:28:04]save to /storage/0070/doc_00007636 [06:28:04]save last doc name /storage/0070/doc_00007636 to /storage/kkm_last_doc_name [06:28:04]save OK [06:28:04]Clear old archive folders... [06:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:28:04]tlvbuf is 005713D0 [06:28:04]SAM_PROTO_ClearQueue [06:28:04]wFMCommunicate request_size=4 [06:28:04]MH_SAM_APDU [06:28:04]CAPDU: 80 09 00 00 [06:28:04]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [06:28:04]Write i2c OK [06:28:04]MH_I2C_Read... [06:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:04]Read from MH i2c: E2 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 03 00 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [06:28:04]RAPDU: 90 00 [06:28:04]wFMCommunicate OK [06:28:04]SAM_PROTO_ClearQueue done [06:28:04]KKMCreateOFDPacket [06:28:04]OFDProtocolAddRootSTLVToBuf [06:28:04]FM_MakeSignedData [06:28:04]FM_MakeSignedData [06:28:04]SAM_PROTO_SignData [06:28:04]wFMCommunicate request_size=4 [06:28:04]MH_SAM_APDU [06:28:04]CAPDU: 80 0D 01 02 [06:28:04]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [06:28:04]Write i2c OK [06:28:04]MH_I2C_Read... [06:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:04]Read from MH i2c: E2 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 03 00 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [06:28:04]RAPDU: 90 00 [06:28:04]wFMCommunicate OK [06:28:04]wFMCommunicate request_size=255 [06:28:04]MH_SAM_APDU [06:28:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F3 B8 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D4 1D 00 00 35 04 06 00 D4 [06:28:04]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F3 B8 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D4 1D 00 00 35 04 06 00 D4 00 00 A7 [06:28:04]Write i2c OK [06:28:04]MH_I2C_Read... [06:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:04]Read from MH i2c: E2 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 03 00 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [06:28:04]RAPDU: 90 00 [06:28:04]wFMCommunicate OK [06:28:04]wFMCommunicate request_size=10 [06:28:04]MH_SAM_APDU [06:28:04]CAPDU: 80 0D 02 02 05 20 DC 56 8A 88 [06:28:04]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 20 DC 56 8A 88 00 00 E0 [06:28:04]Write i2c OK [06:28:04]MH_I2C_Read... [06:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:04]Read from MH i2c: E2 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 03 00 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [06:28:04]RAPDU: 90 00 [06:28:04]wFMCommunicate OK [06:28:04]wFMCommunicate request_size=4 [06:28:04]MH_SAM_APDU [06:28:04]CAPDU: 80 0D 03 02 [06:28:04]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [06:28:04]Write i2c OK [06:28:04]MH_I2C_Read... [06:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:04]Read from MH i2c: E2 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 0B 00 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 0B 00 F9 00 00 5B 4C 62 8B 59 39 35 32 90 00 02 [06:28:04]RAPDU: 5B 4C 62 8B 59 39 35 32 90 00 [06:28:04]wFMCommunicate OK [06:28:04]SAM_PROTO_SignData done [06:28:04]FM_MakeSignedData done [06:28:04]CreateOFDProtocolMessage [06:28:04]wFMCommunicate request_size=4 [06:28:04]MH_SAM_APDU [06:28:04]CAPDU: 80 11 00 00 [06:28:04]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [06:28:04]Write i2c OK [06:28:04]MH_I2C_Read... [06:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:04]Read from MH i2c: E2 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 17 00 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C5 [06:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [06:28:04]wFMCommunicate OK [06:28:04]CreateOFDProtocolMessage done [06:28:04]OFDSenderStorePacket 7636 [06:28:04]StoreOFDPacket docnum=7636 [06:28:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 04 6B 07 01 DA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F3 B8 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D4 1D 00 00 35 04 06 00 D4 20 DC 56 8A 88 5B 4C 62 8B 59 39 35 32 [06:28:04]CheckFolder [06:28:04]dirname=/storage/ofd_packets [06:28:04]CheckFolder done [06:28:04]ProducePacketName [06:28:04]name=ofd_packets/00007636 [06:28:04]NVStorageSaveData ofd_packets/00007636 [06:28:04]File name is /storage/ofd_packets/00007636 [06:28:04]Write 301 bytes [06:28:04]NVStorageSaveData done [06:28:04]OFDSenderStorePacket done [06:28:04]KKMCreateOFDPacket done [06:28:04]NVStorageSaveData kkm_last_timestamp [06:28:04]File name is /storage/kkm_last_timestamp [06:28:04]Write 4 bytes [06:28:04]NVStorageSaveData done [06:28:04]ExternCall_PrintAddStr [06:28:04]wPrintStart [06:28:04]Write to MH i2c: 01 00 00 FB 00 FB [06:28:04]Write i2c OK [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: 01 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: 01 07 00 [06:28:04]MH_I2C_Read... [06:28:04]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [06:28:04]RasterBufferAndPrint [06:28:04]line Счет N : (1)871572 [06:28:04]line ИНН: 02508201610067 [06:28:04]line Контрольно-Кассовый Чек [06:28:04]line ПРОДАЖА [06:28:04]line ТРК (МРК, ГНК) : 33 [06:28:04]line Товар: 2710124130 [06:28:04]line Аи-92-К-5 [06:28:04]line 14.750 * 67.80 [06:28:04]line = 1000.05 [06:28:04]line НДС 12% НСП 1% [06:28:04]line > о реализуемом товаре [06:28:04]line ОКРУГЛЕНИЕ: -0.05 [06:28:04]line ИТОГО: 1000.00 [06:28:04]line Внесено: 1000.00 [06:28:04]line СДАЧА: 0.00 [06:28:04]line НСП 1% : 8.85 [06:28:04]line НДС 12% : 106.20 [06:28:04]line Наличными: 1000.00 [06:28:04]line Безнал.: 0.00 [06:28:04]line Место: АЗС № 137 "Партнер Нефть" [06:28:04]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [06:28:04]line СНО: Общий режим [06:28:04]line Чек 34 22.09.2024 06:28 [06:28:04]line Смена: 70 ФФД: 1.0 [06:28:04]line ЗНМ: 0300000041 [06:28:04]line РНМ: 0000000000190446 [06:28:04]line Версия ККМ: v1.0 [06:28:04]line ФМ: 0000000002094258 [06:28:04]line ФД: 7636 [06:28:04]line ФПД: 233237600701064 [06:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T062803&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7636&fm=233237600701064&tin=02508201610067®Number=0000000000190446&sum=100000 [06:28:05]OFD Sender: Processing packet 7636 [packets to send 51, broken 50] [06:28:05]ProducePacketName [06:28:05]name=ofd_packets/00007636 [06:28:05]OFD Sender: To server: pG, [06:28:05]CommunicateWithHost lk.salyk.kg:30040 [06:28:05]ConnectInit lk.salyk.kg [06:28:05]written 0, free lines is 4095 [06:28:05]Write to MH i2c: 01 00 00 26 01 27 [06:28:05]Write i2c OK [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: 01 [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: 01 07 00 [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 F8 0C 32 [06:28:05]RasterBufferAndPrint [06:28:05]line [06:28:05]line [06:28:05]line [06:28:05]line [06:28:05]line [06:28:05]written 0, free lines is 3326 [06:28:05]MH_Cut [06:28:05]Write to MH i2c: D1 01 00 2D 01 01 00 [06:28:05]Write i2c OK [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: D1 [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: D1 01 00 [06:28:05]MH_I2C_Read... [06:28:05]Read from MH i2c: D1 01 00 2D 01 00 FF [06:28:05]Write to MH i2c: 01 00 00 2E 01 2F [06:28:05]Write i2c OK [06:28:05]MH_I2C_Read... [06:28:05]Connected sock=9 [06:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 04 6B 07 01 DA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F3 B8 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D4 1D 00 00 35 04 06 00 D4 20 DC 56 8A 88 5B 4C 62 8B 59 39 35 32 [06:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 13 97 47 00 AE B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D4 1D 00 00 F4 03 04 00 B3 63 EF 66 B6 04 01 00 00 DE 8A CE 60 01 37 08 6A [06:28:06]CommunicateWithHost err = 0 [06:28:06]CheckOFDResponse [06:28:06]1017 (14) - 77093643461234 [06:28:06]1041 (16) - 0000000002094258 [06:28:06]1040 (4) - 7636 [06:28:06]1012 (4) - 22.09.2024 00:24 [06:28:06]1206 (1) - 0 [06:28:06]OFD Sender: Remove packet 7636 [06:28:06]ProducePacketName [06:28:06]name=ofd_packets/00007636 [06:28:06]NVStorageDeleteData [06:28:06]*** Cut start [06:28:06]*** Purtial cut [06:28:06]*** Stage 1: CUTSNS_PIN = 1 [06:28:06]Read from MH i2c: 01 [06:28:06]MH_I2C_Read... [06:28:06]*** Stop cut motor [06:28:06]*** Cut end [06:28:06]Read from MH i2c: 01 07 00 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [06:28:06]process_action close_receipt done [06:28:06]requested_data is exist [06:28:06]produce_requested_data [06:28:06]requested_item fm.sn is exist - process it [06:28:06]wFMCommunicate request_size=4 [06:28:06]MH_SAM_APDU [06:28:06]CAPDU: 80 11 00 00 [06:28:06]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [06:28:06]Write i2c OK [06:28:06]MH_I2C_Read... [06:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:06]Read from MH i2c: E2 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 17 00 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [06:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [06:28:06]wFMCommunicate OK [06:28:06]requested_item fd.num is exist - process it [06:28:06]SAM_PROTO_GetFieldsCounters [06:28:06]wFMCommunicate request_size=4 [06:28:06]MH_SAM_APDU [06:28:06]CAPDU: 80 13 00 00 [06:28:06]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [06:28:06]Write i2c OK [06:28:06]MH_I2C_Read... [06:28:06]OFD Sender: No OFD packet to send [06:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:06]Read from MH i2c: E2 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 62 00 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D4 1D 00 00 0E 04 04 00 46 00 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 68 [06:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D4 1D 00 00 0E 04 04 00 46 00 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 [06:28:06]wFMCommunicate OK [06:28:06]SAM_PROTO_GetFieldsCounters done [06:28:06]requested_item shift.num is exist - process it [06:28:06]requested_item shift.opened is exist - process it [06:28:06]req_shift_opened [06:28:06]FM_GetShiftState [06:28:06]SAM_PROTO_GetShiftState [06:28:06]wFMCommunicate request_size=4 [06:28:06]MH_SAM_APDU [06:28:06]CAPDU: 80 13 01 00 [06:28:06]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [06:28:06]Write i2c OK [06:28:06]MH_I2C_Read... [06:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:06]Read from MH i2c: E2 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 0E 00 [06:28:06]MH_I2C_Read... [06:28:06]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 72 [06:28:06]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [06:28:06]wFMCommunicate OK [06:28:06]SAM_PROTO_GetShiftState done [06:28:06]FM_GetShiftState done [06:28:06]req_shift_opened done [06:28:06]requested_item shift.open_date is exist - process it [06:28:06]req_shift_open_date [06:28:06]req_shift_open_date done [06:28:06]produce_requested_data done [06:28:06]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7636,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [06:28:06]process_action_free close_receipt [06:28:06]json_value_free [06:28:06]json_value_free done [06:28:06]process_json_proto returns [06:28:06]Send response to host [06:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7636,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [06:28:06]free response buf [06:28:06]execute_script done [06:28:06]execute_script returns [06:28:06]free content buf [06:28:06]Sock 11.Close socket [06:28:06]Sock 11.Thread stoped [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:20]recv_with_timeout no data received [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:12]recv_with_timeout no data received [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:19]recv_with_timeout no data received [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:40]recv_with_timeout no data received [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:08]recv_with_timeout no data received [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:37:57]recv_with_timeout no data received [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:43]recv_with_timeout no data received [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:33]recv_with_timeout no data received [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:36]recv_with_timeout no data received [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:23]recv_with_timeout no data received [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]accept exits with 7 [06:46:27]New connection [06:46:27]New thread 3066903908 created [06:46:27]Thread 3066760548 joined [06:46:27]Waiting for new connection... [06:46:27] Sock 7.Parse request [06:46:27]Sock 7.Check first char [06:46:27]Sock 7.First char is OK [06:46:27]request: POST /json_proto HTTP/1.0 [06:46:27]Method: POST [06:46:27]URL: /json_proto [06:46:27]Method is POST - this is cgi request [06:46:27]url: /json_proto [06:46:27]query_string will be loaded in cgi processing [06:46:27]execute_cgi json_proto POST (null) [06:46:27]execute_cgi path=json_proto method=POST [06:46:27]POST find Content-Length [06:46:27]Host: 172.17.47.195:8080 [06:46:27]Content-Length: 687 [06:46:27]Content-Type: application/json [06:46:27] [06:46:27]POST finish read [06:46:27]Found Content-Length = 687 [06:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:27]execute_script... [06:46: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)871573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:27]POST & json_proto [06:46:27]process_json_proto [06:46:27]json parsed OK: [06:46:27]protocol is kg_v1.0 [06:46:27]action value=close_receipt [06:46:27]process_action close_receipt [06:46:27]cmd_close_receipt [06:46:27]MH_GetDate [06:46:27]Write to MH i2c: F0 00 00 32 01 22 [06:46:27]Write i2c OK [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: F0 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: F0 09 00 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: F0 09 00 32 01 00 43 BD EF 66 96 2E 95 66 3F [06:46:27]GetLastDocTimeStamp 1726986483 [06:46:27]current date 1726987587 [06:46:27]FM_GetShiftState [06:46:27]SAM_PROTO_GetShiftState [06:46:27]wFMCommunicate request_size=4 [06:46:27]MH_SAM_APDU [06:46:27]CAPDU: 80 13 01 00 [06:46:27]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [06:46:27]Write i2c OK [06:46:27]MH_I2C_Read... [06:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:27]Read from MH i2c: E2 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: E2 0E 00 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 74 [06:46:27]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [06:46:27]wFMCommunicate OK [06:46:27]SAM_PROTO_GetShiftState done [06:46:27]FM_GetShiftState done [06:46:27]opened in 1726964224 [06:46:27]opened+sec_in_day 1727050624 [06:46:27]quantity*price = 100050 [06:46:27]sum+1 = 100052 [06:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 35 22.09.2024 06:46 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7637 ФПД: 109234918034775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T064627&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7637&fm=109234918034775&tin=02508201610067®Number=0000000000190446&sum=100000 [06:46:28]StoreToDocumentArchive [06:46:28]shift 70 fd 7637 [06:46:28]save to /storage/0070/doc_00007637 [06:46:28]save last doc name /storage/0070/doc_00007637 to /storage/kkm_last_doc_name [06:46:28]save OK [06:46:28]Clear old archive folders... [06:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:46:28]tlvbuf is 00571F30 [06:46:28]SAM_PROTO_ClearQueue [06:46:28]wFMCommunicate request_size=4 [06:46:28]MH_SAM_APDU [06:46:28]CAPDU: 80 09 00 00 [06:46:28]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [06:46:28]Write i2c OK [06:46:28]MH_I2C_Read... [06:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:28]Read from MH i2c: E2 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 03 00 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [06:46:28]RAPDU: 90 00 [06:46:28]wFMCommunicate OK [06:46:28]SAM_PROTO_ClearQueue done [06:46:28]KKMCreateOFDPacket [06:46:28]OFDProtocolAddRootSTLVToBuf [06:46:28]FM_MakeSignedData [06:46:28]FM_MakeSignedData [06:46:28]SAM_PROTO_SignData [06:46:28]wFMCommunicate request_size=4 [06:46:28]MH_SAM_APDU [06:46:28]CAPDU: 80 0D 01 02 [06:46:28]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [06:46:28]Write i2c OK [06:46:28]MH_I2C_Read... [06:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:28]Read from MH i2c: E2 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 03 00 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [06:46:28]RAPDU: 90 00 [06:46:28]wFMCommunicate OK [06:46:28]wFMCommunicate request_size=255 [06:46:28]MH_SAM_APDU [06:46:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 43 BD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D5 1D 00 00 35 04 06 00 [06:46:28]Write to MH i2c: E2 02 01 42 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 43 BD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D5 1D 00 00 35 04 06 00 00 00 D4 [06:46:28]Write i2c OK [06:46:28]MH_I2C_Read... [06:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:28]Read from MH i2c: E2 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 03 00 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [06:46:28]RAPDU: 90 00 [06:46:28]wFMCommunicate OK [06:46:28]wFMCommunicate request_size=11 [06:46:28]MH_SAM_APDU [06:46:28]CAPDU: 80 0D 02 02 06 63 59 3C 7C 8D 57 [06:46:28]Write to MH i2c: E2 0E 00 43 01 80 0D 02 02 06 00 63 59 3C 7C 8D 57 00 00 22 [06:46:28]Write i2c OK [06:46:28]MH_I2C_Read... [06:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:28]Read from MH i2c: E2 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 03 00 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [06:46:28]RAPDU: 90 00 [06:46:28]wFMCommunicate OK [06:46:28]wFMCommunicate request_size=4 [06:46:28]MH_SAM_APDU [06:46:28]CAPDU: 80 0D 03 02 [06:46:28]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [06:46:28]Write i2c OK [06:46:28]MH_I2C_Read... [06:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:28]Read from MH i2c: E2 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 0B 00 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 0B 00 44 01 00 81 3E 82 9B 90 15 5D 1F 90 00 BE [06:46:28]RAPDU: 81 3E 82 9B 90 15 5D 1F 90 00 [06:46:28]wFMCommunicate OK [06:46:28]SAM_PROTO_SignData done [06:46:28]FM_MakeSignedData done [06:46:28]CreateOFDProtocolMessage [06:46:28]wFMCommunicate request_size=4 [06:46:28]MH_SAM_APDU [06:46:28]CAPDU: 80 11 00 00 [06:46:28]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [06:46:28]Write i2c OK [06:46:28]MH_I2C_Read... [06:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:28]Read from MH i2c: E2 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 17 00 [06:46:28]MH_I2C_Read... [06:46:28]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 11 [06:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [06:46:28]wFMCommunicate OK [06:46:28]CreateOFDProtocolMessage done [06:46:28]OFDSenderStorePacket 7637 [06:46:28]StoreOFDPacket docnum=7637 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5936830+1721052822=1726989652 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 55 C5 EF 66 96 2E 95 66 2D [07:20:53]Current date/time: 22.09.2024 07:20 [07:20:53]FM_Init [07:20:53]wFMConnect [07:20:53]MH_SAM_On [07:20:53]Write to MH i2c: E0 00 00 08 00 E7 [07:20:53]Write i2c OK [07:20:53]MH_I2C_Read... [07:20:53]*** iso7816_init finished! [07:20:53]*** atr: [07:20:53]*** 0F 3B D5 18 FF 81 91 FE [07:20:53]*** 1F C3 80 73 C8 21 10 0A [07:20:53]*** 00 00 00 00 00 00 00 00 [07:20:53]*** 00 00 00 00 00 00 00 00 [07:20:53]*** 00 00 00 00 00 00 00 00 [07:20:53]*** 00 00 00 00 00 00 00 00 [07:20:53]*** 00 00 00 00 00 00 00 00 [07:20:53]*** 00 00 00 00 00 00 00 00 [07:20:53]Read from MH i2c: E0 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E0 10 00 [07:20:53]MH_I2C_Read... [07:20:53]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 [07:20:53]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:20:53]wFMCommunicate request_size=10 [07:20:53]MH_SAM_APDU [07:20:53]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:20:53]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:20:53]Write i2c OK [07:20:53]MH_I2C_Read... [07:20:53]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:20:53]Read from MH i2c: E2 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 03 00 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:20:53]RAPDU: 90 00 [07:20:53]wFMCommunicate OK [07:20:53]wFMCommunicate request_size=4 [07:20:53]MH_SAM_APDU [07:20:53]CAPDU: 80 11 00 00 [07:20:53]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:20:53]Write i2c OK [07:20:53]MH_I2C_Read... [07:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:53]Read from MH i2c: E2 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 17 00 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [07:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:20:53]wFMCommunicate OK [07:20:53]Detected FM SN is 0000000002094258 [07:20:53]Stored FM SN is 0000000002094258 [07:20:53]wFMCommunicate request_size=9 [07:20:53]MH_SAM_APDU [07:20:53]CAPDU: 80 16 00 00 04 BC C2 00 00 [07:20:53]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [07:20:53]Write i2c OK [07:20:53]MH_I2C_Read... [07:20:53]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:20:53]Read from MH i2c: E2 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 03 00 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:20:53]RAPDU: 90 00 [07:20:53]wFMCommunicate OK [07:20:53]FM PIN OK [07:20:53]wFMCommunicate request_size=8 [07:20:53]MH_SAM_APDU [07:20:53]CAPDU: 80 14 04 00 03 02 00 01 [07:20:53]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:20:53]Write i2c OK [07:20:53]MH_I2C_Read... [07:20:53]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:20:53]Read from MH i2c: E2 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 03 00 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:20:53]RAPDU: 90 00 [07:20:53]wFMCommunicate OK [07:20:53]wFMCommunicate request_size=13 [07:20:53]MH_SAM_APDU [07:20:53]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:20:53]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 [07:20:53]Write i2c OK [07:20:53]MH_I2C_Read... [07:20:53]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:20:53]Read from MH i2c: E2 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 03 00 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:20:53]RAPDU: 90 00 [07:20:53]wFMCommunicate OK [07:20:53]wFMCommunicate request_size=4 [07:20:53]MH_SAM_APDU [07:20:53]CAPDU: 80 11 00 00 [07:20:53]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:20:53]Write i2c OK [07:20:53]MH_I2C_Read... [07:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:53]Read from MH i2c: E2 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 17 00 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [07:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:20:53]wFMCommunicate OK [07:20:53]DocumentArchiveInit [07:20:53]Start Httpd... [07:20:53]Httpd thread 3067706724 created [07:20:53]Write to MH i2c: 01 00 00 0F 00 0F [07:20:53]Write i2c OK [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: 01 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: 01 07 00 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:20:53]MH Int Process started [07:20:53]Allocated Socket 8 [07:20:53]Bind OK [07:20:53]Listen OK [07:20:53]httpd running on port 8080 [07:20:53]Waiting for new connection... [07:20:53]OFD Sender: Processing packet 7637 [packets to send 51, broken 50] [07:20:53]ProducePacketName [07:20:53]name=ofd_packets/00007637 [07:20:53]OFD Sender: To server: pG, [07:20:53]CommunicateWithHost lk.salyk.kg:30040 [07:20:53]ConnectInit lk.salyk.kg [07:20:55]Connected sock=6 [07:20:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 89 C9 08 01 77 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 43 BD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D5 1D 00 00 35 04 06 00 63 59 3C 7C 8D 57 81 3E 82 9B 90 15 5D 1F [07:20:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 D4 E8 47 00 AB FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D5 1D 00 00 F4 03 04 00 14 70 EF 66 B6 04 01 00 00 F1 CC 13 1F 93 3B 4A C1 [07:20:55]CommunicateWithHost err = 0 [07:20:55]CheckOFDResponse [07:20:55]1017 (14) - 77093643461234 [07:20:55]1041 (16) - 0000000002094258 [07:20:55]1040 (4) - 7637 [07:20:55]1012 (4) - 22.09.2024 01:17 [07:20:55]1206 (1) - 0 [07:20:55]OFD Sender: Remove packet 7637 [07:20:55]ProducePacketName [07:20:55]name=ofd_packets/00007637 [07:20:55]NVStorageDeleteData [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [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 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5936873+1721052822=1726989695 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 80 C5 EF 66 96 2E 95 66 58 [07:21:36]Current date/time: 22.09.2024 07:21 [07:21:36]FM_Init [07:21:36]wFMConnect [07:21:36]MH_SAM_On [07:21:36]Write to MH i2c: E0 00 00 08 00 E7 [07:21:36]Write i2c OK [07:21:36]MH_I2C_Read... [07:21:36]*** iso7816_init finished! [07:21:36]*** atr: [07:21:36]*** 0F 3B D5 18 FF 81 91 FE [07:21:36]*** 1F C3 80 73 C8 21 10 0A [07:21:36]*** 00 00 00 00 00 00 00 00 [07:21:36]*** 00 00 00 00 00 00 00 00 [07:21:36]*** 00 00 00 00 00 00 00 00 [07:21:36]*** 00 00 00 00 00 00 00 00 [07:21:36]*** 00 00 00 00 00 00 00 00 [07:21:36]*** 00 00 00 00 00 00 00 00 [07:21:36]Read from MH i2c: E0 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E0 10 00 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [07:21:36]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:21:36]wFMCommunicate request_size=10 [07:21:36]MH_SAM_APDU [07:21:36]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:21:36]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:21:36]Write i2c OK [07:21:36]MH_I2C_Read... [07:21:36]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:21:36]Read from MH i2c: E2 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 03 00 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:21:36]RAPDU: 90 00 [07:21:36]wFMCommunicate OK [07:21:36]wFMCommunicate request_size=4 [07:21:36]MH_SAM_APDU [07:21:36]CAPDU: 80 11 00 00 [07:21:36]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:21:36]Write i2c OK [07:21:36]MH_I2C_Read... [07:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:36]Read from MH i2c: E2 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 17 00 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [07:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:36]wFMCommunicate OK [07:21:36]Detected FM SN is 0000000002094258 [07:21:36]Stored FM SN is 0000000002094258 [07:21:36]wFMCommunicate request_size=9 [07:21:36]MH_SAM_APDU [07:21:36]CAPDU: 80 16 00 00 04 BC C2 00 00 [07:21:36]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [07:21:36]Write i2c OK [07:21:36]MH_I2C_Read... [07:21:36]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:21:36]Read from MH i2c: E2 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 03 00 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:21:36]RAPDU: 90 00 [07:21:36]wFMCommunicate OK [07:21:36]FM PIN OK [07:21:36]wFMCommunicate request_size=8 [07:21:36]MH_SAM_APDU [07:21:36]CAPDU: 80 14 04 00 03 02 00 01 [07:21:36]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:21:36]Write i2c OK [07:21:36]MH_I2C_Read... [07:21:36]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:21:36]Read from MH i2c: E2 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 03 00 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:21:36]RAPDU: 90 00 [07:21:36]wFMCommunicate OK [07:21:36]wFMCommunicate request_size=13 [07:21:36]MH_SAM_APDU [07:21:36]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:21:36]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [07:21:36]Write i2c OK [07:21:36]MH_I2C_Read... [07:21:36]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:21:36]Read from MH i2c: E2 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 03 00 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:21:36]RAPDU: 90 00 [07:21:36]wFMCommunicate OK [07:21:36]wFMCommunicate request_size=4 [07:21:36]MH_SAM_APDU [07:21:36]CAPDU: 80 11 00 00 [07:21:36]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:21:36]Write i2c OK [07:21:36]MH_I2C_Read... [07:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:36]Read from MH i2c: E2 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 17 00 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [07:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:36]wFMCommunicate OK [07:21:36]DocumentArchiveInit [07:21:36]Start Httpd... [07:21:36]Httpd thread 3067714916 created [07:21:36]Write to MH i2c: 01 00 00 0F 00 0F [07:21:36]Write i2c OK [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: 01 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: 01 07 00 [07:21:36]MH_I2C_Read... [07:21:36]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:21:36]MH Int Process started [07:21:36]Allocated Socket 7 [07:21:36]Bind OK [07:21:36]Listen OK [07:21:36]httpd running on port 8080 [07:21:36]Waiting for new connection... [07:21:36]OFD Sender: No OFD packet to send [07:21:39]accept exits with 8 [07:21:39]New connection [07:21:39]New thread 3067428196 created [07:21:39]Waiting for new connection... [07:21:39] Sock 8.Parse request [07:21:39]Sock 8.Check first char [07:21:39]Sock 8.First char is OK [07:21:39]request: POST /json_proto HTTP/1.0 [07:21:39]Method: POST [07:21:39]URL: /json_proto [07:21:39]Method is POST - this is cgi request [07:21:39]url: /json_proto [07:21:39]query_string will be loaded in cgi processing [07:21:39]execute_cgi json_proto POST (null) [07:21:39]execute_cgi path=json_proto method=POST [07:21:39]POST find Content-Length [07:21:39]Host: 172.17.47.195:8080 [07:21:39]Content-Length: 215 [07:21:39]Content-Type: application/json [07:21:39] [07:21:39]POST finish read [07:21:39]Found Content-Length = 215 [07:21:39]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" ] } } [07:21:39]execute_script... [07:21:39]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" ] } } [07:21:39]POST & json_proto [07:21:39]process_json_proto [07:21:39]json parsed OK: [07:21:39]protocol is kg_v1.0 [07:21:39]action value=get_value [07:21:39]process_action get_value [07:21:39]cmd_get_value [07:21:39]process_action get_value done [07:21:39]requested_data is exist [07:21:39]produce_requested_data [07:21:39]requested_item kkm.sn is exist - process it [07:21:39]requested_item kkm.ver is exist - process it [07:21:39]requested_item fm.sn is exist - process it [07:21:39]wFMCommunicate request_size=4 [07:21:39]MH_SAM_APDU [07:21:39]CAPDU: 80 11 00 00 [07:21:39]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:21:39]Write i2c OK [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 [07:21:39]MH_I2C_Read... [07:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:39]Read from MH i2c: E2 17 00 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [07:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:39]wFMCommunicate OK [07:21:39]requested_item fd.num is exist - process it [07:21:39]SAM_PROTO_GetFieldsCounters [07:21:39]wFMCommunicate request_size=4 [07:21:39]MH_SAM_APDU [07:21:39]CAPDU: 80 13 00 00 [07:21:39]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:21:39]Write i2c OK [07:21:39]MH_I2C_Read... [07:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:39]Read from MH i2c: E2 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 62 00 [07:21:39]MH_I2C_Read... [07:21:39]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D5 1D 00 00 0E 04 04 00 46 00 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 4C [07:21:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D5 1D 00 00 0E 04 04 00 46 00 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 [07:21:39]wFMCommunicate OK [07:21:39]SAM_PROTO_GetFieldsCounters done [07:21:39]requested_item shift.num is exist - process it [07:21:39]requested_item shift.opened is exist - process it [07:21:39]req_shift_opened [07:21:39]FM_GetShiftState [07:21:39]SAM_PROTO_GetShiftState [07:21:39]wFMCommunicate request_size=4 [07:21:39]MH_SAM_APDU [07:21:39]CAPDU: 80 13 01 00 [07:21:39]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:21:39]Write i2c OK [07:21:39]MH_I2C_Read... [07:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:39]Read from MH i2c: E2 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 0E 00 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [07:21:39]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:21:39]wFMCommunicate OK [07:21:39]SAM_PROTO_GetShiftState done [07:21:39]FM_GetShiftState done [07:21:39]req_shift_opened done [07:21:39]requested_item shift.open_date is exist - process it [07:21:39]req_shift_open_date [07:21:39]req_shift_open_date done [07:21:39]produce_requested_data done [07:21:39]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7637,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [07:21:39]process_action_free get_value [07:21:39]json_value_free [07:21:39]json_value_free done [07:21:39]process_json_proto returns [07:21:39]Send response to host [07:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7637,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [07:21:39]free response buf [07:21:39]execute_script done [07:21:39]execute_script returns [07:21:39]free content buf [07:21:39]Sock 8.Close socket [07:21:39]Sock 8.Thread stoped [07:21:39]accept exits with 6 [07:21:39]New connection [07:21:39]New thread 3067284836 created [07:21:39]Thread 3067428196 joined [07:21:39]Waiting for new connection... [07:21:39] Sock 6.Parse request [07:21:39]Sock 6.Check first char [07:21:39]Sock 6.First char is OK [07:21:39]request: POST /json_proto HTTP/1.0 [07:21:39]Method: POST [07:21:39]URL: /json_proto [07:21:39]Method is POST - this is cgi request [07:21:39]url: /json_proto [07:21:39]query_string will be loaded in cgi processing [07:21:39]execute_cgi json_proto POST (null) [07:21:39]execute_cgi path=json_proto method=POST [07:21:39]POST find Content-Length [07:21:39]Host: 172.17.47.195:8080 [07:21:39]Content-Length: 331 [07:21:39]Content-Type: application/json [07:21:39] [07:21:39]POST finish read [07:21:39]Found Content-Length = 331 [07:21:39]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" ] } } [07:21:39]execute_script... [07:21:39]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" ] } } [07:21:39]POST & json_proto [07:21:39]process_json_proto [07:21:39]json parsed OK: [07:21:39]protocol is kg_v1.0 [07:21:39]action value=get_value [07:21:39]process_action get_value [07:21:39]cmd_get_value [07:21:39]process_action get_value done [07:21:39]requested_data is exist [07:21:39]produce_requested_data [07:21:40]requested_item fm.sale.total is exist - process it [07:21:40]SAM_PROTO_GetFMData [07:21:40]wFMCommunicate request_size=4 [07:21:40]MH_SAM_APDU [07:21:40]CAPDU: 80 13 03 00 [07:21:40]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:21:40]Read from MH i2c: E2 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 FD 00 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 49 1D 00 00 69 04 A0 00 6F 04 04 00 1D 1D 00 00 B1 04 04 00 25 6E 87 30 70 04 04 00 B8 F9 A2 28 72 04 04 00 6D 74 E4 07 00 04 7C 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 05 99 27 05 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 F9 F6 6D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 F1 [07:21:40]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 49 1D 00 00 69 04 A0 00 6F 04 04 00 1D 1D 00 00 B1 04 04 00 25 6E 87 30 70 04 04 00 B8 F9 A2 28 72 04 04 00 6D 74 E4 07 00 04 7C 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 05 99 27 05 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 F9 F6 6D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 [07:21:40]wFMCommunicate OK [07:21:40]wFMCommunicate request_size=4 [07:21:40]MH_SAM_APDU [07:21:40]CAPDU: 80 17 00 00 [07:21:40]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:21:40]Read from MH i2c: E2 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 FD 00 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 AC [07:21:40]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 [07:21:40]wFMCommunicate OK [07:21:40]wFMCommunicate request_size=4 [07:21:40]MH_SAM_APDU [07:21:40]CAPDU: 80 17 00 00 [07:21:40]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:21:41]Read from MH i2c: E2 [07:21:41]MH_I2C_Read... [07:21:41]Read from MH i2c: E2 FD 00 [07:21:41]MH_I2C_Read... [07:21:41]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [07:21:41]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:21:41]wFMCommunicate OK [07:21:41]wFMCommunicate request_size=4 [07:21:41]MH_SAM_APDU [07:21:41]CAPDU: 80 17 00 00 [07:21:41]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:21:41]Write i2c OK [07:21:41]MH_I2C_Read... [07:21:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:21:41]OFD Sender: No OFD packet to send [07:21:41]Read from MH i2c: E2 [07:21:41]MH_I2C_Read... [07:21:41]Read from MH i2c: E2 FD 00 [07:21:41]MH_I2C_Read... [07:21:41]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [07:21:41]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:21:41]wFMCommunicate OK [07:21:41]wFMCommunicate request_size=4 [07:21:41]MH_SAM_APDU [07:21:41]CAPDU: 80 17 00 00 [07:21:41]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [07:21:41]Write i2c OK [07:21:41]MH_I2C_Read... [07:21:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [07:21:41]Read from MH i2c: E2 [07:21:41]MH_I2C_Read... [07:21:41]Read from MH i2c: E2 DE 00 [07:21:41]MH_I2C_Read... [07:21:41]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [07:21:43]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 [07:21:43]wFMCommunicate OK [07:21:43]SAM_PROTO_GetShiftData done [07:21:43]requested_item shift.sale.total_cash is exist - process it [07:21:43]requested_item shift.sale_refund.total is exist - process it [07:21:43]requested_item shift.sale_refund.total_cash is exist - process it [07:21:43]requested_item shift.buy.total is exist - process it [07:21:43]requested_item shift.buy.total_cash is exist - process it [07:21:43]produce_requested_data done [07:21:43]produce_requested_data return {"fm.sale.total":8141819.25,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":31201.69,"shift.sale.total_cash":26850.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} [07:21:43]process_action_free get_value [07:21:43]json_value_free [07:21:43]json_value_free done [07:21:43]process_json_proto returns [07:21:43]Send response to host [07:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8141819.25,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":31201.69,"shift.sale.total_cash":26850.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}}} [07:21:43]free response buf [07:21:43]execute_script done [07:21:43]execute_script returns [07:21:43]free content buf [07:21:43]Sock 6.Close socket [07:21:43]Sock 6.Thread stoped [07:21:43]accept exits with 8 [07:21:43]New connection [07:21:43]New thread 3067428196 created [07:21:43]Thread 3067284836 joined [07:21:43]Waiting for new connection... [07:21:43] Sock 8.Parse request [07:21:43]Sock 8.Check first char [07:21:43]Sock 8.First char is OK [07:21:43]request: POST /json_proto HTTP/1.0 [07:21:43]Method: POST [07:21:43]URL: /json_proto [07:21:43]Method is POST - this is cgi request [07:21:43]url: /json_proto [07:21:43]query_string will be loaded in cgi processing [07:21:43]execute_cgi json_proto POST (null) [07:21:43]execute_cgi path=json_proto method=POST [07:21:43]POST find Content-Length [07:21:43]Host: 172.17.47.195:8080 [07:21:43]Content-Length: 677 [07:21:43]Content-Type: application/json [07:21:43] [07:21:43]POST finish read [07:21:43]Found Content-Length = 677 [07:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871574", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:43]execute_script... [07:21:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871574", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:43]POST & json_proto [07:21:43]process_json_proto [07:21:43]json parsed OK: [07:21:43]protocol is kg_v1.0 [07:21:43]action value=close_receipt [07:21:43]process_action close_receipt [07:21:43]cmd_close_receipt [07:21:43]MH_GetDate [07:21:43]Write to MH i2c: F0 00 00 1D 00 0C [07:21:43]Write i2c OK [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: F0 [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: F0 09 00 [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: F0 09 00 1D 00 00 88 C5 EF 66 96 2E 95 66 76 [07:21:43]GetLastDocTimeStamp 1726987587 [07:21:43]current date 1726989704 [07:21:43]FM_GetShiftState [07:21:43]SAM_PROTO_GetShiftState [07:21:43]wFMCommunicate request_size=4 [07:21:43]MH_SAM_APDU [07:21:43]CAPDU: 80 13 01 00 [07:21:43]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [07:21:43]Write i2c OK [07:21:43]MH_I2C_Read... [07:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:43]Read from MH i2c: E2 [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: E2 0E 00 [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [07:21:43]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:21:43]wFMCommunicate OK [07:21:43]SAM_PROTO_GetShiftState done [07:21:43]FM_GetShiftState done [07:21:43]opened in 1726964224 [07:21:43]opened+sec_in_day 1727050624 [07:21:43]quantity*price = 30035 [07:21:43]sum+1 = 30036 [07:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 36 22.09.2024 07:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7638 ФПД: 192251552939637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T072144&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7638&fm=192251552939637&tin=02508201610067®Number=0000000000190446&sum=30000 [07:21:45]StoreToDocumentArchive [07:21:45]shift 70 fd 7638 [07:21:45]save to /storage/0070/doc_00007638 [07:21:45]save last doc name /storage/0070/doc_00007638 to /storage/kkm_last_doc_name [07:21:45]save OK [07:21:45]Clear old archive folders... [07:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:45]tlvbuf is 013A7020 [07:21:45]SAM_PROTO_ClearQueue [07:21:45]wFMCommunicate request_size=4 [07:21:45]MH_SAM_APDU [07:21:45]CAPDU: 80 09 00 00 [07:21:45]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:45]Read from MH i2c: E2 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [07:21:45]RAPDU: 90 00 [07:21:45]wFMCommunicate OK [07:21:45]SAM_PROTO_ClearQueue done [07:21:45]KKMCreateOFDPacket [07:21:45]OFDProtocolAddRootSTLVToBuf [07:21:45]FM_MakeSignedData [07:21:45]FM_MakeSignedData [07:21:45]SAM_PROTO_SignData [07:21:45]wFMCommunicate request_size=4 [07:21:45]MH_SAM_APDU [07:21:45]CAPDU: 80 0D 01 02 [07:21:45]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:45]Read from MH i2c: E2 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [07:21:45]RAPDU: 90 00 [07:21:45]wFMCommunicate OK [07:21:45]wFMCommunicate request_size=255 [07:21:45]MH_SAM_APDU [07:21:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 88 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D6 1D 00 00 35 04 06 00 AE [07:21:45]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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 88 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D6 1D 00 00 35 04 06 00 AE 00 00 ED [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 [07:21:45]MH_I2C_Read... [07:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:45]Read from MH i2c: E2 03 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [07:21:45]RAPDU: 90 00 [07:21:45]wFMCommunicate OK [07:21:45]wFMCommunicate request_size=10 [07:21:45]MH_SAM_APDU [07:21:45]CAPDU: 80 0D 02 02 05 DA 0D 85 3E 75 [07:21:45]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 DA 0D 85 3E 75 00 00 D1 [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:45]Read from MH i2c: E2 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [07:21:45]RAPDU: 90 00 [07:21:45]wFMCommunicate OK [07:21:45]wFMCommunicate request_size=4 [07:21:45]MH_SAM_APDU [07:21:45]CAPDU: 80 0D 03 02 [07:21:45]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:45]Read from MH i2c: E2 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 0B 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 0B 00 2F 00 00 A2 16 5F 1E 3D 5F A3 43 90 00 62 [07:21:45]RAPDU: A2 16 5F 1E 3D 5F A3 43 90 00 [07:21:45]wFMCommunicate OK [07:21:45]SAM_PROTO_SignData done [07:21:45]FM_MakeSignedData done [07:21:45]CreateOFDProtocolMessage [07:21:45]wFMCommunicate request_size=4 [07:21:45]MH_SAM_APDU [07:21:45]CAPDU: 80 11 00 00 [07:21:45]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:45]Read from MH i2c: E2 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 17 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [07:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:45]wFMCommunicate OK [07:21:45]CreateOFDProtocolMessage done [07:21:45]OFDSenderStorePacket 7638 [07:21:45]StoreOFDPacket docnum=7638 [07:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 EA E6 07 01 41 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 88 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D6 1D 00 00 35 04 06 00 AE DA 0D 85 3E 75 A2 16 5F 1E 3D 5F A3 43 [07:21:45]CheckFolder [07:21:45]dirname=/storage/ofd_packets [07:21:45]CheckFolder done [07:21:45]ProducePacketName [07:21:45]name=ofd_packets/00007638 [07:21:45]NVStorageSaveData ofd_packets/00007638 [07:21:45]File name is /storage/ofd_packets/00007638 [07:21:45]Write 301 bytes [07:21:45]NVStorageSaveData done [07:21:45]OFDSenderStorePacket done [07:21:45]KKMCreateOFDPacket done [07:21:45]NVStorageSaveData kkm_last_timestamp [07:21:45]File name is /storage/kkm_last_timestamp [07:21:45]Write 4 bytes [07:21:45]NVStorageSaveData done [07:21:45]ExternCall_PrintAddStr [07:21:45]wPrintStart [07:21:45]Write to MH i2c: 01 00 00 31 00 31 [07:21:45]Write i2c OK [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: 01 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: 01 07 00 [07:21:45]MH_I2C_Read... [07:21:45]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:21:45]RasterBufferAndPrint [07:21:45]line Счет N : (1)871574 [07:21:45]line ИНН: 02508201610067 [07:21:45]line Контрольно-Кассовый Чек [07:21:45]line ПРОДАЖА [07:21:45]line ТРК (МРК, ГНК) : 53 [07:21:45]line Товар: 2710124130 [07:21:45]line Аи-92-К-5 [07:21:45]line 4.430 * 67.80 [07:21:45]line = 300.35 [07:21:45]line НДС 12% НСП 1% [07:21:45]line > о реализуемом товаре [07:21:46]line ОКРУГЛЕНИЕ: -0.35 [07:21:46]line ИТОГО: 300.00 [07:21:46]line Внесено: 300.00 [07:21:46]line СДАЧА: 0.00 [07:21:46]line НСП 1% : 2.66 [07:21:46]line НДС 12% : 31.90 [07:21:46]line Наличными: 300.00 [07:21:46]line Безнал.: 0.00 [07:21:46]line Место: АЗС № 137 "Партнер Нефть" [07:21:46]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [07:21:46]line СНО: Общий режим [07:21:46]line Чек 36 22.09.2024 07:21 [07:21:46]line Смена: 70 ФФД: 1.0 [07:21:46]line ЗНМ: 0300000041 [07:21:46]line РНМ: 0000000000190446 [07:21:46]line Версия ККМ: v1.0 [07:21:46]line ФМ: 0000000002094258 [07:21:46]line ФД: 7638 [07:21:46]line ФПД: 192251552939637 [07:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T072144&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7638&fm=192251552939637&tin=02508201610067®Number=0000000000190446&sum=30000 [07:21:46]written 0, free lines is 4095 [07:21:46]OFD Sender: Processing packet 7638 [packets to send 51, broken 50] [07:21:46]ProducePacketName [07:21:46]name=ofd_packets/00007638 [07:21:46]OFD Sender: To server: pG, [07:21:46]CommunicateWithHost lk.salyk.kg:30040 [07:21:46]ConnectInit lk.salyk.kg [07:21:46]Write to MH i2c: 01 00 00 5C 00 5C [07:21:46]Write i2c OK [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: 01 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: 01 07 00 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F6 0C 65 [07:21:46]RasterBufferAndPrint [07:21:46]line [07:21:46]line [07:21:46]line [07:21:46]line [07:21:46]line [07:21:46]written 0, free lines is 3342 [07:21:46]MH_Cut [07:21:46]Write to MH i2c: D1 01 00 63 00 01 35 [07:21:46]Write i2c OK [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: D1 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: D1 01 00 [07:21:46]MH_I2C_Read... [07:21:46]Read from MH i2c: D1 01 00 63 00 00 34 [07:21:46]Write to MH i2c: 01 00 00 64 00 64 [07:21:46]Write i2c OK [07:21:46]MH_I2C_Read... [07:21:47]*** Cut start [07:21:47]*** Purtial cut [07:21:47]*** Stage 1: CUTSNS_PIN = 1 [07:21:47]Read from MH i2c: 01 [07:21:47]MH_I2C_Read... [07:21:47]*** Stop cut motor [07:21:47]*** Cut end [07:21:47]Read from MH i2c: 01 07 00 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [07:21:47]process_action close_receipt done [07:21:47]requested_data is exist [07:21:47]produce_requested_data [07:21:47]requested_item fm.sn is exist - process it [07:21:47]wFMCommunicate request_size=4 [07:21:47]MH_SAM_APDU [07:21:47]CAPDU: 80 11 00 00 [07:21:47]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [07:21:47]Write i2c OK [07:21:47]MH_I2C_Read... [07:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:47]Read from MH i2c: E2 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: E2 17 00 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [07:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:47]wFMCommunicate OK [07:21:47]requested_item fd.num is exist - process it [07:21:47]SAM_PROTO_GetFieldsCounters [07:21:47]wFMCommunicate request_size=4 [07:21:47]MH_SAM_APDU [07:21:47]CAPDU: 80 13 00 00 [07:21:47]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [07:21:47]Write i2c OK [07:21:47]MH_I2C_Read... [07:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:47]Read from MH i2c: E2 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: E2 62 00 [07:21:47]MH_I2C_Read... [07:21:47]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D6 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [07:21:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D6 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:47]wFMCommunicate OK [07:21:47]SAM_PROTO_GetFieldsCounters done [07:21:47]requested_item shift.num is exist - process it [07:21:47]requested_item shift.opened is exist - process it [07:21:47]req_shift_opened [07:21:47]FM_GetShiftState [07:21:47]SAM_PROTO_GetShiftState [07:21:47]wFMCommunicate request_size=4 [07:21:47]MH_SAM_APDU [07:21:47]CAPDU: 80 13 01 00 [07:21:47]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [07:21:47]Write i2c OK [07:21:47]MH_I2C_Read... [07:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:47]Read from MH i2c: E2 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: E2 0E 00 [07:21:47]MH_I2C_Read... [07:21:47]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [07:21:47]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:21:47]wFMCommunicate OK [07:21:47]SAM_PROTO_GetShiftState done [07:21:47]FM_GetShiftState done [07:21:47]req_shift_opened done [07:21:47]requested_item shift.open_date is exist - process it [07:21:47]req_shift_open_date [07:21:47]req_shift_open_date done [07:21:47]produce_requested_data done [07:21:47]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7638,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [07:21:47]process_action_free close_receipt [07:21:47]json_value_free [07:21:47]json_value_free done [07:21:47]process_json_proto returns [07:21:47]Send response to host [07:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7638,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [07:21:47]free response buf [07:21:47]execute_script done [07:21:47]execute_script returns [07:21:47]free content buf [07:21:47]Sock 8.Close socket [07:21:47]Sock 8.Thread stoped [07:21:48]accept exits with 6 [07:21:48]New connection [07:21:48]New thread 3067284836 created [07:21:48]Thread 3067428196 joined [07:21:48]Waiting for new connection... [07:21:48] Sock 6.Parse request [07:21:48]Sock 6.Check first char [07:21:48]Sock 6.First char is OK [07:21:48]request: POST /json_proto HTTP/1.0 [07:21:48]Method: POST [07:21:48]URL: /json_proto [07:21:48]Method is POST - this is cgi request [07:21:48]url: /json_proto [07:21:48]query_string will be loaded in cgi processing [07:21:48]execute_cgi json_proto POST (null) [07:21:48]execute_cgi path=json_proto method=POST [07:21:48]POST find Content-Length [07:21:48]Host: 172.17.47.195:8080 [07:21:48]Content-Length: 800 [07:21:48]Content-Type: application/json [07:21:48] [07:21:48]POST finish read [07:21:48]Found Content-Length = 800 [07:21:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:48]execute_script... [07:21:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:48]POST & json_proto [07:21:48]process_json_proto [07:21:48]json parsed OK: [07:21:48]protocol is kg_v1.0 [07:21:48]action value=close_receipt [07:21:48]process_action close_receipt [07:21:48]cmd_close_receipt [07:21:48]MH_GetDate [07:21:48]Write to MH i2c: F0 00 00 68 00 57 [07:21:48]Write i2c OK [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: F0 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: F0 09 00 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: F0 09 00 68 00 00 8C C5 EF 66 96 2E 95 66 C5 [07:21:48]GetLastDocTimeStamp 1726989704 [07:21:48]current date 1726989708 [07:21:48]FM_GetShiftState [07:21:48]SAM_PROTO_GetShiftState [07:21:48]wFMCommunicate request_size=4 [07:21:48]MH_SAM_APDU [07:21:48]CAPDU: 80 13 01 00 [07:21:48]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [07:21:48]Write i2c OK [07:21:48]MH_I2C_Read... [07:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:48]Read from MH i2c: E2 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: E2 0E 00 [07:21:48]MH_I2C_Read... [07:21:48]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [07:21:48]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:21:48]wFMCommunicate OK [07:21:48]SAM_PROTO_GetShiftState done [07:21:48]FM_GetShiftState done [07:21:48]opened in 1726964224 [07:21:48]opened+sec_in_day 1727050624 [07:21:48]quantity*price = 60003 [07:21:48]sum+1 = 60004 [07:21:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 37 22.09.2024 07:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7639 ФПД: 103233182191169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T072148&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7639&fm=103233182191169&tin=02508201610067®Number=0000000000190446&sum=60003 [07:21:49]StoreToDocumentArchive [07:21:49]shift 70 fd 7639 [07:21:49]save to /storage/0070/doc_00007639 [07:21:49]save last doc name /storage/0070/doc_00007639 to /storage/kkm_last_doc_name [07:21:49]save OK [07:21:49]Clear old archive folders... [07:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:49]tlvbuf is 013C4940 [07:21:49]SAM_PROTO_ClearQueue [07:21:49]wFMCommunicate request_size=4 [07:21:49]MH_SAM_APDU [07:21:49]CAPDU: 80 09 00 00 [07:21:49]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [07:21:49]Write i2c OK [07:21:49]MH_I2C_Read... [07:21:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:49]Read from MH i2c: E2 [07:21:49]MH_I2C_Read... [07:21:49]Read from MH i2c: E2 03 00 [07:21:49]MH_I2C_Read... [07:21:49]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [07:21:49]RAPDU: 90 00 [07:21:49]wFMCommunicate OK [07:21:49]SAM_PROTO_ClearQueue done [07:21:49]KKMCreateOFDPacket [07:21:49]OFDProtocolAddRootSTLVToBuf [07:21:49]FM_MakeSignedData [07:21:49]FM_MakeSignedData [07:21:49]SAM_PROTO_SignData [07:21:49]wFMCommunicate request_size=4 [07:21:49]MH_SAM_APDU [07:21:49]CAPDU: 80 0D 01 02 [07:21:49]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [07:21:49]Write i2c OK [07:21:49]MH_I2C_Read... [07:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:49]Read from MH i2c: E2 [07:21:49]MH_I2C_Read... [07:21:49]Read from MH i2c: E2 03 00 [07:21:49]MH_I2C_Read... [07:21:49]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [07:21:49]RAPDU: 90 00 [07:21:49]wFMCommunicate OK [07:21:49]wFMCommunicate request_size=255 [07:21:49]MH_SAM_APDU [07:21:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8C C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D7 1D 00 00 35 04 06 00 5D [07:21:49]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8C C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D7 1D 00 00 35 04 06 00 5D 00 00 9B [07:21:50]Write i2c OK [07:21:50]MH_I2C_Read... [07:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:50]Read from MH i2c: E2 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: E2 03 00 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [07:21:50]RAPDU: 90 00 [07:21:50]wFMCommunicate OK [07:21:50]wFMCommunicate request_size=10 [07:21:50]MH_SAM_APDU [07:21:50]CAPDU: 80 0D 02 02 05 E3 D9 27 4E 41 [07:21:50]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 E3 D9 27 4E 41 00 00 6F [07:21:50]Write i2c OK [07:21:50]MH_I2C_Read... [07:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:50]Read from MH i2c: E2 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: E2 03 00 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [07:21:50]RAPDU: 90 00 [07:21:50]wFMCommunicate OK [07:21:50]wFMCommunicate request_size=4 [07:21:50]MH_SAM_APDU [07:21:50]CAPDU: 80 0D 03 02 [07:21:50]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [07:21:50]Write i2c OK [07:21:50]MH_I2C_Read... [07:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:50]Read from MH i2c: E2 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: E2 0B 00 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: E2 0B 00 7A 00 00 8E 75 61 5D 14 CE EE 42 90 00 C9 [07:21:50]RAPDU: 8E 75 61 5D 14 CE EE 42 90 00 [07:21:50]wFMCommunicate OK [07:21:50]SAM_PROTO_SignData done [07:21:50]FM_MakeSignedData done [07:21:50]CreateOFDProtocolMessage [07:21:50]wFMCommunicate request_size=4 [07:21:50]MH_SAM_APDU [07:21:50]CAPDU: 80 11 00 00 [07:21:50]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [07:21:50]Write i2c OK [07:21:50]MH_I2C_Read... [07:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:50]Read from MH i2c: E2 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: E2 17 00 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [07:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:50]wFMCommunicate OK [07:21:50]CreateOFDProtocolMessage done [07:21:50]OFDSenderStorePacket 7639 [07:21:50]StoreOFDPacket docnum=7639 [07:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 69 AC 07 01 B9 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8C C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D7 1D 00 00 35 04 06 00 5D E3 D9 27 4E 41 8E 75 61 5D 14 CE EE 42 [07:21:50]CheckFolder [07:21:50]dirname=/storage/ofd_packets [07:21:50]CheckFolder done [07:21:50]ProducePacketName [07:21:50]name=ofd_packets/00007639 [07:21:50]NVStorageSaveData ofd_packets/00007639 [07:21:50]File name is /storage/ofd_packets/00007639 [07:21:50]Write 301 bytes [07:21:50]NVStorageSaveData done [07:21:50]OFDSenderStorePacket done [07:21:50]KKMCreateOFDPacket done [07:21:50]NVStorageSaveData kkm_last_timestamp [07:21:50]File name is /storage/kkm_last_timestamp [07:21:50]Write 4 bytes [07:21:50]NVStorageSaveData done [07:21:50]ExternCall_PrintAddStr [07:21:50]wPrintStart [07:21:50]Write to MH i2c: 01 00 00 7C 00 7C [07:21:50]Write i2c OK [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: 01 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: 01 07 00 [07:21:50]MH_I2C_Read... [07:21:50]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [07:21:50]RasterBufferAndPrint [07:21:50]line Счет N : (1)871575 [07:21:50]line ИНН: 02508201610067 [07:21:50]line Контрольно-Кассовый Чек [07:21:50]line ПРОДАЖА [07:21:50]line ТРК (МРК, ГНК) : 33 [07:21:50]line Товар: 2710124130 [07:21:50]line Аи-92-К-5 [07:21:50]line 8.850 * 67.80 [07:21:50]line = 600.03 [07:21:50]line НДС 12% НСП 1% [07:21:50]line > о реализуемом товаре [07:21:50]line ИТОГО: 600.03 [07:21:50]line НСП 1% : 5.31 [07:21:50]line НДС 12% : 63.72 [07:21:50]line Наличными: 0.00 [07:21:50]line Безнал.: 600.03 [07:21:50]line Место: АЗС № 137 "Партнер Нефть" [07:21:50]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [07:21:50]line СНО: Общий режим [07:21:50]line Чек 37 22.09.2024 07:21 [07:21:50]line Смена: 70 ФФД: 1.0 [07:21:50]line ЗНМ: 0300000041 [07:21:50]line РНМ: 0000000000190446 [07:21:50]line Версия ККМ: v1.0 [07:21:50]line Платежная система: O! деньги [07:21:50]line ФМ: 0000000002094258 [07:21:50]line ФД: 7639 [07:21:50]line ФПД: 103233182191169 [07:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T072148&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7639&fm=103233182191169&tin=02508201610067®Number=0000000000190446&sum=60003 [07:21:50]written 0, free lines is 4095 [07:21:51]Write to MH i2c: 01 00 00 A6 00 A6 [07:21:51]Write i2c OK [07:21:51]MH_I2C_Read... [07:21:51]Read from MH i2c: 01 [07:21:51]MH_I2C_Read... [07:21:51]Read from MH i2c: 01 07 00 [07:21:51]MH_I2C_Read... [07:21:51]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 FE 0C B7 [07:21:51]RasterBufferAndPrint [07:21:51]line [07:21:51]line [07:21:51]line [07:21:51]line [07:21:51]line [07:21:51]written 0, free lines is 3352 [07:21:51]MH_Cut [07:21:51]Write to MH i2c: D1 01 00 AD 00 01 7F [07:21:51]Write i2c OK [07:21:51]MH_I2C_Read... [07:21:51]Read from MH i2c: D1 [07:21:51]MH_I2C_Read... [07:21:51]Read from MH i2c: D1 01 00 [07:21:51]MH_I2C_Read... [07:21:51]Read from MH i2c: D1 01 00 AD 00 00 7E [07:21:51]Write to MH i2c: 01 00 00 AE 00 AE [07:21:51]Write i2c OK [07:21:51]MH_I2C_Read... [07:21:51]*** Cut start [07:21:51]*** Purtial cut [07:21:51]*** Stage 1: CUTSNS_PIN = 1 [07:21:52]Read from MH i2c: 01 [07:21:52]MH_I2C_Read... [07:21:52]*** Stop cut motor [07:21:52]*** Cut end [07:21:52]Read from MH i2c: 01 07 00 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [07:21:52]process_action close_receipt done [07:21:52]requested_data is exist [07:21:52]produce_requested_data [07:21:52]requested_item fm.sn is exist - process it [07:21:52]wFMCommunicate request_size=4 [07:21:52]MH_SAM_APDU [07:21:52]CAPDU: 80 11 00 00 [07:21:52]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [07:21:52]Write i2c OK [07:21:52]MH_I2C_Read... [07:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:52]Read from MH i2c: E2 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: E2 17 00 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7A [07:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:52]wFMCommunicate OK [07:21:52]requested_item fd.num is exist - process it [07:21:52]SAM_PROTO_GetFieldsCounters [07:21:52]wFMCommunicate request_size=4 [07:21:52]MH_SAM_APDU [07:21:52]CAPDU: 80 13 00 00 [07:21:52]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [07:21:52]Write i2c OK [07:21:52]MH_I2C_Read... [07:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:52]Read from MH i2c: E2 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: E2 62 00 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D7 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [07:21:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D7 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:52]wFMCommunicate OK [07:21:52]SAM_PROTO_GetFieldsCounters done [07:21:52]requested_item shift.num is exist - process it [07:21:52]requested_item shift.opened is exist - process it [07:21:52]req_shift_opened [07:21:52]FM_GetShiftState [07:21:52]SAM_PROTO_GetShiftState [07:21:52]wFMCommunicate request_size=4 [07:21:52]MH_SAM_APDU [07:21:52]CAPDU: 80 13 01 00 [07:21:52]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [07:21:52]Write i2c OK [07:21:52]MH_I2C_Read... [07:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:52]Read from MH i2c: E2 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: E2 0E 00 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F1 [07:21:52]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:21:52]wFMCommunicate OK [07:21:52]SAM_PROTO_GetShiftState done [07:21:52]FM_GetShiftState done [07:21:52]req_shift_opened done [07:21:52]requested_item shift.open_date is exist - process it [07:21:52]req_shift_open_date [07:21:52]req_shift_open_date done [07:21:52]produce_requested_data done [07:21:52]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7639,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [07:21:52]process_action_free close_receipt [07:21:52]json_value_free [07:21:52]json_value_free done [07:21:52]process_json_proto returns [07:21:52]Send response to host [07:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7639,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [07:21:52]free response buf [07:21:52]execute_script done [07:21:52]execute_script returns [07:21:52]free content buf [07:21:52]Sock 6.Close socket [07:21:52]Sock 6.Thread stoped [07:21:52]Connected sock=10 [07:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 EA E6 07 01 41 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 88 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D6 1D 00 00 35 04 06 00 AE DA 0D 85 3E 75 A2 16 5F 1E 3D 5F A3 43 [07:21:52]accept exits with 8 [07:21:52]New connection [07:21:52]New thread 3067428196 created [07:21:52]Thread 3067284836 joined [07:21:52]Waiting for new connection... [07:21:52] Sock 8.Parse request [07:21:52]Sock 8.Check first char [07:21:52]Sock 8.First char is OK [07:21:52]request: POST /json_proto HTTP/1.0 [07:21:52]Method: POST [07:21:52]URL: /json_proto [07:21:52]Method is POST - this is cgi request [07:21:52]url: /json_proto [07:21:52]query_string will be loaded in cgi processing [07:21:52]execute_cgi json_proto POST (null) [07:21:52]execute_cgi path=json_proto method=POST [07:21:52]POST find Content-Length [07:21:52]Host: 172.17.47.195:8080 [07:21:52]Content-Length: 682 [07:21:52]Content-Type: application/json [07:21:52] [07:21:52]POST finish read [07:21:52]Found Content-Length = 682 [07:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871576", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:52]execute_script... [07:21: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)871576", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:52]POST & json_proto [07:21:52]process_json_proto [07:21:52]json parsed OK: [07:21:52]protocol is kg_v1.0 [07:21:52]action value=close_receipt [07:21:52]process_action close_receipt [07:21:52]cmd_close_receipt [07:21:52]MH_GetDate [07:21:52]Write to MH i2c: F0 00 00 B2 00 A1 [07:21:52]Write i2c OK [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: F0 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: F0 09 00 [07:21:52]MH_I2C_Read... [07:21:52]Read from MH i2c: F0 09 00 B2 00 00 91 C5 EF 66 96 2E 95 66 14 [07:21:52]GetLastDocTimeStamp 1726989708 [07:21:52]current date 1726989713 [07:21:52]FM_GetShiftState [07:21:52]SAM_PROTO_GetShiftState [07:21:52]wFMCommunicate request_size=4 [07:21:52]MH_SAM_APDU [07:21:52]CAPDU: 80 13 01 00 [07:21:52]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [07:21:52]Write i2c OK [07:21:52]MH_I2C_Read... [07:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:53]Read from MH i2c: E2 [07:21:53]MH_I2C_Read... [07:21:53]Read from MH i2c: E2 0E 00 [07:21:53]MH_I2C_Read... [07:21:53]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F3 [07:21:53]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:21:53]wFMCommunicate OK [07:21:53]SAM_PROTO_GetShiftState done [07:21:53]FM_GetShiftState done [07:21:53]opened in 1726964224 [07:21:53]opened+sec_in_day 1727050624 [07:21:53]quantity*price = 100005 [07:21:53]sum+1 = 100006 [07:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 38 22.09.2024 07:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7640 ФПД: 75347465677538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T072153&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7640&fm=75347465677538&tin=02508201610067®Number=0000000000190446&sum=100000 [07:21:54]StoreToDocumentArchive [07:21:54]shift 70 fd 7640 [07:21:54]save to /storage/0070/doc_00007640 [07:21:54]save last doc name /storage/0070/doc_00007640 to /storage/kkm_last_doc_name [07:21:54]save OK [07:21:54]Clear old archive folders... [07:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:54]tlvbuf is 013ECFB0 [07:21:54]SAM_PROTO_ClearQueue [07:21:54]wFMCommunicate request_size=4 [07:21:54]MH_SAM_APDU [07:21:54]CAPDU: 80 09 00 00 [07:21:54]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [07:21:54]Write i2c OK [07:21:54]MH_I2C_Read... [07:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:54]Read from MH i2c: E2 [07:21:54]MH_I2C_Read... [07:21:54]Read from MH i2c: E2 03 00 [07:21:54]MH_I2C_Read... [07:21:54]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [07:21:54]RAPDU: 90 00 [07:21:54]wFMCommunicate OK [07:21:54]SAM_PROTO_ClearQueue done [07:21:54]KKMCreateOFDPacket [07:21:54]OFDProtocolAddRootSTLVToBuf [07:21:54]FM_MakeSignedData [07:21:54]FM_MakeSignedData [07:21:54]SAM_PROTO_SignData [07:21:54]wFMCommunicate request_size=4 [07:21:54]MH_SAM_APDU [07:21:54]CAPDU: 80 0D 01 02 [07:21:54]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [07:21:54]Write i2c OK [07:21:54]MH_I2C_Read... [07:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:54]Read from MH i2c: E2 [07:21:54]MH_I2C_Read... [07:21:54]Read from MH i2c: E2 03 00 [07:21:54]MH_I2C_Read... [07:21:54]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [07:21:54]RAPDU: 90 00 [07:21:54]wFMCommunicate OK [07:21:54]wFMCommunicate request_size=255 [07:21:54]MH_SAM_APDU [07:21:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 91 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D8 1D 00 00 35 04 06 00 44 [07:21:54]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 91 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D8 1D 00 00 35 04 06 00 44 00 00 95 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [07:21:55]RAPDU: 90 00 [07:21:55]wFMCommunicate OK [07:21:55]wFMCommunicate request_size=10 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 0D 02 02 05 87 32 ED 2A E2 [07:21:55]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 87 32 ED 2A E2 00 00 F9 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [07:21:55]RAPDU: 90 00 [07:21:55]wFMCommunicate OK [07:21:55]wFMCommunicate request_size=4 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 0D 03 02 [07:21:55]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 0B 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 0B 00 C4 00 00 27 96 57 1E 2D B1 AD 9C 90 00 99 [07:21:55]RAPDU: 27 96 57 1E 2D B1 AD 9C 90 00 [07:21:55]wFMCommunicate OK [07:21:55]SAM_PROTO_SignData done [07:21:55]FM_MakeSignedData done [07:21:55]CreateOFDProtocolMessage [07:21:55]wFMCommunicate request_size=4 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 11 00 00 [07:21:55]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 D8 03 47 00 07 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D6 1D 00 00 F4 03 04 00 4E 70 EF 66 B6 04 01 00 00 E4 C3 F9 D8 8D 33 77 6A [07:21:55]CommunicateWithHost err = 0 [07:21:55]CheckOFDResponse [07:21:55]1017 (14) - 77093643461234 [07:21:55]1041 (16) - 0000000002094258 [07:21:55]1040 (4) - 7638 [07:21:55]1012 (4) - 22.09.2024 01:18 [07:21:55]1206 (1) - 0 [07:21:55]OFD Sender: Remove packet 7638 [07:21:55]ProducePacketName [07:21:55]name=ofd_packets/00007638 [07:21:55]NVStorageDeleteData [07:21:55]Read from MH i2c: E2 17 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 90 [07:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:55]wFMCommunicate OK [07:21:55]CreateOFDProtocolMessage done [07:21:55]OFDSenderStorePacket 7640 [07:21:55]StoreOFDPacket docnum=7640 [07:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E7 3A 07 01 BD 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 91 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D8 1D 00 00 35 04 06 00 44 87 32 ED 2A E2 27 96 57 1E 2D B1 AD 9C [07:21:55]CheckFolder [07:21:55]dirname=/storage/ofd_packets [07:21:55]CheckFolder done [07:21:55]ProducePacketName [07:21:55]name=ofd_packets/00007640 [07:21:55]NVStorageSaveData ofd_packets/00007640 [07:21:55]File name is /storage/ofd_packets/00007640 [07:21:55]Write 301 bytes [07:21:55]NVStorageSaveData done [07:21:55]OFDSenderStorePacket done [07:21:55]KKMCreateOFDPacket done [07:21:55]NVStorageSaveData kkm_last_timestamp [07:21:55]File name is /storage/kkm_last_timestamp [07:21:55]Write 4 bytes [07:21:55]NVStorageSaveData done [07:21:55]ExternCall_PrintAddStr [07:21:55]wPrintStart [07:21:55]Write to MH i2c: 01 00 00 C6 00 C6 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: 01 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: 01 07 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [07:21:55]RasterBufferAndPrint [07:21:55]line Счет N : (1)871576 [07:21:55]line ИНН: 02508201610067 [07:21:55]line Контрольно-Кассовый Чек [07:21:55]line ПРОДАЖА [07:21:55]line ТРК (МРК, ГНК) : 63 [07:21:55]line Товар: 2710124130 [07:21:55]line Аи-92-К-5 [07:21:55]line 14.750 * 67.80 [07:21:55]line = 1000.05 [07:21:55]line НДС 12% НСП 1% [07:21:55]line > о реализуемом товаре [07:21:55]line ОКРУГЛЕНИЕ: -0.05 [07:21:55]line ИТОГО: 1000.00 [07:21:55]line Внесено: 1000.00 [07:21:55]line СДАЧА: 0.00 [07:21:55]line НСП 1% : 8.85 [07:21:55]line НДС 12% : 106.20 [07:21:55]line Наличными: 1000.00 [07:21:55]line Безнал.: 0.00 [07:21:55]line Место: АЗС № 137 "Партнер Нефть" [07:21:55]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [07:21:55]line СНО: Общий режим [07:21:55]line Чек 38 22.09.2024 07:21 [07:21:55]line Смена: 70 ФФД: 1.0 [07:21:55]line ЗНМ: 0300000041 [07:21:55]line РНМ: 0000000000190446 [07:21:55]line Версия ККМ: v1.0 [07:21:55]line ФМ: 0000000002094258 [07:21:55]line ФД: 7640 [07:21:55]line ФПД: 75347465677538 [07:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T072153&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7640&fm=75347465677538&tin=02508201610067®Number=0000000000190446&sum=100000 [07:21:55]written 0, free lines is 4095 [07:21:56]OFD Sender: Processing packet 7639 [packets to send 52, broken 50] [07:21:56]ProducePacketName [07:21:56]name=ofd_packets/00007639 [07:21:56]OFD Sender: To server: pG, [07:21:56]CommunicateWithHost lk.salyk.kg:30040 [07:21:56]ConnectInit lk.salyk.kg [07:21:56]Write to MH i2c: 01 00 00 F1 00 F1 [07:21:56]Write i2c OK [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: 01 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: 01 07 00 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 00 0D 05 [07:21:56]RasterBufferAndPrint [07:21:56]line [07:21:56]line [07:21:56]line [07:21:56]line [07:21:56]line [07:21:56]written 0, free lines is 3363 [07:21:56]MH_Cut [07:21:56]Write to MH i2c: D1 01 00 F8 00 01 CA [07:21:56]Write i2c OK [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: D1 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: D1 01 00 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: D1 01 00 F8 00 00 C9 [07:21:56]Write to MH i2c: 01 00 00 F9 00 F9 [07:21:56]Write i2c OK [07:21:56]MH_I2C_Read... [07:21:56]*** Cut start [07:21:56]*** Purtial cut [07:21:56]*** Stage 1: CUTSNS_PIN = 1 [07:21:57]Read from MH i2c: 01 [07:21:57]MH_I2C_Read... [07:21:57]*** Stop cut motor [07:21:57]*** Cut end [07:21:57]Read from MH i2c: 01 07 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [07:21:57]process_action close_receipt done [07:21:57]requested_data is exist [07:21:57]produce_requested_data [07:21:57]requested_item fm.sn is exist - process it [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 11 00 00 [07:21:57]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:57]Read from MH i2c: E2 17 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C5 [07:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:21:57]wFMCommunicate OK [07:21:57]requested_item fd.num is exist - process it [07:21:57]SAM_PROTO_GetFieldsCounters [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 13 00 00 [07:21:57]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 62 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D8 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [07:21:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D8 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:57]wFMCommunicate OK [07:21:57]SAM_PROTO_GetFieldsCounters done [07:21:57]requested_item shift.num is exist - process it [07:21:57]requested_item shift.opened is exist - process it [07:21:57]req_shift_opened [07:21:57]FM_GetShiftState [07:21:57]SAM_PROTO_GetShiftState [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 13 01 00 [07:21:57]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 0E 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3C [07:21:57]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:21:57]wFMCommunicate OK [07:21:57]SAM_PROTO_GetShiftState done [07:21:57]FM_GetShiftState done [07:21:57]req_shift_opened done [07:21:57]requested_item shift.open_date is exist - process it [07:21:57]req_shift_open_date [07:21:57]req_shift_open_date done [07:21:57]produce_requested_data done [07:21:57]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7640,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [07:21:57]process_action_free close_receipt [07:21:57]json_value_free [07:21:57]json_value_free done [07:21:57]process_json_proto returns [07:21:57]Send response to host [07:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7640,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [07:21:57]free response buf [07:21:57]execute_script done [07:21:57]execute_script returns [07:21:57]free content buf [07:21:57]Sock 8.Close socket [07:21:57]Sock 8.Thread stoped [07:21:59]Connected sock=10 [07:21:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 69 AC 07 01 B9 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8C C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D7 1D 00 00 35 04 06 00 5D E3 D9 27 4E 41 8E 75 61 5D 14 CE EE 42 [07:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 6C 27 47 00 DB 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D7 1D 00 00 F4 03 04 00 55 70 EF 66 B6 04 01 00 00 BE E0 B2 DC DB A8 85 EC [07:22:02]CommunicateWithHost err = 0 [07:22:02]CheckOFDResponse [07:22:02]1017 (14) - 77093643461234 [07:22:02]1041 (16) - 0000000002094258 [07:22:02]1040 (4) - 7639 [07:22:02]1012 (4) - 22.09.2024 01:18 [07:22:02]1206 (1) - 0 [07:22:02]OFD Sender: Remove packet 7639 [07:22:02]ProducePacketName [07:22:02]name=ofd_packets/00007639 [07:22:02]NVStorageDeleteData [07:22:03]OFD Sender: Processing packet 7640 [packets to send 51, broken 50] [07:22:03]ProducePacketName [07:22:03]name=ofd_packets/00007640 [07:22:03]OFD Sender: To server: pG, [07:22:03]CommunicateWithHost lk.salyk.kg:30040 [07:22:03]ConnectInit lk.salyk.kg [07:22:10]recv_with_timeout no data received [07:22:11]Connected sock=10 [07:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E7 3A 07 01 BD 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 91 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D8 1D 00 00 35 04 06 00 44 87 32 ED 2A E2 27 96 57 1E 2D B1 AD 9C [07:22:16]recv_with_timeout no data received [07:22:16]CommunicateWithHost answer receiving error [07:22:16]CommunicateWithHost err = -3 [07:22:16]OFD Sender: Server communicate error [07:22:16]OFD Sender: Processing packet 7640 [packets to send 51, broken 50] [07:22:16]ProducePacketName [07:22:16]name=ofd_packets/00007640 [07:22:16]OFD Sender: To server: pG, [07:22:16]CommunicateWithHost lk.salyk.kg:30040 [07:22:16]ConnectInit lk.salyk.kg [07:22:21]ConnectInit Can't take IP for lk.salyk.kg [07:22:21]CommunicateWithHost connect error [07:22:21]CommunicateWithHost err = -1 [07:22:21]OFD Sender: Server communicate error [07:22:26]OFD Sender: Processing packet 7640 [packets to send 51, broken 50] [07:22:26]ProducePacketName [07:22:26]name=ofd_packets/00007640 [07:22:26]OFD Sender: To server: pG, [07:22:26]CommunicateWithHost lk.salyk.kg:30040 [07:22:26]ConnectInit lk.salyk.kg [07:22:31]ConnectInit Can't take IP for lk.salyk.kg [07:22:31]CommunicateWithHost connect error [07:22:31]CommunicateWithHost err = -1 [07:22:31]OFD Sender: Server communicate error [07:22:36]OFD Sender: Processing packet 7640 [packets to send 51, broken 50] [07:22:36]ProducePacketName [07:22:36]name=ofd_packets/00007640 [07:22:36]OFD Sender: To server: pG, [07:22:36]CommunicateWithHost lk.salyk.kg:30040 [07:22:36]ConnectInit lk.salyk.kg [07:22:41]ConnectInit Can't take IP for lk.salyk.kg [07:22:41]CommunicateWithHost connect error [07:22:41]CommunicateWithHost err = -1 [07:22:41]OFD Sender: Server communicate error [07:22:45]accept exits with 6 [07:22:45]New connection [07:22:45]New thread 3067284836 created [07:22:45]Thread 3067428196 joined [07:22:45]Waiting for new connection... [07:22:45] Sock 6.Parse request [07:22:45]Sock 6.Check first char [07:22:45]Sock 6.First char is OK [07:22:45]request: POST /json_proto HTTP/1.0 [07:22:45]Method: POST [07:22:45]URL: /json_proto [07:22:45]Method is POST - this is cgi request [07:22:45]url: /json_proto [07:22:45]query_string will be loaded in cgi processing [07:22:45]execute_cgi json_proto POST (null) [07:22:45]execute_cgi path=json_proto method=POST [07:22:45]POST find Content-Length [07:22:45]Host: 172.17.47.195:8080 [07:22:45]Content-Length: 687 [07:22:45]Content-Type: application/json [07:22:45] [07:22:45]POST finish read [07:22:45]Found Content-Length = 687 [07:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:45]execute_script... [07:22:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:45]POST & json_proto [07:22:45]process_json_proto [07:22:45]json parsed OK: [07:22:45]protocol is kg_v1.0 [07:22:45]action value=close_receipt [07:22:45]process_action close_receipt [07:22:45]cmd_close_receipt [07:22:45]MH_GetDate [07:22:45]Write to MH i2c: F0 00 00 FD 00 EC [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: F0 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: F0 09 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: F0 09 00 FD 00 00 C6 C5 EF 66 96 2E 95 66 94 [07:22:45]GetLastDocTimeStamp 1726989713 [07:22:45]current date 1726989766 [07:22:45]FM_GetShiftState [07:22:45]SAM_PROTO_GetShiftState [07:22:45]wFMCommunicate request_size=4 [07:22:45]MH_SAM_APDU [07:22:45]CAPDU: 80 13 01 00 [07:22:45]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:45]Read from MH i2c: E2 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 0E 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3E [07:22:45]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:22:45]wFMCommunicate OK [07:22:45]SAM_PROTO_GetShiftState done [07:22:45]FM_GetShiftState done [07:22:45]opened in 1726964224 [07:22:45]opened+sec_in_day 1727050624 [07:22:45]quantity*price = 100050 [07:22:45]sum+1 = 100052 [07:22:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 39 22.09.2024 07:22 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7641 ФПД: 215554121597859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T072246&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7641&fm=215554121597859&tin=02508201610067®Number=0000000000190446&sum=100000 [07:22:47]StoreToDocumentArchive [07:22:47]shift 70 fd 7641 [07:22:47]save to /storage/0070/doc_00007641 [07:22:47]save last doc name /storage/0070/doc_00007641 to /storage/kkm_last_doc_name [07:22:47]save OK [07:22:47]Clear old archive folders... [07:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:22:47]tlvbuf is 01379190 [07:22:47]SAM_PROTO_ClearQueue [07:22:47]wFMCommunicate request_size=4 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 09 00 00 [07:22:47]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [07:22:47]RAPDU: 90 00 [07:22:47]wFMCommunicate OK [07:22:47]SAM_PROTO_ClearQueue done [07:22:47]KKMCreateOFDPacket [07:22:47]OFDProtocolAddRootSTLVToBuf [07:22:47]FM_MakeSignedData [07:22:47]FM_MakeSignedData [07:22:47]SAM_PROTO_SignData [07:22:47]wFMCommunicate request_size=4 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 0D 01 02 [07:22:47]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [07:22:47]RAPDU: 90 00 [07:22:47]wFMCommunicate OK [07:22:47]wFMCommunicate request_size=255 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D9 1D 00 00 35 04 06 00 [07:22:47]Write to MH i2c: E2 02 01 0D 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D9 1D 00 00 35 04 06 00 00 00 32 [07:22:47]Write i2c OK [07:22:47]MH_I2C_Read... [07:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:47]Read from MH i2c: E2 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 [07:22:47]MH_I2C_Read... [07:22:47]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [07:22:47]RAPDU: 90 00 [07:22:47]wFMCommunicate OK [07:22:47]wFMCommunicate request_size=11 [07:22:47]MH_SAM_APDU [07:22:47]CAPDU: 80 0D 02 02 06 C4 0B 9A D9 03 A3 [07:22:47]Write to MH i2c: E2 0E 00 0E 01 80 0D 02 02 06 00 C4 0B 9A D9 03 A3 00 00 7D [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:48]Read from MH i2c: E2 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: E2 03 00 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [07:22:48]RAPDU: 90 00 [07:22:48]wFMCommunicate OK [07:22:48]wFMCommunicate request_size=4 [07:22:48]MH_SAM_APDU [07:22:48]CAPDU: 80 0D 03 02 [07:22:48]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:48]Read from MH i2c: E2 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: E2 0B 00 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: E2 0B 00 0F 01 00 AB A1 B2 9D 01 8A 51 08 90 00 0B [07:22:48]RAPDU: AB A1 B2 9D 01 8A 51 08 90 00 [07:22:48]wFMCommunicate OK [07:22:48]SAM_PROTO_SignData done [07:22:48]FM_MakeSignedData done [07:22:48]CreateOFDProtocolMessage [07:22:48]wFMCommunicate request_size=4 [07:22:48]MH_SAM_APDU [07:22:48]CAPDU: 80 11 00 00 [07:22:48]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:48]Read from MH i2c: E2 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: E2 17 00 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DC [07:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:22:48]wFMCommunicate OK [07:22:48]CreateOFDProtocolMessage done [07:22:48]OFDSenderStorePacket 7641 [07:22:48]StoreOFDPacket docnum=7641 [07:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 04 24 08 01 D8 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D9 1D 00 00 35 04 06 00 C4 0B 9A D9 03 A3 AB A1 B2 9D 01 8A 51 08 [07:22:48]CheckFolder [07:22:48]dirname=/storage/ofd_packets [07:22:48]CheckFolder done [07:22:48]ProducePacketName [07:22:48]name=ofd_packets/00007641 [07:22:48]NVStorageSaveData ofd_packets/00007641 [07:22:48]File name is /storage/ofd_packets/00007641 [07:22:48]Write 302 bytes [07:22:48]NVStorageSaveData done [07:22:48]OFDSenderStorePacket done [07:22:48]KKMCreateOFDPacket done [07:22:48]NVStorageSaveData kkm_last_timestamp [07:22:48]File name is /storage/kkm_last_timestamp [07:22:48]Write 4 bytes [07:22:48]NVStorageSaveData done [07:22:48]ExternCall_PrintAddStr [07:22:48]wPrintStart [07:22:48]Write to MH i2c: 01 00 00 11 01 12 [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 07 00 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [07:22:48]RasterBufferAndPrint [07:22:48]line Счет N : (1)871579 [07:22:48]line ИНН: 02508201610067 [07:22:48]line Контрольно-Кассовый Чек [07:22:48]line ПРОДАЖА [07:22:48]line ТРК (МРК, ГНК) : 11 [07:22:48]line Товар: 2710194210 [07:22:48]line ДТ(л)-К-4 [07:22:48]line 13.130 * 76.20 [07:22:48]line = 1000.51 [07:22:48]line НДС 12% НСП 1% [07:22:48]line > о реализуемом товаре [07:22:48]line ОКРУГЛЕНИЕ: -0.51 [07:22:48]line ИТОГО: 1000.00 [07:22:48]line Внесено: 1000.00 [07:22:48]line СДАЧА: 0.00 [07:22:48]line НСП 1% : 8.85 [07:22:48]line НДС 12% : 106.25 [07:22:48]line Наличными: 1000.00 [07:22:48]line Безнал.: 0.00 [07:22:48]line Место: АЗС № 137 "Партнер Нефть" [07:22:48]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [07:22:48]line СНО: Общий режим [07:22:48]line Чек 39 22.09.2024 07:22 [07:22:48]line Смена: 70 ФФД: 1.0 [07:22:48]line ЗНМ: 0300000041 [07:22:48]line РНМ: 0000000000190446 [07:22:48]line Версия ККМ: v1.0 [07:22:48]line ФМ: 0000000002094258 [07:22:48]line ФД: 7641 [07:22:48]line ФПД: 215554121597859 [07:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T072246&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7641&fm=215554121597859&tin=02508201610067®Number=0000000000190446&sum=100000 [07:22:48]written 0, free lines is 4095 [07:22:48]Write to MH i2c: 01 00 00 3C 01 3D [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 07 00 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 F0 0C 40 [07:22:48]RasterBufferAndPrint [07:22:48]line [07:22:48]line [07:22:48]line [07:22:48]line [07:22:48]line [07:22:48]written 0, free lines is 3348 [07:22:48]MH_Cut [07:22:48]Write to MH i2c: D1 01 00 43 01 01 16 [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: D1 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: D1 01 00 [07:22:48]MH_I2C_Read... [07:22:48]Read from MH i2c: D1 01 00 43 01 00 15 [07:22:48]Write to MH i2c: 01 00 00 44 01 45 [07:22:48]Write i2c OK [07:22:48]MH_I2C_Read... [07:22:49]*** Cut start [07:22:49]*** Purtial cut [07:22:49]*** Stage 1: CUTSNS_PIN = 1 [07:22:49]Read from MH i2c: 01 [07:22:49]MH_I2C_Read... [07:22:49]*** Stop cut motor [07:22:49]*** Cut end [07:22:49]Read from MH i2c: 01 07 00 [07:22:49]MH_I2C_Read... [07:22:49]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [07:22:49]process_action close_receipt done [07:22:49]requested_data is exist [07:22:49]produce_requested_data [07:22:49]requested_item fm.sn is exist - process it [07:22:49]wFMCommunicate request_size=4 [07:22:49]MH_SAM_APDU [07:22:49]CAPDU: 80 11 00 00 [07:22:49]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [07:22:49]Write i2c OK [07:22:49]MH_I2C_Read... [07:22:49]Read from MH i2c: E2 [07:22:49]MH_I2C_Read... [07:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:49]Read from MH i2c: E2 17 00 [07:22:49]MH_I2C_Read... [07:22:49]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 11 [07:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:22:49]wFMCommunicate OK [07:22:49]requested_item fd.num is exist - process it [07:22:49]SAM_PROTO_GetFieldsCounters [07:22:49]wFMCommunicate request_size=4 [07:22:49]MH_SAM_APDU [07:22:49]CAPDU: 80 13 00 00 [07:22:49]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [07:22:49]Write i2c OK [07:22:49]MH_I2C_Read... [07:22:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:49]Read from MH i2c: E2 [07:22:49]MH_I2C_Read... [07:22:49]Read from MH i2c: E2 62 00 [07:22:49]MH_I2C_Read... [07:22:49]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D9 1D 00 00 0E 04 04 00 46 00 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 92 [07:22:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 D9 1D 00 00 0E 04 04 00 46 00 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 [07:22:50]wFMCommunicate OK [07:22:50]SAM_PROTO_GetFieldsCounters done [07:22:50]requested_item shift.num is exist - process it [07:22:50]requested_item shift.opened is exist - process it [07:22:50]req_shift_opened [07:22:50]FM_GetShiftState [07:22:50]SAM_PROTO_GetShiftState [07:22:50]wFMCommunicate request_size=4 [07:22:50]MH_SAM_APDU [07:22:50]CAPDU: 80 13 01 00 [07:22:50]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [07:22:50]Write i2c OK [07:22:50]MH_I2C_Read... [07:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:50]Read from MH i2c: E2 [07:22:50]MH_I2C_Read... [07:22:50]Read from MH i2c: E2 0E 00 [07:22:50]MH_I2C_Read... [07:22:50]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 88 [07:22:50]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:22:50]wFMCommunicate OK [07:22:50]SAM_PROTO_GetShiftState done [07:22:50]FM_GetShiftState done [07:22:50]req_shift_opened done [07:22:50]requested_item shift.open_date is exist - process it [07:22:50]req_shift_open_date [07:22:50]req_shift_open_date done [07:22:50]produce_requested_data done [07:22:50]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7641,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [07:22:50]process_action_free close_receipt [07:22:50]json_value_free [07:22:50]json_value_free done [07:22:50]process_json_proto returns [07:22:50]Send response to host [07:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7641,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [07:22:50]free response buf [07:22:50]execute_script done [07:22:50]execute_script returns [07:22:50]free content buf [07:22:50]Sock 6.Close socket [07:22:50]Sock 6.Thread stoped [07:22:51]ConnectInit Can't take IP for lk.salyk.kg [07:22:51]CommunicateWithHost connect error [07:22:51]CommunicateWithHost err = -1 [07:22:51]OFD Sender: Server communicate error [07:22:51]OFD Sender: Processing packet 7640 [packets to send 52, broken 50] [07:22:51]ProducePacketName [07:22:51]name=ofd_packets/00007640 [07:22:51]OFD Sender: To server: pG, [07:22:51]CommunicateWithHost lk.salyk.kg:30040 [07:22:51]ConnectInit lk.salyk.kg [07:22:56]ConnectInit Can't take IP for lk.salyk.kg [07:22:56]CommunicateWithHost connect error [07:22:56]CommunicateWithHost err = -1 [07:22:56]OFD Sender: Server communicate error [07:23:01]OFD Sender: Processing packet 7640 [packets to send 52, broken 50] [07:23:01]ProducePacketName [07:23:01]name=ofd_packets/00007640 [07:23:01]OFD Sender: To server: pG, [07:23:01]CommunicateWithHost lk.salyk.kg:30040 [07:23:01]ConnectInit lk.salyk.kg [07:23:06]ConnectInit Can't take IP for lk.salyk.kg [07:23:06]CommunicateWithHost connect error [07:23:06]CommunicateWithHost err = -1 [07:23:06]OFD Sender: Server communicate error [07:23:11]OFD Sender: Processing packet 7640 [packets to send 52, broken 50] [07:23:11]ProducePacketName [07:23:11]name=ofd_packets/00007640 [07:23:11]OFD Sender: To server: pG, [07:23:11]CommunicateWithHost lk.salyk.kg:30040 [07:23:11]ConnectInit lk.salyk.kg [07:23:15]Connected sock=8 [07:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E7 3A 07 01 BD 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 91 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D8 1D 00 00 35 04 06 00 44 87 32 ED 2A E2 27 96 57 1E 2D B1 AD 9C [07:23:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F3 84 47 00 EA CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D8 1D 00 00 F4 03 04 00 A1 70 EF 66 B6 04 01 00 00 0F 73 6F FD 5A 76 28 F3 [07:23:16]CommunicateWithHost err = 0 [07:23:16]CheckOFDResponse [07:23:16]1017 (14) - 77093643461234 [07:23:16]1041 (16) - 0000000002094258 [07:23:16]1040 (4) - 7640 [07:23:16]1012 (4) - 22.09.2024 01:19 [07:23:16]1206 (1) - 0 [07:23:16]OFD Sender: Remove packet 7640 [07:23:16]ProducePacketName [07:23:16]name=ofd_packets/00007640 [07:23:16]NVStorageDeleteData [07:23:16]OFD Sender: Processing packet 7641 [packets to send 51, broken 50] [07:23:16]ProducePacketName [07:23:16]name=ofd_packets/00007641 [07:23:16]OFD Sender: To server: pG, [07:23:16]CommunicateWithHost lk.salyk.kg:30040 [07:23:16]ConnectInit lk.salyk.kg [07:23:17]recv_with_timeout no data received [07:23:18]Connected sock=8 [07:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 04 24 08 01 D8 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 C5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D9 1D 00 00 35 04 06 00 C4 0B 9A D9 03 A3 AB A1 B2 9D 01 8A 51 08 [07:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 40 0E 47 00 EA 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 D9 1D 00 00 F4 03 04 00 A4 70 EF 66 B6 04 01 00 00 9C 2B 06 57 87 BE 67 E7 [07:23:18]CommunicateWithHost err = 0 [07:23:18]CheckOFDResponse [07:23:18]1017 (14) - 77093643461234 [07:23:18]1041 (16) - 0000000002094258 [07:23:18]1040 (4) - 7641 [07:23:18]1012 (4) - 22.09.2024 01:19 [07:23:18]1206 (1) - 0 [07:23:18]OFD Sender: Remove packet 7641 [07:23:18]ProducePacketName [07:23:18]name=ofd_packets/00007641 [07:23:18]NVStorageDeleteData [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:42]recv_with_timeout no data received [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:00]recv_with_timeout no data received [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]recv_with_timeout no data received [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:00]recv_with_timeout no data received [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:16]recv_with_timeout no data received [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:12]recv_with_timeout no data received [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:53]accept exits with 10 [07:33:53]New connection [07:33:53]New thread 3067428196 created [07:33:53]Thread 3067284836 joined [07:33:53]Waiting for new connection... [07:33:53] Sock 10.Parse request [07:33:53]Sock 10.Check first char [07:33:53]Sock 10.First char is OK [07:33:53]request: POST /json_proto HTTP/1.0 [07:33:53]Method: POST [07:33:53]URL: /json_proto [07:33:53]Method is POST - this is cgi request [07:33:53]url: /json_proto [07:33:53]query_string will be loaded in cgi processing [07:33:53]execute_cgi json_proto POST (null) [07:33:53]execute_cgi path=json_proto method=POST [07:33:53]POST find Content-Length [07:33:53]Host: 172.17.47.195:8080 [07:33:53]Content-Length: 687 [07:33:53]Content-Type: application/json [07:33:53] [07:33:53]POST finish read [07:33:53]Found Content-Length = 687 [07:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:53]execute_script... [07:33: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)871580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:53]POST & json_proto [07:33:53]process_json_proto [07:33:53]json parsed OK: [07:33:53]protocol is kg_v1.0 [07:33:53]action value=close_receipt [07:33:53]process_action close_receipt [07:33:53]cmd_close_receipt [07:33:53]MH_GetDate [07:33:53]Write to MH i2c: F0 00 00 48 01 38 [07:33:53]Write i2c OK [07:33:53]MH_I2C_Read... [07:33:53]Read from MH i2c: F0 [07:33:53]MH_I2C_Read... [07:33:53]Read from MH i2c: F0 09 00 [07:33:53]MH_I2C_Read... [07:33:53]Read from MH i2c: F0 09 00 48 01 00 61 C8 EF 66 96 2E 95 66 7E [07:33:53]GetLastDocTimeStamp 1726989766 [07:33:53]current date 1726990433 [07:33:53]FM_GetShiftState [07:33:53]SAM_PROTO_GetShiftState [07:33:53]wFMCommunicate request_size=4 [07:33:53]MH_SAM_APDU [07:33:53]CAPDU: 80 13 01 00 [07:33:53]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [07:33:53]Write i2c OK [07:33:53]MH_I2C_Read... [07:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:53]Read from MH i2c: E2 [07:33:53]MH_I2C_Read... [07:33:53]Read from MH i2c: E2 0E 00 [07:33:53]MH_I2C_Read... [07:33:53]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8A [07:33:53]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:33:53]wFMCommunicate OK [07:33:53]SAM_PROTO_GetShiftState done [07:33:53]FM_GetShiftState done [07:33:53]opened in 1726964224 [07:33:53]opened+sec_in_day 1727050624 [07:33:53]quantity*price = 100050 [07:33:53]sum+1 = 100052 [07:33:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 40 22.09.2024 07:33 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7642 ФПД: 61814955766816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T073353&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7642&fm=61814955766816&tin=02508201610067®Number=0000000000190446&sum=100000 [07:33:54]StoreToDocumentArchive [07:33:54]shift 70 fd 7642 [07:33:54]save to /storage/0070/doc_00007642 [07:33:54]save last doc name /storage/0070/doc_00007642 to /storage/kkm_last_doc_name [07:33:54]save OK [07:33:54]Clear old archive folders... [07:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:33:54]tlvbuf is 0136E730 [07:33:54]SAM_PROTO_ClearQueue [07:33:54]wFMCommunicate request_size=4 [07:33:54]MH_SAM_APDU [07:33:54]CAPDU: 80 09 00 00 [07:33:54]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 03 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [07:33:54]RAPDU: 90 00 [07:33:54]wFMCommunicate OK [07:33:54]SAM_PROTO_ClearQueue done [07:33:54]KKMCreateOFDPacket [07:33:54]OFDProtocolAddRootSTLVToBuf [07:33:54]FM_MakeSignedData [07:33:54]FM_MakeSignedData [07:33:54]SAM_PROTO_SignData [07:33:54]wFMCommunicate request_size=4 [07:33:54]MH_SAM_APDU [07:33:54]CAPDU: 80 0D 01 02 [07:33:54]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 03 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [07:33:54]RAPDU: 90 00 [07:33:54]wFMCommunicate OK [07:33:54]wFMCommunicate request_size=255 [07:33:54]MH_SAM_APDU [07:33:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 61 C8 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DA 1D 00 00 35 04 06 00 [07:33:54]Write to MH i2c: E2 02 01 58 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 61 C8 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DA 1D 00 00 35 04 06 00 00 00 1D [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 03 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [07:33:54]RAPDU: 90 00 [07:33:54]wFMCommunicate OK [07:33:54]wFMCommunicate request_size=11 [07:33:54]MH_SAM_APDU [07:33:54]CAPDU: 80 0D 02 02 06 38 38 6A 7A F4 20 [07:33:54]Write to MH i2c: E2 0E 00 59 01 80 0D 02 02 06 00 38 38 6A 7A F4 20 00 00 48 [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 03 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [07:33:54]RAPDU: 90 00 [07:33:54]wFMCommunicate OK [07:33:54]wFMCommunicate request_size=4 [07:33:54]MH_SAM_APDU [07:33:54]CAPDU: 80 0D 03 02 [07:33:54]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 0B 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 0B 00 5A 01 00 33 B3 A3 52 A6 E1 65 7A 90 00 18 [07:33:54]RAPDU: 33 B3 A3 52 A6 E1 65 7A 90 00 [07:33:54]wFMCommunicate OK [07:33:54]SAM_PROTO_SignData done [07:33:54]FM_MakeSignedData done [07:33:54]CreateOFDProtocolMessage [07:33:54]wFMCommunicate request_size=4 [07:33:54]MH_SAM_APDU [07:33:54]CAPDU: 80 11 00 00 [07:33:54]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 17 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 27 [07:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:33:54]wFMCommunicate OK [07:33:54]CreateOFDProtocolMessage done [07:33:54]OFDSenderStorePacket 7642 [07:33:54]StoreOFDPacket docnum=7642 [07:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 69 34 08 01 AB 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 61 C8 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DA 1D 00 00 35 04 06 00 38 38 6A 7A F4 20 33 B3 A3 52 A6 E1 65 7A [07:33:54]CheckFolder [07:33:54]dirname=/storage/ofd_packets [07:33:54]CheckFolder done [07:33:54]ProducePacketName [07:33:54]name=ofd_packets/00007642 [07:33:54]NVStorageSaveData ofd_packets/00007642 [07:33:54]File name is /storage/ofd_packets/00007642 [07:33:54]Write 302 bytes [07:33:54]NVStorageSaveData done [07:33:54]OFDSenderStorePacket done [07:33:54]KKMCreateOFDPacket done [07:33:54]NVStorageSaveData kkm_last_timestamp [07:33:54]File name is /storage/kkm_last_timestamp [07:33:54]Write 4 bytes [07:33:54]NVStorageSaveData done [07:33:54]ExternCall_PrintAddStr [07:33:54]wPrintStart [07:33:54]Write to MH i2c: 01 00 00 5C 01 5D [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: 01 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: 01 07 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [07:33:54]RasterBufferAndPrint [07:33:54]line Счет N : (1)871580 [07:33:54]line ИНН: 02508201610067 [07:33:54]line Контрольно-Кассовый Чек [07:33:54]line ПРОДАЖА [07:33:54]line ТРК (МРК, ГНК) : 44 [07:33:54]line Товар: 2710194210 [07:33:54]line ДТ(л)-К-4 [07:33:54]line 13.130 * 76.20 [07:33:54]line = 1000.51 [07:33:54]line НДС 12% НСП 1% [07:33:54]line > о реализуемом товаре [07:33:54]line ОКРУГЛЕНИЕ: -0.51 [07:33:54]line ИТОГО: 1000.00 [07:33:54]line Внесено: 1000.00 [07:33:54]line СДАЧА: 0.00 [07:33:54]line НСП 1% : 8.85 [07:33:54]line НДС 12% : 106.25 [07:33:54]line Наличными: 1000.00 [07:33:54]line Безнал.: 0.00 [07:33:54]line Место: АЗС № 137 "Партнер Нефть" [07:33:54]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [07:33:54]line СНО: Общий режим [07:33:54]line Чек 40 22.09.2024 07:33 [07:33:54]line Смена: 70 ФФД: 1.0 [07:33:54]line ЗНМ: 0300000041 [07:33:54]line РНМ: 0000000000190446 [07:33:54]line Версия ККМ: v1.0 [07:33:54]line ФМ: 0000000002094258 [07:33:54]line ФД: 7642 [07:33:54]line ФПД: 61814955766816 [07:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T073353&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7642&fm=61814955766816&tin=02508201610067®Number=0000000000190446&sum=100000 [07:33:55]OFD Sender: Processing packet 7642 [packets to send 51, broken 50] [07:33:55]ProducePacketName [07:33:55]name=ofd_packets/00007642 [07:33:55]OFD Sender: To server: pG, [07:33:55]CommunicateWithHost lk.salyk.kg:30040 [07:33:55]ConnectInit lk.salyk.kg [07:33:55]written 0, free lines is 4095 [07:33:55]Write to MH i2c: 01 00 00 87 01 88 [07:33:55]Write i2c OK [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: 01 [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: 01 07 00 [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 E9 0C 84 [07:33:55]RasterBufferAndPrint [07:33:55]line [07:33:55]line [07:33:55]line [07:33:55]line [07:33:55]line [07:33:55]written 0, free lines is 3311 [07:33:55]MH_Cut [07:33:55]Write to MH i2c: D1 01 00 8E 01 01 61 [07:33:55]Write i2c OK [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: D1 [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: D1 01 00 [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: D1 01 00 8E 01 00 60 [07:33:55]Write to MH i2c: 01 00 00 8F 01 90 [07:33:55]Write i2c OK [07:33:55]MH_I2C_Read... [07:33:56]*** Cut start [07:33:56]*** Purtial cut [07:33:56]*** Stage 1: CUTSNS_PIN = 1 [07:33:56]Read from MH i2c: 01 [07:33:56]MH_I2C_Read... [07:33:56]*** Stop cut motor [07:33:56]*** Cut end [07:33:56]Read from MH i2c: 01 07 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [07:33:56]process_action close_receipt done [07:33:56]requested_data is exist [07:33:56]produce_requested_data [07:33:56]requested_item fm.sn is exist - process it [07:33:56]wFMCommunicate request_size=4 [07:33:56]MH_SAM_APDU [07:33:56]CAPDU: 80 11 00 00 [07:33:56]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [07:33:56]Write i2c OK [07:33:56]MH_I2C_Read... [07:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:56]Read from MH i2c: E2 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 17 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5C [07:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:33:56]wFMCommunicate OK [07:33:56]requested_item fd.num is exist - process it [07:33:56]SAM_PROTO_GetFieldsCounters [07:33:56]wFMCommunicate request_size=4 [07:33:56]MH_SAM_APDU [07:33:56]CAPDU: 80 13 00 00 [07:33:56]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [07:33:56]Write i2c OK [07:33:56]MH_I2C_Read... [07:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:56]Read from MH i2c: E2 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 62 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DA 1D 00 00 0E 04 04 00 46 00 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 E1 [07:33:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DA 1D 00 00 0E 04 04 00 46 00 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 [07:33:56]wFMCommunicate OK [07:33:56]SAM_PROTO_GetFieldsCounters done [07:33:56]requested_item shift.num is exist - process it [07:33:56]requested_item shift.opened is exist - process it [07:33:56]req_shift_opened [07:33:56]FM_GetShiftState [07:33:56]SAM_PROTO_GetShiftState [07:33:56]wFMCommunicate request_size=4 [07:33:56]MH_SAM_APDU [07:33:56]CAPDU: 80 13 01 00 [07:33:56]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [07:33:56]Write i2c OK [07:33:56]MH_I2C_Read... [07:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:56]Read from MH i2c: E2 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 0E 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D3 [07:33:56]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:33:56]wFMCommunicate OK [07:33:56]SAM_PROTO_GetShiftState done [07:33:56]FM_GetShiftState done [07:33:56]req_shift_opened done [07:33:56]requested_item shift.open_date is exist - process it [07:33:56]req_shift_open_date [07:33:56]req_shift_open_date done [07:33:56]produce_requested_data done [07:33:56]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7642,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [07:33:56]process_action_free close_receipt [07:33:56]json_value_free [07:33:56]json_value_free done [07:33:56]process_json_proto returns [07:33:56]Send response to host [07:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7642,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [07:33:56]free response buf [07:33:56]execute_script done [07:33:56]execute_script returns [07:33:56]free content buf [07:33:56]Sock 10.Close socket [07:33:56]Sock 10.Thread stoped [07:33:58]Connected sock=11 [07:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 69 34 08 01 AB 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 61 C8 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DA 1D 00 00 35 04 06 00 38 38 6A 7A F4 20 33 B3 A3 52 A6 E1 65 7A [07:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 EF 62 47 00 F9 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DA 1D 00 00 F4 03 04 00 24 73 EF 66 B6 04 01 00 00 BA 4A 66 51 D0 CF AC 42 [07:33:58]CommunicateWithHost err = 0 [07:33:58]CheckOFDResponse [07:33:58]1017 (14) - 77093643461234 [07:33:58]1041 (16) - 0000000002094258 [07:33:58]1040 (4) - 7642 [07:33:58]1012 (4) - 22.09.2024 01:30 [07:33:58]1206 (1) - 0 [07:33:58]OFD Sender: Remove packet 7642 [07:33:58]ProducePacketName [07:33:58]name=ofd_packets/00007642 [07:33:58]NVStorageDeleteData [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:08]recv_with_timeout no data received [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:28]recv_with_timeout no data received [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]recv_with_timeout no data received [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35: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:27]recv_with_timeout no data received [07:35:29]OFD Sender: No OFD packet to send [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: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: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]recv_with_timeout no data received [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:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:27]recv_with_timeout no data received [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:43]recv_with_timeout no data received [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43: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:22]recv_with_timeout no data received [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:08]recv_with_timeout no data received [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]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: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:47:57]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:26]accept exits with 8 [07:48:26]New connection [07:48:26]New thread 3067284836 created [07:48:26]Thread 3067428196 joined [07:48:26]Waiting for new connection... [07:48:26] Sock 8.Parse request [07:48:26]Sock 8.Check first char [07:48:26]Sock 8.First char is OK [07:48:26]request: POST /json_proto HTTP/1.0 [07:48:26]Method: POST [07:48:26]URL: /json_proto [07:48:26]Method is POST - this is cgi request [07:48:26]url: /json_proto [07:48:26]query_string will be loaded in cgi processing [07:48:26]execute_cgi json_proto POST (null) [07:48:26]execute_cgi path=json_proto method=POST [07:48:26]POST find Content-Length [07:48:26]Host: 172.17.47.195:8080 [07:48:26]Content-Length: 682 [07:48:26]Content-Type: application/json [07:48:26] [07:48:26]POST finish read [07:48:26]Found Content-Length = 682 [07:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:26]execute_script... [07:48:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:26]POST & json_proto [07:48:26]process_json_proto [07:48:26]json parsed OK: [07:48:26]protocol is kg_v1.0 [07:48:26]action value=close_receipt [07:48:26]process_action close_receipt [07:48:26]cmd_close_receipt [07:48:26]MH_GetDate [07:48:26]Write to MH i2c: F0 00 00 93 01 83 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: F0 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: F0 09 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: F0 09 00 93 01 00 CB CB EF 66 96 2E 95 66 36 [07:48:26]GetLastDocTimeStamp 1726990433 [07:48:26]current date 1726991307 [07:48:26]FM_GetShiftState [07:48:26]SAM_PROTO_GetShiftState [07:48:26]wFMCommunicate request_size=4 [07:48:26]MH_SAM_APDU [07:48:26]CAPDU: 80 13 01 00 [07:48:26]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:26]Read from MH i2c: E2 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 0E 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D5 [07:48:26]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:48:26]wFMCommunicate OK [07:48:26]SAM_PROTO_GetShiftState done [07:48:26]FM_GetShiftState done [07:48:26]opened in 1726964224 [07:48:26]opened+sec_in_day 1727050624 [07:48:26]quantity*price = 70027 [07:48:26]sum+1 = 70029 [07:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 41 22.09.2024 07:48 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7643 ФПД: 245748364161406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074827&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7643&fm=245748364161406&tin=02508201610067®Number=0000000000190446&sum=70000 [07:48:27]StoreToDocumentArchive [07:48:27]shift 70 fd 7643 [07:48:27]save to /storage/0070/doc_00007643 [07:48:27]save last doc name /storage/0070/doc_00007643 to /storage/kkm_last_doc_name [07:48:27]save OK [07:48:27]Clear old archive folders... [07:48:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:48:27]tlvbuf is 01340330 [07:48:27]SAM_PROTO_ClearQueue [07:48:27]wFMCommunicate request_size=4 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 09 00 00 [07:48:27]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:27]Read from MH i2c: E2 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 03 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [07:48:27]RAPDU: 90 00 [07:48:27]wFMCommunicate OK [07:48:27]SAM_PROTO_ClearQueue done [07:48:27]KKMCreateOFDPacket [07:48:27]OFDProtocolAddRootSTLVToBuf [07:48:27]FM_MakeSignedData [07:48:27]FM_MakeSignedData [07:48:27]SAM_PROTO_SignData [07:48:27]wFMCommunicate request_size=4 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 0D 01 02 [07:48:27]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:27]Read from MH i2c: E2 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 03 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [07:48:27]RAPDU: 90 00 [07:48:27]wFMCommunicate OK [07:48:27]wFMCommunicate request_size=255 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CB CB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DB 1D 00 00 35 04 06 00 [07:48:27]Write to MH i2c: E2 02 01 A3 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 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CB CB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DB 1D 00 00 35 04 06 00 00 00 D3 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:28]Read from MH i2c: E2 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 03 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [07:48:28]RAPDU: 90 00 [07:48:28]wFMCommunicate OK [07:48:28]wFMCommunicate request_size=11 [07:48:28]MH_SAM_APDU [07:48:28]CAPDU: 80 0D 02 02 06 DF 81 BF F3 31 7E [07:48:28]Write to MH i2c: E2 0E 00 A4 01 80 0D 02 02 06 00 DF 81 BF F3 31 7E 00 00 EC [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:28]Read from MH i2c: E2 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 03 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [07:48:28]RAPDU: 90 00 [07:48:28]wFMCommunicate OK [07:48:28]wFMCommunicate request_size=4 [07:48:28]MH_SAM_APDU [07:48:28]CAPDU: 80 0D 03 02 [07:48:28]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:28]Read from MH i2c: E2 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 0B 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 0B 00 A5 01 00 BA 26 93 8D DA 3E 9A 32 90 00 06 [07:48:28]RAPDU: BA 26 93 8D DA 3E 9A 32 90 00 [07:48:28]wFMCommunicate OK [07:48:28]SAM_PROTO_SignData done [07:48:28]FM_MakeSignedData done [07:48:28]CreateOFDProtocolMessage [07:48:28]wFMCommunicate request_size=4 [07:48:28]MH_SAM_APDU [07:48:28]CAPDU: 80 11 00 00 [07:48:28]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:28]Read from MH i2c: E2 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 17 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 72 [07:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:48:28]wFMCommunicate OK [07:48:28]CreateOFDProtocolMessage done [07:48:28]OFDSenderStorePacket 7643 [07:48:28]StoreOFDPacket docnum=7643 [07:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 DC 48 08 01 55 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CB CB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DB 1D 00 00 35 04 06 00 DF 81 BF F3 31 7E BA 26 93 8D DA 3E 9A 32 [07:48:28]CheckFolder [07:48:28]dirname=/storage/ofd_packets [07:48:28]CheckFolder done [07:48:28]ProducePacketName [07:48:28]name=ofd_packets/00007643 [07:48:28]NVStorageSaveData ofd_packets/00007643 [07:48:28]File name is /storage/ofd_packets/00007643 [07:48:28]Write 302 bytes [07:48:28]NVStorageSaveData done [07:48:28]OFDSenderStorePacket done [07:48:28]KKMCreateOFDPacket done [07:48:28]NVStorageSaveData kkm_last_timestamp [07:48:28]File name is /storage/kkm_last_timestamp [07:48:28]Write 4 bytes [07:48:28]NVStorageSaveData done [07:48:28]ExternCall_PrintAddStr [07:48:28]wPrintStart [07:48:28]Write to MH i2c: 01 00 00 A7 01 A8 [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: 01 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: 01 07 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [07:48:28]RasterBufferAndPrint [07:48:28]line Счет N : (1)871584 [07:48:28]line ИНН: 02508201610067 [07:48:28]line Контрольно-Кассовый Чек [07:48:28]line ПРОДАЖА [07:48:28]line ТРК (МРК, ГНК) : 21 [07:48:28]line Товар: 2710194210 [07:48:28]line ДТ(л)-К-4 [07:48:28]line 9.190 * 76.20 [07:48:28]line = 700.28 [07:48:28]line НДС 12% НСП 1% [07:48:28]line > о реализуемом товаре [07:48:28]line ОКРУГЛЕНИЕ: -0.28 [07:48:28]line ИТОГО: 700.00 [07:48:28]line Внесено: 700.00 [07:48:28]line СДАЧА: 0.00 [07:48:28]line НСП 1% : 6.20 [07:48:28]line НДС 12% : 74.37 [07:48:28]line Наличными: 700.00 [07:48:28]line Безнал.: 0.00 [07:48:28]line Место: АЗС № 137 "Партнер Нефть" [07:48:28]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [07:48:28]line СНО: Общий режим [07:48:28]line Чек 41 22.09.2024 07:48 [07:48:28]line Смена: 70 ФФД: 1.0 [07:48:28]line ЗНМ: 0300000041 [07:48:28]line РНМ: 0000000000190446 [07:48:28]line Версия ККМ: v1.0 [07:48:28]line ФМ: 0000000002094258 [07:48:28]line ФД: 7643 [07:48:28]line ФПД: 245748364161406 [07:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074827&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7643&fm=245748364161406&tin=02508201610067®Number=0000000000190446&sum=70000 [07:48:28]OFD Sender: Processing packet 7643 [packets to send 51, broken 50] [07:48:28]ProducePacketName [07:48:28]name=ofd_packets/00007643 [07:48:28]OFD Sender: To server: pG, [07:48:28]CommunicateWithHost lk.salyk.kg:30040 [07:48:28]ConnectInit lk.salyk.kg [07:48:28]written 0, free lines is 4095 [07:48:28]Write to MH i2c: 01 00 00 D2 01 D3 [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: 01 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: 01 07 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 E6 0C CC [07:48:28]RasterBufferAndPrint [07:48:28]line [07:48:28]line [07:48:28]line [07:48:28]line [07:48:28]line [07:48:28]written 0, free lines is 3308 [07:48:28]MH_Cut [07:48:28]Write to MH i2c: D1 01 00 D9 01 01 AC [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: D1 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: D1 01 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: D1 01 00 D9 01 00 AB [07:48:28]Write to MH i2c: 01 00 00 DA 01 DB [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:29]*** Cut start [07:48:29]*** Purtial cut [07:48:29]*** Stage 1: CUTSNS_PIN = 1 [07:48:29]Read from MH i2c: 01 [07:48:29]MH_I2C_Read... [07:48:29]*** Stop cut motor [07:48:29]*** Cut end [07:48:29]Read from MH i2c: 01 07 00 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [07:48:29]process_action close_receipt done [07:48:29]requested_data is exist [07:48:29]produce_requested_data [07:48:29]requested_item fm.sn is exist - process it [07:48:29]wFMCommunicate request_size=4 [07:48:29]MH_SAM_APDU [07:48:29]CAPDU: 80 11 00 00 [07:48:29]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [07:48:29]Write i2c OK [07:48:29]MH_I2C_Read... [07:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:29]Read from MH i2c: E2 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 17 00 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A7 [07:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:48:29]wFMCommunicate OK [07:48:29]requested_item fd.num is exist - process it [07:48:29]SAM_PROTO_GetFieldsCounters [07:48:29]wFMCommunicate request_size=4 [07:48:29]MH_SAM_APDU [07:48:29]CAPDU: 80 13 00 00 [07:48:29]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [07:48:29]Write i2c OK [07:48:29]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 62 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DB 1D 00 00 0E 04 04 00 46 00 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 30 [07:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DB 1D 00 00 0E 04 04 00 46 00 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 [07:48:30]wFMCommunicate OK [07:48:30]SAM_PROTO_GetFieldsCounters done [07:48:30]requested_item shift.num is exist - process it [07:48:30]requested_item shift.opened is exist - process it [07:48:30]req_shift_opened [07:48:30]FM_GetShiftState [07:48:30]SAM_PROTO_GetShiftState [07:48:30]wFMCommunicate request_size=4 [07:48:30]MH_SAM_APDU [07:48:30]CAPDU: 80 13 01 00 [07:48:30]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 0E 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 1E [07:48:30]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:48:30]wFMCommunicate OK [07:48:30]SAM_PROTO_GetShiftState done [07:48:30]FM_GetShiftState done [07:48:30]req_shift_opened done [07:48:30]requested_item shift.open_date is exist - process it [07:48:30]req_shift_open_date [07:48:30]req_shift_open_date done [07:48:30]produce_requested_data done [07:48:30]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7643,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [07:48:30]process_action_free close_receipt [07:48:30]json_value_free [07:48:30]json_value_free done [07:48:30]process_json_proto returns [07:48:30]Send response to host [07:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7643,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [07:48:30]free response buf [07:48:30]execute_script done [07:48:30]execute_script returns [07:48:30]free content buf [07:48:30]Sock 8.Close socket [07:48:30]Sock 8.Thread stoped [07:48:30]accept exits with 10 [07:48:30]New connection [07:48:30]New thread 3067428196 created [07:48:30]Thread 3067284836 joined [07:48:30]Waiting for new connection... [07:48:30] Sock 10.Parse request [07:48:30]Sock 10.Check first char [07:48:30]Sock 10.First char is OK [07:48:30]request: POST /json_proto HTTP/1.0 [07:48:30]Method: POST [07:48:30]URL: /json_proto [07:48:30]Method is POST - this is cgi request [07:48:30]url: /json_proto [07:48:30]query_string will be loaded in cgi processing [07:48:30]execute_cgi json_proto POST (null) [07:48:30]execute_cgi path=json_proto method=POST [07:48:30]POST find Content-Length [07:48:30]Host: 172.17.47.195:8080 [07:48:30]Content-Length: 687 [07:48:30]Content-Type: application/json [07:48:30] [07:48:30]POST finish read [07:48:30]Found Content-Length = 687 [07:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:30]execute_script... [07:48: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)871583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:30]POST & json_proto [07:48:30]process_json_proto [07:48:30]json parsed OK: [07:48:30]protocol is kg_v1.0 [07:48:30]action value=close_receipt [07:48:30]process_action close_receipt [07:48:30]cmd_close_receipt [07:48:30]MH_GetDate [07:48:30]Write to MH i2c: F0 00 00 DE 01 CE [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: F0 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: F0 09 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: F0 09 00 DE 01 00 CF CB EF 66 96 2E 95 66 85 [07:48:30]GetLastDocTimeStamp 1726991307 [07:48:30]current date 1726991311 [07:48:30]FM_GetShiftState [07:48:30]SAM_PROTO_GetShiftState [07:48:30]wFMCommunicate request_size=4 [07:48:30]MH_SAM_APDU [07:48:30]CAPDU: 80 13 01 00 [07:48:30]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [07:48:30]Write i2c OK [07:48:30]MH_I2C_Read... [07:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:30]Read from MH i2c: E2 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 0E 00 [07:48:30]MH_I2C_Read... [07:48:30]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 20 [07:48:30]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:48:30]wFMCommunicate OK [07:48:30]SAM_PROTO_GetShiftState done [07:48:30]FM_GetShiftState done [07:48:30]opened in 1726964224 [07:48:30]opened+sec_in_day 1727050624 [07:48:30]quantity*price = 200025 [07:48:30]sum+1 = 200026 [07:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 42 22.09.2024 07:48 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7644 ФПД: 7384814818021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074831&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7644&fm=7384814818021&tin=02508201610067®Number=0000000000190446&sum=200000 [07:48:32]StoreToDocumentArchive [07:48:32]shift 70 fd 7644 [07:48:32]save to /storage/0070/doc_00007644 [07:48:32]save last doc name /storage/0070/doc_00007644 to /storage/kkm_last_doc_name [07:48:32]save OK [07:48:32]Clear old archive folders... [07:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:48:32]tlvbuf is 0134DFE0 [07:48:32]SAM_PROTO_ClearQueue [07:48:32]wFMCommunicate request_size=4 [07:48:32]MH_SAM_APDU [07:48:32]CAPDU: 80 09 00 00 [07:48:32]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [07:48:32]Write i2c OK [07:48:32]MH_I2C_Read... [07:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:32]Read from MH i2c: E2 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 03 00 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [07:48:32]RAPDU: 90 00 [07:48:32]wFMCommunicate OK [07:48:32]SAM_PROTO_ClearQueue done [07:48:32]KKMCreateOFDPacket [07:48:32]OFDProtocolAddRootSTLVToBuf [07:48:32]FM_MakeSignedData [07:48:32]FM_MakeSignedData [07:48:32]SAM_PROTO_SignData [07:48:32]wFMCommunicate request_size=4 [07:48:32]MH_SAM_APDU [07:48:32]CAPDU: 80 0D 01 02 [07:48:32]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [07:48:32]Write i2c OK [07:48:32]MH_I2C_Read... [07:48:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:32]Read from MH i2c: E2 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 03 00 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [07:48:32]RAPDU: 90 00 [07:48:32]wFMCommunicate OK [07:48:32]wFMCommunicate request_size=255 [07:48:32]MH_SAM_APDU [07:48:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CF CB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DC 1D 00 00 35 04 06 00 [07:48:32]Write to MH i2c: E2 02 01 EE 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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CF CB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DC 1D 00 00 35 04 06 00 00 00 16 [07:48:32]Write i2c OK [07:48:32]MH_I2C_Read... [07:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:32]Read from MH i2c: E2 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 03 00 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [07:48:32]RAPDU: 90 00 [07:48:32]wFMCommunicate OK [07:48:32]wFMCommunicate request_size=11 [07:48:32]MH_SAM_APDU [07:48:32]CAPDU: 80 0D 02 02 06 06 B7 69 43 92 E5 [07:48:32]Write to MH i2c: E2 0E 00 EF 01 80 0D 02 02 06 00 06 B7 69 43 92 E5 00 00 56 [07:48:32]Write i2c OK [07:48:32]MH_I2C_Read... [07:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:32]Read from MH i2c: E2 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 03 00 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [07:48:32]RAPDU: 90 00 [07:48:32]wFMCommunicate OK [07:48:32]wFMCommunicate request_size=4 [07:48:32]MH_SAM_APDU [07:48:32]CAPDU: 80 0D 03 02 [07:48:32]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [07:48:32]Write i2c OK [07:48:32]MH_I2C_Read... [07:48:32]OFD Sender: No OFD packet to send [07:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:32]Read from MH i2c: E2 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 0B 00 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 0B 00 F0 01 00 9E 6B 3A 7B 10 86 70 6B 90 00 9C [07:48:32]RAPDU: 9E 6B 3A 7B 10 86 70 6B 90 00 [07:48:32]wFMCommunicate OK [07:48:32]SAM_PROTO_SignData done [07:48:32]FM_MakeSignedData done [07:48:32]CreateOFDProtocolMessage [07:48:32]wFMCommunicate request_size=4 [07:48:32]MH_SAM_APDU [07:48:32]CAPDU: 80 11 00 00 [07:48:32]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [07:48:32]Write i2c OK [07:48:32]MH_I2C_Read... [07:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:32]Read from MH i2c: E2 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 17 00 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 BD [07:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:48:32]wFMCommunicate OK [07:48:32]CreateOFDProtocolMessage done [07:48:32]OFDSenderStorePacket 7644 [07:48:32]StoreOFDPacket docnum=7644 [07:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 5D 17 08 01 E9 F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CF CB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DC 1D 00 00 35 04 06 00 06 B7 69 43 92 E5 9E 6B 3A 7B 10 86 70 6B [07:48:32]CheckFolder [07:48:32]dirname=/storage/ofd_packets [07:48:32]CheckFolder done [07:48:32]ProducePacketName [07:48:32]name=ofd_packets/00007644 [07:48:32]NVStorageSaveData ofd_packets/00007644 [07:48:32]File name is /storage/ofd_packets/00007644 [07:48:32]Write 302 bytes [07:48:32]NVStorageSaveData done [07:48:32]OFDSenderStorePacket done [07:48:32]KKMCreateOFDPacket done [07:48:32]NVStorageSaveData kkm_last_timestamp [07:48:32]File name is /storage/kkm_last_timestamp [07:48:32]Write 4 bytes [07:48:32]NVStorageSaveData done [07:48:32]ExternCall_PrintAddStr [07:48:32]wPrintStart [07:48:32]Write to MH i2c: 01 00 00 F2 01 F3 [07:48:32]Write i2c OK [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: 01 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: 01 07 00 [07:48:32]MH_I2C_Read... [07:48:32]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [07:48:32]RasterBufferAndPrint [07:48:32]line Счет N : (1)871583 [07:48:32]line ИНН: 02508201610067 [07:48:32]line Контрольно-Кассовый Чек [07:48:32]line ПРОДАЖА [07:48:32]line ТРК (МРК, ГНК) : 34 [07:48:32]line Товар: 2710194210 [07:48:32]line ДТ(л)-К-4 [07:48:32]line 26.250 * 76.20 [07:48:32]line = 2000.25 [07:48:32]line НДС 12% НСП 1% [07:48:32]line > о реализуемом товаре [07:48:32]line ОКРУГЛЕНИЕ: -0.25 [07:48:32]line ИТОГО: 2000.00 [07:48:32]line Внесено: 2000.00 [07:48:32]line СДАЧА: 0.00 [07:48:32]line НСП 1% : 17.70 [07:48:32]line НДС 12% : 212.42 [07:48:32]line Наличными: 2000.00 [07:48:32]line Безнал.: 0.00 [07:48:32]line Место: АЗС № 137 "Партнер Нефть" [07:48:32]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [07:48:32]line СНО: Общий режим [07:48:32]line Чек 42 22.09.2024 07:48 [07:48:32]line Смена: 70 ФФД: 1.0 [07:48:32]line ЗНМ: 0300000041 [07:48:32]line РНМ: 0000000000190446 [07:48:32]line Версия ККМ: v1.0 [07:48:32]line ФМ: 0000000002094258 [07:48:32]line ФД: 7644 [07:48:32]line ФПД: 7384814818021 [07:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074831&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7644&fm=7384814818021&tin=02508201610067®Number=0000000000190446&sum=200000 [07:48:32]OFD Sender: Processing packet 7644 [packets to send 51, broken 50] [07:48:32]ProducePacketName [07:48:32]name=ofd_packets/00007644 [07:48:32]OFD Sender: To server: pG, [07:48:32]CommunicateWithHost lk.salyk.kg:30040 [07:48:32]ConnectInit lk.salyk.kg [07:48:32]written 0, free lines is 4095 [07:48:33]Write to MH i2c: 01 00 00 1D 02 1F [07:48:33]Write i2c OK [07:48:33]MH_I2C_Read... [07:48:33]Read from MH i2c: 01 [07:48:33]MH_I2C_Read... [07:48:33]Read from MH i2c: 01 07 00 [07:48:33]MH_I2C_Read... [07:48:33]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 F6 0C 28 [07:48:33]RasterBufferAndPrint [07:48:33]line [07:48:33]line [07:48:33]line [07:48:33]line [07:48:33]line [07:48:33]written 0, free lines is 3333 [07:48:33]MH_Cut [07:48:33]Write to MH i2c: D1 01 00 24 02 01 F8 [07:48:33]Write i2c OK [07:48:33]MH_I2C_Read... [07:48:33]Read from MH i2c: D1 [07:48:33]MH_I2C_Read... [07:48:33]Read from MH i2c: D1 01 00 [07:48:33]MH_I2C_Read... [07:48:33]Connected sock=9 [07:48:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 5D 17 08 01 E9 F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA Read from MH i2c: 52 D1 00 01 00 00 00 24 00 02 07 00 04 F7 06 [07:48:33]00 Write to MH i2c: 40 01 0D 00 03 00 00 25 00 02 27 00 [07:48:33]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 CF CB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 Write i2c OK [07:48:33]35 MH_I2C_Read... [07:48:33]38 10 04 04 00 DC 1D 00 00 35 04 06 00 06 B7 69 43 92 E5 9E 6B 3A 7B 10 86 70 6B [07:48:34]*** Cut start [07:48:34]*** Purtial cut [07:48:34]*** Stage 1: CUTSNS_PIN = 1 [07:48:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 4F B5 47 00 10 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 32 30 39 34 32 35 38 10 04 04 00 DC 1D 00 00 F4 03 04 00 8F 76 EF 66 B6 04 01 00 00 3F 22 C6 7C C4 22 58 45 [07:48:34]CommunicateWithHost err = 0 [07:48:34]CheckOFDResponse [07:48:34]1017 (14) - 77093643461234 [07:48:34]1041 (16) - 0000000002094258 [07:48:34]1040 (4) - 7644 [07:48:34]1012 (4) - 22.09.2024 01:44 [07:48:34]1206 (1) - 0 [07:48:34]OFD Sender: Remove packet 7644 [07:48:34]ProducePacketName [07:48:34]name=ofd_packets/00007644 [07:48:34]NVStorageDeleteData [07:48:34]Read from MH i2c: 01 [07:48:34]MH_I2C_Read... [07:48:34]*** Stop cut motor [07:48:34]*** Cut end [07:48:34]Read from MH i2c: 01 07 00 [07:48:34]MH_I2C_Read... [07:48:34]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [07:48:34]process_action close_receipt done [07:48:34]requested_data is exist [07:48:34]produce_requested_data [07:48:34]requested_item fm.sn is exist - process it [07:48:34]wFMCommunicate request_size=4 [07:48:34]MH_SAM_APDU [07:48:34]CAPDU: 80 11 00 00 [07:48:34]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [07:48:34]Write i2c OK [07:48:34]MH_I2C_Read... [07:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:34]Read from MH i2c: E2 [07:48:34]MH_I2C_Read... [07:48:34]Read from MH i2c: E2 17 00 [07:48:34]MH_I2C_Read... [07:48:34]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 F3 [07:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [07:48:34]wFMCommunicate OK [07:48:34]requested_item fd.num is exist - process it [07:48:34]SAM_PROTO_GetFieldsCounters [07:48:34]wFMCommunicate request_size=4 [07:48:34]MH_SAM_APDU [07:48:34]CAPDU: 80 13 00 00 [07:48:34]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [07:48:34]Write i2c OK [07:48:34]MH_I2C_Read... [07:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:34]Read from MH i2c: E2 [07:48:34]MH_I2C_Read... [07:48:34]Read from MH i2c: E2 62 00 [07:48:34]MH_I2C_Read... [07:48:34]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DC 1D 00 00 0E 04 04 00 46 00 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 80 [07:48:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DC 1D 00 00 0E 04 04 00 46 00 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 [07:48:34]wFMCommunicate OK [07:48:34]SAM_PROTO_GetFieldsCounters done [07:48:34]requested_item shift.num is exist - process it [07:48:34]requested_item shift.opened is exist - process it [07:48:34]req_shift_opened [07:48:34]FM_GetShiftState [07:48:34]SAM_PROTO_GetShiftState [07:48:34]wFMCommunicate request_size=4 [07:48:34]MH_SAM_APDU [07:48:34]CAPDU: 80 13 01 00 [07:48:34]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [07:48:34]Write i2c OK [07:48:34]MH_I2C_Read... [07:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:34]Read from MH i2c: E2 [07:48:34]MH_I2C_Read... [07:48:34]Read from MH i2c: E2 0E 00 [07:48:34]MH_I2C_Read... [07:48:34]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6A [07:48:34]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [07:48:34]wFMCommunicate OK [07:48:34]SAM_PROTO_GetShiftState done [07:48:34]FM_GetShiftState done [07:48:34]req_shift_opened done [07:48:34]requested_item shift.open_date is exist - process it [07:48:34]req_shift_open_date [07:48:34]req_shift_open_date done [07:48:34]produce_requested_data done [07:48:34]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7644,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [07:48:34]process_action_free close_receipt [07:48:34]json_value_free [07:48:34]json_value_free done [07:48:34]process_json_proto returns [07:48:34]Send response to host [07:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7644,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [07:48:34]free response buf [07:48:34]execute_script done [07:48:34]execute_script returns [07:48:34]free content buf [07:48:34]Sock 10.Close socket [07:48:34]Sock 10.Thread stoped [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:04]recv_with_timeout no data received [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:41]recv_with_timeout no data received [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:43]recv_with_timeout no data received [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:23]recv_with_timeout no data received [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:48]recv_with_timeout no data received [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:06]recv_with_timeout no data received [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:07]recv_with_timeout no data received [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:07]accept exits with 8 [08:01:07]New connection [08:01:07]New thread 3067284836 created [08:01:07]Thread 3067428196 joined [08:01:07]Waiting for new connection... [08:01:07] Sock 8.Parse request [08:01:07]Sock 8.Check first char [08:01:07]Sock 8.First char is OK [08:01:07]request: POST /json_proto HTTP/1.0 [08:01:07]Method: POST [08:01:07]URL: /json_proto [08:01:07]Method is POST - this is cgi request [08:01:07]url: /json_proto [08:01:07]query_string will be loaded in cgi processing [08:01:07]execute_cgi json_proto POST (null) [08:01:07]execute_cgi path=json_proto method=POST [08:01:07]POST find Content-Length [08:01:07]Host: 172.17.47.195:8080 [08:01:07]Content-Length: 687 [08:01:07]Content-Type: application/json [08:01:07] [08:01:07]POST finish read [08:01:07]Found Content-Length = 687 [08:01:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:07]execute_script... [08:01:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:07]POST & json_proto [08:01:07]process_json_proto [08:01:07]json parsed OK: [08:01:07]protocol is kg_v1.0 [08:01:07]action value=close_receipt [08:01:07]process_action close_receipt [08:01:07]cmd_close_receipt [08:01:07]MH_GetDate [08:01:07]Write to MH i2c: F0 00 00 29 02 1A [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: F0 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: F0 09 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: F0 09 00 29 02 00 C4 CE EF 66 96 2E 95 66 C9 [08:01:07]GetLastDocTimeStamp 1726991311 [08:01:07]current date 1726992068 [08:01:07]FM_GetShiftState [08:01:07]SAM_PROTO_GetShiftState [08:01:07]wFMCommunicate request_size=4 [08:01:07]MH_SAM_APDU [08:01:07]CAPDU: 80 13 01 00 [08:01:07]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:07]Read from MH i2c: E2 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 0E 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6C [08:01:07]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [08:01:07]wFMCommunicate OK [08:01:07]SAM_PROTO_GetShiftState done [08:01:07]FM_GetShiftState done [08:01:07]opened in 1726964224 [08:01:07]opened+sec_in_day 1727050624 [08:01:07]quantity*price = 100050 [08:01:07]sum+1 = 100052 [08:01:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 43 22.09.2024 08:01 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7645 ФПД: 271236051837920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T080108&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7645&fm=271236051837920&tin=02508201610067®Number=0000000000190446&sum=100000 [08:01:08]StoreToDocumentArchive [08:01:08]shift 70 fd 7645 [08:01:08]save to /storage/0070/doc_00007645 [08:01:08]save last doc name /storage/0070/doc_00007645 to /storage/kkm_last_doc_name [08:01:08]save OK [08:01:08]Clear old archive folders... [08:01:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:01:08]tlvbuf is 01324B90 [08:01:08]SAM_PROTO_ClearQueue [08:01:08]wFMCommunicate request_size=4 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 09 00 00 [08:01:08]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 03 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [08:01:08]RAPDU: 90 00 [08:01:08]wFMCommunicate OK [08:01:08]SAM_PROTO_ClearQueue done [08:01:08]KKMCreateOFDPacket [08:01:08]OFDProtocolAddRootSTLVToBuf [08:01:08]FM_MakeSignedData [08:01:08]FM_MakeSignedData [08:01:08]SAM_PROTO_SignData [08:01:08]wFMCommunicate request_size=4 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 0D 01 02 [08:01:08]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 03 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [08:01:08]RAPDU: 90 00 [08:01:08]wFMCommunicate OK [08:01:08]wFMCommunicate request_size=255 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 CE EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DD 1D 00 00 35 04 06 00 [08:01:08]Write to MH i2c: E2 02 01 39 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 CE EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DD 1D 00 00 35 04 06 00 00 00 6E [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 03 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [08:01:08]RAPDU: 90 00 [08:01:08]wFMCommunicate OK [08:01:08]wFMCommunicate request_size=11 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 0D 02 02 06 F6 B0 10 85 23 E0 [08:01:08]Write to MH i2c: E2 0E 00 3A 02 80 0D 02 02 06 00 F6 B0 10 85 23 E0 00 00 00 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 03 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [08:01:08]RAPDU: 90 00 [08:01:08]wFMCommunicate OK [08:01:08]wFMCommunicate request_size=4 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 0D 03 02 [08:01:08]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 0B 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 0B 00 3B 02 00 30 C3 89 5A 17 20 08 D6 90 00 A4 [08:01:08]RAPDU: 30 C3 89 5A 17 20 08 D6 90 00 [08:01:08]wFMCommunicate OK [08:01:08]SAM_PROTO_SignData done [08:01:08]FM_MakeSignedData done [08:01:08]CreateOFDProtocolMessage [08:01:08]wFMCommunicate request_size=4 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 11 00 00 [08:01:08]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 17 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 09 [08:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [08:01:08]wFMCommunicate OK [08:01:08]CreateOFDProtocolMessage done [08:01:08]OFDSenderStorePacket 7645 [08:01:08]StoreOFDPacket docnum=7645 [08:01:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 33 73 08 01 13 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 C4 CE EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DD 1D 00 00 35 04 06 00 F6 B0 10 85 23 E0 30 C3 89 5A 17 20 08 D6 [08:01:08]CheckFolder [08:01:08]dirname=/storage/ofd_packets [08:01:08]CheckFolder done [08:01:08]ProducePacketName [08:01:08]name=ofd_packets/00007645 [08:01:08]NVStorageSaveData ofd_packets/00007645 [08:01:08]File name is /storage/ofd_packets/00007645 [08:01:08]Write 302 bytes [08:01:08]NVStorageSaveData done [08:01:08]OFDSenderStorePacket done [08:01:08]KKMCreateOFDPacket done [08:01:08]NVStorageSaveData kkm_last_timestamp [08:01:08]File name is /storage/kkm_last_timestamp [08:01:08]Write 4 bytes [08:01:08]NVStorageSaveData done [08:01:08]ExternCall_PrintAddStr [08:01:08]wPrintStart [08:01:08]Write to MH i2c: 01 00 00 3D 02 3F [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: 01 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: 01 07 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [08:01:08]RasterBufferAndPrint [08:01:08]line Счет N : (1)871589 [08:01:08]line ИНН: 02508201610067 [08:01:08]line Контрольно-Кассовый Чек [08:01:08]line ПРОДАЖА [08:01:08]line ТРК (МРК, ГНК) : 21 [08:01:08]line Товар: 2710194210 [08:01:08]line ДТ(л)-К-4 [08:01:08]line 13.130 * 76.20 [08:01:08]line = 1000.51 [08:01:08]line НДС 12% НСП 1% [08:01:08]line > о реализуемом товаре [08:01:08]line ОКРУГЛЕНИЕ: -0.51 [08:01:08]line ИТОГО: 1000.00 [08:01:08]line Внесено: 1000.00 [08:01:08]line СДАЧА: 0.00 [08:01:08]line НСП 1% : 8.85 [08:01:08]line НДС 12% : 106.25 [08:01:08]line Наличными: 1000.00 [08:01:08]line Безнал.: 0.00 [08:01:08]line Место: АЗС № 137 "Партнер Нефть" [08:01:08]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [08:01:08]line СНО: Общий режим [08:01:08]line Чек 43 22.09.2024 08:01 [08:01:08]line Смена: 70 ФФД: 1.0 [08:01:09]line ЗНМ: 0300000041 [08:01:09]line РНМ: 0000000000190446 [08:01:09]line Версия ККМ: v1.0 [08:01:09]line ФМ: 0000000002094258 [08:01:09]line ФД: 7645 [08:01:09]line ФПД: 271236051837920 [08:01:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T080108&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7645&fm=271236051837920&tin=02508201610067®Number=0000000000190446&sum=100000 [08:01:09]OFD Sender: Processing packet 7645 [packets to send 51, broken 50] [08:01:09]ProducePacketName [08:01:09]name=ofd_packets/00007645 [08:01:09]OFD Sender: To server: pG, [08:01:09]CommunicateWithHost lk.salyk.kg:30040 [08:01:09]ConnectInit lk.salyk.kg [08:01:09]written 0, free lines is 4095 [08:01:09]Write to MH i2c: 01 00 00 68 02 6A [08:01:09]Write i2c OK [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: 01 [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: 01 07 00 [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 E7 0C 64 [08:01:09]RasterBufferAndPrint [08:01:09]line [08:01:09]line [08:01:09]line [08:01:09]line [08:01:09]line [08:01:09]written 0, free lines is 3309 [08:01:09]MH_Cut [08:01:09]Write to MH i2c: D1 01 00 6F 02 01 43 [08:01:09]Write i2c OK [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: D1 [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: D1 01 00 [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: D1 01 00 6F 02 00 42 [08:01:09]Write to MH i2c: 01 00 00 70 02 72 [08:01:09]Write i2c OK [08:01:09]MH_I2C_Read... [08:01:10]*** Cut start [08:01:10]*** Purtial cut [08:01:10]*** Stage 1: CUTSNS_PIN = 1 [08:01:10]Read from MH i2c: 01 [08:01:10]MH_I2C_Read... [08:01:10]*** Stop cut motor [08:01:10]*** Cut end [08:01:10]Read from MH i2c: 01 07 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [08:01:10]process_action close_receipt done [08:01:10]requested_data is exist [08:01:10]produce_requested_data [08:01:10]requested_item fm.sn is exist - process it [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 11 00 00 [08:01:10]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 17 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 3E [08:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [08:01:10]wFMCommunicate OK [08:01:10]requested_item fd.num is exist - process it [08:01:10]SAM_PROTO_GetFieldsCounters [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 13 00 00 [08:01:10]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 62 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DD 1D 00 00 0E 04 04 00 46 00 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 CF [08:01:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DD 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:10]wFMCommunicate OK [08:01:10]SAM_PROTO_GetFieldsCounters done [08:01:10]requested_item shift.num is exist - process it [08:01:10]requested_item shift.opened is exist - process it [08:01:10]req_shift_opened [08:01:10]FM_GetShiftState [08:01:10]SAM_PROTO_GetShiftState [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 13 01 00 [08:01:10]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 0E 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B5 [08:01:10]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [08:01:10]wFMCommunicate OK [08:01:10]SAM_PROTO_GetShiftState done [08:01:10]FM_GetShiftState done [08:01:10]req_shift_opened done [08:01:10]requested_item shift.open_date is exist - process it [08:01:10]req_shift_open_date [08:01:10]req_shift_open_date done [08:01:10]produce_requested_data done [08:01:10]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7645,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [08:01:10]process_action_free close_receipt [08:01:10]json_value_free [08:01:10]json_value_free done [08:01:10]process_json_proto returns [08:01:10]Send response to host [08:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7645,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [08:01:10]free response buf [08:01:10]execute_script done [08:01:10]execute_script returns [08:01:10]free content buf [08:01:10]Sock 8.Close socket [08:01:10]Sock 8.Thread stoped [08:01:14]recv_with_timeout no data received [08:01:17]Connected sock=11 [08:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 33 73 08 01 13 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 C4 CE EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DD 1D 00 00 35 04 06 00 F6 B0 10 85 23 E0 30 C3 89 5A 17 20 08 D6 [08:01:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 74 9A 47 00 70 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 32 30 39 34 32 35 38 10 04 04 00 DD 1D 00 00 F4 03 04 00 8B 79 EF 66 B6 04 01 00 00 CB 38 B5 7C 6A 79 11 E7 [08:01:20]CommunicateWithHost err = 0 [08:01:20]CheckOFDResponse [08:01:20]1017 (14) - 77093643461234 [08:01:20]1041 (16) - 0000000002094258 [08:01:20]1040 (4) - 7645 [08:01:20]1012 (4) - 22.09.2024 01:57 [08:01:20]1206 (1) - 0 [08:01:20]OFD Sender: Remove packet 7645 [08:01:20]ProducePacketName [08:01:20]name=ofd_packets/00007645 [08:01:20]NVStorageDeleteData [08:01:21]OFD Sender: No OFD packet to send [08:01:25]recv_with_timeout no data received [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:38]recv_with_timeout no data received [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:15]recv_with_timeout no data received [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:44]recv_with_timeout no data received [08:03:46]OFD Sender: No OFD packet to send [08:03:49]accept exits with 9 [08:03:49]New connection [08:03:49]New thread 3067428196 created [08:03:49]Thread 3067284836 joined [08:03:49]Waiting for new connection... [08:03:49] Sock 9.Parse request [08:03:49]Sock 9.Check first char [08:03:49]Sock 9.First char is OK [08:03:49]request: POST /json_proto HTTP/1.0 [08:03:49]Method: POST [08:03:49]URL: /json_proto [08:03:49]Method is POST - this is cgi request [08:03:49]url: /json_proto [08:03:49]query_string will be loaded in cgi processing [08:03:49]execute_cgi json_proto POST (null) [08:03:49]execute_cgi path=json_proto method=POST [08:03:49]POST find Content-Length [08:03:49]Host: 172.17.47.195:8080 [08:03:49]Content-Length: 986 [08:03:49]Content-Type: application/json [08:03:49] [08:03:49]POST finish read [08:03:49]Found Content-Length = 986 [08:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:49]execute_script... [08:03: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)871588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:49]POST & json_proto [08:03:49]process_json_proto [08:03:49]json parsed OK: [08:03:49]protocol is kg_v1.0 [08:03:49]action value=close_receipt [08:03:49]process_action close_receipt [08:03:49]cmd_close_receipt [08:03:49]MH_GetDate [08:03:49]Write to MH i2c: F0 00 00 74 02 65 [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: F0 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: F0 09 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: F0 09 00 74 02 00 66 CF EF 66 96 2E 95 66 B7 [08:03:49]GetLastDocTimeStamp 1726992068 [08:03:49]current date 1726992230 [08:03:49]FM_GetShiftState [08:03:49]SAM_PROTO_GetShiftState [08:03:49]wFMCommunicate request_size=4 [08:03:49]MH_SAM_APDU [08:03:49]CAPDU: 80 13 01 00 [08:03:49]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:49]Read from MH i2c: E2 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 0E 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B7 [08:03:49]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [08:03:49]wFMCommunicate OK [08:03:49]SAM_PROTO_GetShiftState done [08:03:49]FM_GetShiftState done [08:03:49]opened in 1726964224 [08:03:49]opened+sec_in_day 1727050624 [08:03:49]quantity*price = 500004 [08:03:49]sum+1 = 500006 [08:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 44 22.09.2024 08:03 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Дисконтная программа ДТ номер 137 сэкономлено 66.49 сом ФМ: 0000000002094258 ФД: 7646 ФПД: 228841285179237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T080350&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7646&fm=228841285179237&tin=02508201610067®Number=0000000000190446&sum=500000 [08:03:50]StoreToDocumentArchive [08:03:50]shift 70 fd 7646 [08:03:50]save to /storage/0070/doc_00007646 [08:03:50]save last doc name /storage/0070/doc_00007646 to /storage/kkm_last_doc_name [08:03:50]save OK [08:03:50]Clear old archive folders... [08:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:03:50]tlvbuf is 0133DE70 [08:03:50]SAM_PROTO_ClearQueue [08:03:50]wFMCommunicate request_size=4 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 09 00 00 [08:03:50]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:50]Read from MH i2c: E2 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [08:03:50]RAPDU: 90 00 [08:03:50]wFMCommunicate OK [08:03:50]SAM_PROTO_ClearQueue done [08:03:50]KKMCreateOFDPacket [08:03:50]OFDProtocolAddRootSTLVToBuf [08:03:50]FM_MakeSignedData [08:03:50]FM_MakeSignedData [08:03:50]SAM_PROTO_SignData [08:03:50]wFMCommunicate request_size=4 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 0D 01 02 [08:03:50]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:50]Read from MH i2c: E2 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [08:03:50]RAPDU: 90 00 [08:03:50]wFMCommunicate OK [08:03:50]wFMCommunicate request_size=255 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 66 CF EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DE 1D 00 00 35 04 06 00 [08:03:50]Write to MH i2c: E2 02 01 84 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 34 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 66 CF EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DE 1D 00 00 35 04 06 00 00 00 61 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:51]Read from MH i2c: E2 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 03 00 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [08:03:51]RAPDU: 90 00 [08:03:51]wFMCommunicate OK [08:03:51]wFMCommunicate request_size=11 [08:03:51]MH_SAM_APDU [08:03:51]CAPDU: 80 0D 02 02 06 D0 21 43 83 57 65 [08:03:51]Write to MH i2c: E2 0E 00 85 02 80 0D 02 02 06 00 D0 21 43 83 57 65 00 00 80 [08:03:51]Write i2c OK [08:03:51]MH_I2C_Read... [08:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:51]Read from MH i2c: E2 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 03 00 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [08:03:51]RAPDU: 90 00 [08:03:51]wFMCommunicate OK [08:03:51]wFMCommunicate request_size=4 [08:03:51]MH_SAM_APDU [08:03:51]CAPDU: 80 0D 03 02 [08:03:51]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [08:03:51]Write i2c OK [08:03:51]MH_I2C_Read... [08:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:51]Read from MH i2c: E2 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 0B 00 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 0B 00 86 02 00 4B 46 2B 0D 04 AA 17 35 90 00 C7 [08:03:51]RAPDU: 4B 46 2B 0D 04 AA 17 35 90 00 [08:03:51]wFMCommunicate OK [08:03:51]SAM_PROTO_SignData done [08:03:51]FM_MakeSignedData done [08:03:51]CreateOFDProtocolMessage [08:03:51]wFMCommunicate request_size=4 [08:03:51]MH_SAM_APDU [08:03:51]CAPDU: 80 11 00 00 [08:03:51]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:07:57]recv_with_timeout no data received [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:11]recv_with_timeout no data received [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]recv_with_timeout no data received [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:04]recv_with_timeout no data received [08:09:06]OFD Sender: No OFD packet to send [08:10:01]ConnectInit Can't connect to host [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:09]recv_with_timeout no data received [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:54]recv_with_timeout no data received [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:28]recv_with_timeout no data received [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:31]recv_with_timeout no data received [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:31]recv_with_timeout no data received [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: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:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]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:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:40]recv_with_timeout no data received [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:20]recv_with_timeout no data received [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:50]recv_with_timeout no data received [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]recv_with_timeout no data received [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:21]recv_with_timeout no data received [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:38]recv_with_timeout no data received [08:30:42]OFD Sender: No OFD packet to send [08:33:06]ConnectInit Can't connect to host [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:25]accept exits with 10 [08:37:25]New connection [08:37:25]New thread 3067284836 created [08:37:25]Thread 3067428196 joined [08:37:25]Waiting for new connection... [08:37:25] Sock 10.Parse request [08:37:25]Sock 10.Check first char [08:37:25]Sock 10.First char is OK [08:37:25]request: POST /json_proto HTTP/1.0 [08:37:25]Method: POST [08:37:25]URL: /json_proto [08:37:25]Method is POST - this is cgi request [08:37:25]url: /json_proto [08:37:25]query_string will be loaded in cgi processing [08:37:25]execute_cgi json_proto POST (null) [08:37:25]execute_cgi path=json_proto method=POST [08:37:25]POST find Content-Length [08:37:25]Host: 172.17.47.195:8080 [08:37:25]Content-Length: 682 [08:37:25]Content-Type: application/json [08:37:25] [08:37:25]POST finish read [08:37:25]Found Content-Length = 682 [08:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:25]execute_script... [08:37:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:25]POST & json_proto [08:37:25]process_json_proto [08:37:25]json parsed OK: [08:37:25]protocol is kg_v1.0 [08:37:25]action value=close_receipt [08:37:25]process_action close_receipt [08:37:25]cmd_close_receipt [08:37:25]MH_GetDate [08:37:25]Write to MH i2c: F0 00 00 C4 02 B5 [08:37:25]Write i2c OK [08:37:25]MH_I2C_Read... [08:37:25]Read from MH i2c: F0 [08:37:25]MH_I2C_Read... [08:37:25]Read from MH i2c: F0 09 00 [08:37:25]MH_I2C_Read... [08:37:25]Read from MH i2c: F0 09 00 C4 02 00 46 D7 EF 66 96 2E 95 66 EF [08:37:25]GetLastDocTimeStamp 1726992230 [08:37:25]current date 1726994246 [08:37:25]FM_GetShiftState [08:37:25]SAM_PROTO_GetShiftState [08:37:25]wFMCommunicate request_size=4 [08:37:25]MH_SAM_APDU [08:37:25]CAPDU: 80 13 01 00 [08:37:25]Write to MH i2c: E2 08 00 C5 02 80 13 01 00 00 00 00 00 44 [08:37:25]Write i2c OK [08:37:25]MH_I2C_Read... [08:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:25]Read from MH i2c: E2 [08:37:25]MH_I2C_Read... [08:37:25]Read from MH i2c: E2 0E 00 [08:37:25]MH_I2C_Read... [08:37:25]Read from MH i2c: E2 0E 00 C5 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 07 [08:37:25]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [08:37:25]wFMCommunicate OK [08:37:25]SAM_PROTO_GetShiftState done [08:37:25]FM_GetShiftState done [08:37:25]opened in 1726964224 [08:37:25]opened+sec_in_day 1727050624 [08:37:25]quantity*price = 70027 [08:37:25]sum+1 = 70029 [08:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 45 22.09.2024 08:37 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7647 ФПД: 237049975291490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T083726&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7647&fm=237049975291490&tin=02508201610067®Number=0000000000190446&sum=70000 [08:37:26]StoreToDocumentArchive [08:37:26]shift 70 fd 7647 [08:37:26]save to /storage/0070/doc_00007647 [08:37:26]save last doc name /storage/0070/doc_00007647 to /storage/kkm_last_doc_name [08:37:26]save OK [08:37:26]Clear old archive folders... [08:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:37:26]tlvbuf is 013605F0 [08:37:26]SAM_PROTO_ClearQueue [08:37:26]wFMCommunicate request_size=4 [08:37:26]MH_SAM_APDU [08:37:26]CAPDU: 80 09 00 00 [08:37:26]Write to MH i2c: E2 08 00 D2 02 80 09 00 00 00 00 00 00 46 [08:37:26]Write i2c OK [08:37:26]MH_I2C_Read... [08:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:26]Read from MH i2c: E2 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 03 00 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [08:37:26]RAPDU: 90 00 [08:37:26]wFMCommunicate OK [08:37:26]SAM_PROTO_ClearQueue done [08:37:26]KKMCreateOFDPacket [08:37:26]OFDProtocolAddRootSTLVToBuf [08:37:26]FM_MakeSignedData [08:37:26]FM_MakeSignedData [08:37:26]SAM_PROTO_SignData [08:37:26]wFMCommunicate request_size=4 [08:37:26]MH_SAM_APDU [08:37:26]CAPDU: 80 0D 01 02 [08:37:26]Write to MH i2c: E2 08 00 D3 02 80 0D 01 02 00 00 00 00 4E [08:37:26]Write i2c OK [08:37:26]MH_I2C_Read... [08:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:26]Read from MH i2c: E2 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 03 00 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [08:37:26]RAPDU: 90 00 [08:37:26]wFMCommunicate OK [08:37:26]wFMCommunicate request_size=255 [08:37:26]MH_SAM_APDU [08:37: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 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 46 D7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DF 1D 00 00 35 04 06 00 [08:37:26]Write to MH i2c: E2 02 01 D4 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 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 46 D7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DF 1D 00 00 35 04 06 00 00 00 94 [08:37:26]Write i2c OK [08:37:26]MH_I2C_Read... [08:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:26]Read from MH i2c: E2 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 03 00 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [08:37:26]RAPDU: 90 00 [08:37:26]wFMCommunicate OK [08:37:26]wFMCommunicate request_size=11 [08:37:26]MH_SAM_APDU [08:37:26]CAPDU: 80 0D 02 02 06 D7 98 7F 92 3E 62 [08:37:26]Write to MH i2c: E2 0E 00 D5 02 80 0D 02 02 06 00 D7 98 7F 92 3E 62 00 00 7D [08:37:26]Write i2c OK [08:37:26]MH_I2C_Read... [08:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:26]Read from MH i2c: E2 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 03 00 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [08:37:26]RAPDU: 90 00 [08:37:26]wFMCommunicate OK [08:37:26]wFMCommunicate request_size=4 [08:37:26]MH_SAM_APDU [08:37:26]CAPDU: 80 0D 03 02 [08:37:26]Write to MH i2c: E2 08 00 D6 02 80 0D 03 02 00 00 00 00 53 [08:37:26]Write i2c OK [08:37:26]MH_I2C_Read... [08:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:26]Read from MH i2c: E2 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 0B 00 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 0B 00 D6 02 00 29 17 D4 DC 22 99 82 2E 90 00 AF [08:37:26]RAPDU: 29 17 D4 DC 22 99 82 2E 90 00 [08:37:26]wFMCommunicate OK [08:37:26]SAM_PROTO_SignData done [08:37:26]FM_MakeSignedData done [08:37:26]CreateOFDProtocolMessage [08:37:26]wFMCommunicate request_size=4 [08:37:26]MH_SAM_APDU [08:37:26]CAPDU: 80 11 00 00 [08:37:26]Write to MH i2c: E2 08 00 D7 02 80 11 00 00 00 00 00 00 53 [08:37:26]Write i2c OK [08:37:26]MH_I2C_Read... [08:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:26]Read from MH i2c: E2 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 17 00 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: E2 17 00 D7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A4 [08:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [08:37:26]wFMCommunicate OK [08:37:26]CreateOFDProtocolMessage done [08:37:26]OFDSenderStorePacket 7647 [08:37:26]StoreOFDPacket docnum=7647 [08:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 CB 05 08 01 46 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 46 D7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DF 1D 00 00 35 04 06 00 D7 98 7F 92 3E 62 29 17 D4 DC 22 99 82 2E [08:37:26]CheckFolder [08:37:26]dirname=/storage/ofd_packets [08:37:26]CheckFolder done [08:37:26]ProducePacketName [08:37:26]name=ofd_packets/00007647 [08:37:26]NVStorageSaveData ofd_packets/00007647 [08:37:26]File name is /storage/ofd_packets/00007647 [08:37:26]Write 302 bytes [08:37:26]NVStorageSaveData done [08:37:26]OFDSenderStorePacket done [08:37:26]KKMCreateOFDPacket done [08:37:26]NVStorageSaveData kkm_last_timestamp [08:37:26]File name is /storage/kkm_last_timestamp [08:37:26]Write 4 bytes [08:37:26]NVStorageSaveData done [08:37:26]ExternCall_PrintAddStr [08:37:26]wPrintStart [08:37:26]Write to MH i2c: 01 00 00 D8 02 DA [08:37:26]Write i2c OK [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: 01 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: 01 07 00 [08:37:26]MH_I2C_Read... [08:37:26]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [08:37:26]RasterBufferAndPrint [08:37:26]line Счет N : (1)871599 [08:37:26]line ИНН: 02508201610067 [08:37:26]line Контрольно-Кассовый Чек [08:37:26]line ПРОДАЖА [08:37:26]line ТРК (МРК, ГНК) : 64 [08:37:26]line Товар: 2710194210 [08:37:26]line ДТ(л)-К-4 [08:37:26]line 9.190 * 76.20 [08:37:26]line = 700.28 [08:37:26]line НДС 12% НСП 1% [08:37:26]line > о реализуемом товаре [08:37:26]line ОКРУГЛЕНИЕ: -0.28 [08:37:26]line ИТОГО: 700.00 [08:37:26]line Внесено: 700.00 [08:37:26]line СДАЧА: 0.00 [08:37:26]line НСП 1% : 6.20 [08:37:26]line НДС 12% : 74.37 [08:37:26]line Наличными: 700.00 [08:37:26]line Безнал.: 0.00 [08:37:26]line Место: АЗС № 137 "Партнер Нефть" [08:37:26]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [08:37:26]line СНО: Общий режим [08:37:26]line Чек 45 22.09.2024 08:37 [08:37:26]line Смена: 70 ФФД: 1.0 [08:37:26]line ЗНМ: 0300000041 [08:37:26]line РНМ: 0000000000190446 [08:37:26]line Версия ККМ: v1.0 [08:37:26]line ФМ: 0000000002094258 [08:37:26]line ФД: 7647 [08:37:26]line ФПД: 237049975291490 [08:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T083726&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7647&fm=237049975291490&tin=02508201610067®Number=0000000000190446&sum=70000 [08:37:27]OFD Sender: Processing packet 7647 [packets to send 51, broken 50] [08:37:27]ProducePacketName [08:37:27]name=ofd_packets/00007647 [08:37:27]OFD Sender: To server: pG, [08:37:27]CommunicateWithHost lk.salyk.kg:30040 [08:37:27]ConnectInit lk.salyk.kg [08:37:27]written 0, free lines is 4095 [08:37:27]Write to MH i2c: 01 00 00 03 03 06 [08:37:27]Write i2c OK [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: 01 [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: 01 07 00 [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 ED 0C 06 [08:37:27]RasterBufferAndPrint [08:37:27]line [08:37:27]line [08:37:27]line [08:37:27]line [08:37:27]line [08:37:27]written 0, free lines is 3315 [08:37:27]MH_Cut [08:37:27]Write to MH i2c: D1 01 00 0A 03 01 DF [08:37:27]Write i2c OK [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: D1 [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: D1 01 00 [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: D1 01 00 0A 03 00 DE [08:37:27]Write to MH i2c: 01 00 00 0B 03 0E [08:37:27]Write i2c OK [08:37:27]MH_I2C_Read... [08:37:28]*** Cut start [08:37:28]*** Purtial cut [08:37:28]*** Stage 1: CUTSNS_PIN = 1 [08:37:28]Read from MH i2c: 01 [08:37:28]MH_I2C_Read... [08:37:28]*** Stop cut motor [08:37:28]*** Cut end [08:37:28]Read from MH i2c: 01 07 00 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [08:37:28]process_action close_receipt done [08:37:28]requested_data is exist [08:37:28]produce_requested_data [08:37:28]requested_item fm.sn is exist - process it [08:37:28]wFMCommunicate request_size=4 [08:37:28]MH_SAM_APDU [08:37:28]CAPDU: 80 11 00 00 [08:37:28]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [08:37:28]Write i2c OK [08:37:28]MH_I2C_Read... [08:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:28]Read from MH i2c: E2 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 17 00 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 17 00 0C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DA [08:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [08:37:28]wFMCommunicate OK [08:37:28]requested_item fd.num is exist - process it [08:37:28]SAM_PROTO_GetFieldsCounters [08:37:28]wFMCommunicate request_size=4 [08:37:28]MH_SAM_APDU [08:37:28]CAPDU: 80 13 00 00 [08:37:28]Write to MH i2c: E2 08 00 0D 03 80 13 00 00 00 00 00 00 8C [08:37:28]Write i2c OK [08:37:28]MH_I2C_Read... [08:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:28]Read from MH i2c: E2 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 62 00 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 62 00 0D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DF 1D 00 00 0E 04 04 00 46 00 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 73 [08:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DF 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:28]wFMCommunicate OK [08:37:28]SAM_PROTO_GetFieldsCounters done [08:37:28]requested_item shift.num is exist - process it [08:37:28]requested_item shift.opened is exist - process it [08:37:28]req_shift_opened [08:37:28]FM_GetShiftState [08:37:28]SAM_PROTO_GetShiftState [08:37:28]wFMCommunicate request_size=4 [08:37:28]MH_SAM_APDU [08:37:28]CAPDU: 80 13 01 00 [08:37:28]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [08:37:28]Write i2c OK [08:37:28]MH_I2C_Read... [08:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:28]Read from MH i2c: E2 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 0E 00 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 51 [08:37:28]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [08:37:28]wFMCommunicate OK [08:37:28]SAM_PROTO_GetShiftState done [08:37:28]FM_GetShiftState done [08:37:28]req_shift_opened done [08:37:28]requested_item shift.open_date is exist - process it [08:37:28]req_shift_open_date [08:37:28]req_shift_open_date done [08:37:28]produce_requested_data done [08:37:28]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7647,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [08:37:28]process_action_free close_receipt [08:37:28]json_value_free [08:37:28]json_value_free done [08:37:28]process_json_proto returns [08:37:28]Send response to host [08:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7647,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [08:37:28]free response buf [08:37:28]execute_script done [08:37:28]execute_script returns [08:37:28]free content buf [08:37:28]Sock 10.Close socket [08:37:28]Sock 10.Thread stoped [08:37:31]Connected sock=11 [08:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 CB 05 08 01 46 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 46 D7 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 DF 1D 00 00 35 04 06 00 D7 98 7F 92 3E 62 29 17 D4 DC 22 99 82 2E [08:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 DE AC 47 00 EB 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 32 30 39 34 32 35 38 10 04 04 00 DF 1D 00 00 F4 03 04 00 09 82 EF 66 B6 04 01 00 00 73 A4 09 68 B9 2C 8F 23 [08:37:32]CommunicateWithHost err = 0 [08:37:32]CheckOFDResponse [08:37:32]1017 (14) - 77093643461234 [08:37:32]1041 (16) - 0000000002094258 [08:37:32]1040 (4) - 7647 [08:37:32]1012 (4) - 22.09.2024 02:33 [08:37:32]1206 (1) - 0 [08:37:32]OFD Sender: Remove packet 7647 [08:37:32]ProducePacketName [08:37:32]name=ofd_packets/00007647 [08:37:32]NVStorageDeleteData [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: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: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: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: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 [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:40:59]recv_with_timeout no data received [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:09]recv_with_timeout no data received [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:42]recv_with_timeout no data received [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:43:59]recv_with_timeout no data received [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:00]recv_with_timeout no data received [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:42]recv_with_timeout no data received [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:25]recv_with_timeout no data received [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]recv_with_timeout no data received [08:48:53]OFD Sender: No OFD packet to send [08:50:03]ConnectInit Can't connect to host [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:14]recv_with_timeout no data received [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:15]recv_with_timeout no data received [08:54:18]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005724E0 (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: 5942459+1721052822=1726995281 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 51 DB EF 66 96 2E 95 66 3F [08:54:41]Current date/time: 22.09.2024 08:54 [08:54:41]FM_Init [08:54:41]wFMConnect [08:54:41]MH_SAM_On [08:54:41]Write to MH i2c: E0 00 00 08 00 E7 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]*** iso7816_init finished! [08:54:41]*** atr: [08:54:41]*** 0F 3B D5 18 FF 81 91 FE [08:54:41]*** 1F C3 80 73 C8 21 10 0A [08:54:41]*** 00 00 00 00 00 00 00 00 [08:54:41]*** 00 00 00 00 00 00 00 00 [08:54:41]*** 00 00 00 00 00 00 00 00 [08:54:41]*** 00 00 00 00 00 00 00 00 [08:54:41]*** 00 00 00 00 00 00 00 00 [08:54:41]*** 00 00 00 00 00 00 00 00 [08:54:41]Read from MH i2c: E0 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E0 10 00 [08:54:41]MH_I2C_Read... [08:54:41]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 [08:54:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:54:41]wFMCommunicate request_size=10 [08:54:41]MH_SAM_APDU [08:54:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:54:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:54:41]Read from MH i2c: E2 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 03 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:54:41]RAPDU: 90 00 [08:54:41]wFMCommunicate OK [08:54:41]wFMCommunicate request_size=4 [08:54:41]MH_SAM_APDU [08:54:41]CAPDU: 80 11 00 00 [08:54:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:41]Read from MH i2c: E2 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 17 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [08:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [08:54:41]wFMCommunicate OK [08:54:41]Detected FM SN is 0000000002094258 [08:54:41]Stored FM SN is 0000000002094258 [08:54:41]wFMCommunicate request_size=9 [08:54:41]MH_SAM_APDU [08:54:41]CAPDU: 80 16 00 00 04 BC C2 00 00 [08:54:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:54:41]Read from MH i2c: E2 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 03 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:54:41]RAPDU: 90 00 [08:54:41]wFMCommunicate OK [08:54:41]FM PIN OK [08:54:41]wFMCommunicate request_size=8 [08:54:41]MH_SAM_APDU [08:54:41]CAPDU: 80 14 04 00 03 02 00 01 [08:54:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:54:41]Read from MH i2c: E2 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 03 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:54:41]RAPDU: 90 00 [08:54:41]wFMCommunicate OK [08:54:41]wFMCommunicate request_size=13 [08:54:41]MH_SAM_APDU [08:54:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:54:41]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 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:54:41]Read from MH i2c: E2 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 03 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:54:41]RAPDU: 90 00 [08:54:41]wFMCommunicate OK [08:54:41]wFMCommunicate request_size=4 [08:54:41]MH_SAM_APDU [08:54:41]CAPDU: 80 11 00 00 [08:54:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:41]Read from MH i2c: E2 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 17 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [08:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [08:54:41]wFMCommunicate OK [08:54:41]DocumentArchiveInit [08:54:41]Start Httpd... [08:54:41]Httpd thread 3067829604 created [08:54:41]Write to MH i2c: 01 00 00 0F 00 0F [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: 01 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: 01 07 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:54:41]MH Int Process started [08:54:41]Allocated Socket 7 [08:54:41]Bind OK [08:54:41]Listen OK [08:54:41]httpd running on port 8080 [08:54:41]Waiting for new connection... [08:54:41]OFD Sender: No OFD packet to send [08:54:43]accept exits with 9 [08:54:43]New connection [08:54:43]New thread 3067542884 created [08:54:43]Waiting for new connection... [08:54:43] Sock 9.Parse request [08:54:43]Sock 9.Check first char [08:54:43]Sock 9.First char is OK [08:54:43]request: POST /json_proto HTTP/1.0 [08:54:43]Method: POST [08:54:43]URL: /json_proto [08:54:43]Method is POST - this is cgi request [08:54:43]url: /json_proto [08:54:43]query_string will be loaded in cgi processing [08:54:43]execute_cgi json_proto POST (null) [08:54:43]execute_cgi path=json_proto method=POST [08:54:43]POST find Content-Length [08:54:43]Host: 172.17.47.195:8080 [08:54:43]Content-Length: 215 [08:54:43]Content-Type: application/json [08:54:43] [08:54:43]POST finish read [08:54:43]Found Content-Length = 215 [08:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:43]execute_script... [08:54:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:43]POST & json_proto [08:54:43]process_json_proto [08:54:43]json parsed OK: [08:54:43]protocol is kg_v1.0 [08:54:43]action value=get_value [08:54:43]process_action get_value [08:54:43]cmd_get_value [08:54:43]process_action get_value done [08:54:43]requested_data is exist [08:54:43]produce_requested_data [08:54:43]requested_item kkm.sn is exist - process it [08:54:43]requested_item kkm.ver is exist - process it [08:54:43]requested_item fm.sn is exist - process it [08:54:43]wFMCommunicate request_size=4 [08:54:43]MH_SAM_APDU [08:54:43]CAPDU: 80 11 00 00 [08:54:43]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [08:54:43]Write i2c OK [08:54:43]MH_I2C_Read... [08:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:43]Read from MH i2c: E2 [08:54:43]MH_I2C_Read... [08:54:43]Read from MH i2c: E2 17 00 [08:54:43]MH_I2C_Read... [08:54:43]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [08:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [08:54:43]wFMCommunicate OK [08:54:43]requested_item fd.num is exist - process it [08:54:43]SAM_PROTO_GetFieldsCounters [08:54:43]wFMCommunicate request_size=4 [08:54:43]MH_SAM_APDU [08:54:43]CAPDU: 80 13 00 00 [08:54:43]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [08:54:43]Write i2c OK [08:54:43]MH_I2C_Read... [08:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:43]Read from MH i2c: E2 [08:54:43]MH_I2C_Read... [08:54:43]Read from MH i2c: E2 62 00 [08:54:43]MH_I2C_Read... [08:54:43]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DF 1D 00 00 0E 04 04 00 46 00 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 74 [08:54:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 DF 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:43]wFMCommunicate OK [08:54:43]SAM_PROTO_GetFieldsCounters done [08:54:43]requested_item shift.num is exist - process it [08:54:43]requested_item shift.opened is exist - process it [08:54:43]req_shift_opened [08:54:43]FM_GetShiftState [08:54:43]SAM_PROTO_GetShiftState [08:54:43]wFMCommunicate request_size=4 [08:54:43]MH_SAM_APDU [08:54:43]CAPDU: 80 13 01 00 [08:54:43]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [08:54:43]Write i2c OK [08:54:43]MH_I2C_Read... [08:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:43]Read from MH i2c: E2 [08:54:43]MH_I2C_Read... [08:54:43]Read from MH i2c: E2 0E 00 [08:54:43]MH_I2C_Read... [08:54:43]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [08:54:43]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [08:54:43]wFMCommunicate OK [08:54:43]SAM_PROTO_GetShiftState done [08:54:43]FM_GetShiftState done [08:54:43]req_shift_opened done [08:54:43]requested_item shift.open_date is exist - process it [08:54:43]req_shift_open_date [08:54:43]req_shift_open_date done [08:54:43]produce_requested_data done [08:54:43]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7647,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [08:54:43]process_action_free get_value [08:54:43]json_value_free [08:54:43]json_value_free done [08:54:43]process_json_proto returns [08:54:43]Send response to host [08:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7647,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [08:54:43]free response buf [08:54:43]execute_script done [08:54:43]execute_script returns [08:54:43]free content buf [08:54:43]Sock 9.Close socket [08:54:43]Sock 9.Thread stoped [08:54:43]accept exits with 8 [08:54:43]New connection [08:54:43]New thread 3067399524 created [08:54:43]Thread 3067542884 joined [08:54:43]Waiting for new connection... [08:54:43] Sock 8.Parse request [08:54:43]Sock 8.Check first char [08:54:43]Sock 8.First char is OK [08:54:43]request: POST /json_proto HTTP/1.0 [08:54:43]Method: POST [08:54:43]URL: /json_proto [08:54:43]Method is POST - this is cgi request [08:54:43]url: /json_proto [08:54:43]query_string will be loaded in cgi processing [08:54:43]execute_cgi json_proto POST (null) [08:54:43]execute_cgi path=json_proto method=POST [08:54:43]POST find Content-Length [08:54:43]Host: 172.17.47.195:8080 [08:54:43]Content-Length: 331 [08:54:43]Content-Type: application/json [08:54:43] [08:54:43]POST finish read [08:54:43]Found Content-Length = 331 [08:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:54:43]execute_script... [08:54:43]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" ] } } [08:54:43]POST & json_proto [08:54:43]process_json_proto [08:54:43]json parsed OK: [08:54:43]protocol is kg_v1.0 [08:54:43]action value=get_value [08:54:43]process_action get_value [08:54:43]cmd_get_value [08:54:43]process_action get_value done [08:54:43]requested_data is exist [08:54:43]produce_requested_data [08:54:43]requested_item fm.sale.total is exist - process it [08:54:43]SAM_PROTO_GetFMData [08:54:43]wFMCommunicate request_size=4 [08:54:43]MH_SAM_APDU [08:54:43]CAPDU: 80 13 03 00 [08:54:43]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [08:54:43]Write i2c OK [08:54:43]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 FD 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 53 1D 00 00 69 04 A0 00 6F 04 04 00 27 1D 00 00 B1 04 04 00 78 B9 9B 30 70 04 04 00 A8 5A B6 28 72 04 04 00 D0 5E E5 07 00 04 7C 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 DC C0 29 05 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 F5 24 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 95 [08:54:44]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 53 1D 00 00 69 04 A0 00 6F 04 04 00 27 1D 00 00 B1 04 04 00 78 B9 9B 30 70 04 04 00 A8 5A B6 28 72 04 04 00 D0 5E E5 07 00 04 7C 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 DC C0 29 05 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 F5 24 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 [08:54:44]wFMCommunicate OK [08:54:44]wFMCommunicate request_size=4 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 17 00 00 [08:54:44]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 FD 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 AC [08:54:44]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 [08:54:44]wFMCommunicate OK [08:54:44]wFMCommunicate request_size=4 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 17 00 00 [08:54:44]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 FD 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [08:54:44]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:54:44]wFMCommunicate OK [08:54:44]wFMCommunicate request_size=4 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 17 00 00 [08:54:44]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:45]Read from MH i2c: E2 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: E2 FD 00 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [08:54:45]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:54:45]wFMCommunicate OK [08:54:45]wFMCommunicate request_size=4 [08:54:45]MH_SAM_APDU [08:54:45]CAPDU: 80 17 00 00 [08:54:45]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [08:54:45]Write i2c OK [08:54:45]MH_I2C_Read... [08:54:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [08:54:45]Read from MH i2c: E2 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: E2 DE 00 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [08:54:45]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:54:45]wFMCommunicate OK [08:54:45]SAM_PROTO_GetFMData done [08:54:45]requested_item fm.sale_refund.total is exist - process it [08:54:45]requested_item fm.buy.total is exist - process it [08:54:45]requested_item shift.sale.total is exist - process it [08:54:45]SAM_PROTO_GetShiftData [08:54:45]wFMCommunicate request_size=4 [08:54:45]MH_SAM_APDU [08:54:45]CAPDU: 80 13 02 00 [08:54:45]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [08:54:45]Write i2c OK [08:54:45]MH_I2C_Read... [08:54:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:54:45]Read from MH i2c: E2 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: E2 FD 00 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2D 00 00 00 69 04 9B 00 6F 04 04 00 2D 00 00 00 B1 04 03 00 7C E7 43 70 04 03 00 38 59 3C 72 04 03 00 44 8E 07 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 A3 36 07 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 DF 99 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 55 [08:54:45]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2D 00 00 00 69 04 9B 00 6F 04 04 00 2D 00 00 00 B1 04 03 00 7C E7 43 70 04 03 00 38 59 3C 72 04 03 00 44 8E 07 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 A3 36 07 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 DF 99 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:54:45]wFMCommunicate OK [08:54:45]wFMCommunicate request_size=4 [08:54:45]MH_SAM_APDU [08:54:45]CAPDU: 80 17 00 00 [08:54:45]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [08:54:45]Write i2c OK [08:54:45]MH_I2C_Read... [08:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:46]Read from MH i2c: E2 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 FD 00 [08:54:46]MH_I2C_Read... [08:54:46]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 [08:54:46]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 [08:54:46]wFMCommunicate OK [08:54:46]wFMCommunicate request_size=4 [08:54:46]MH_SAM_APDU [08:54:46]CAPDU: 80 17 00 00 [08:54:46]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [08:54:46]Write i2c OK [08:54:46]MH_I2C_Read... [08:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:46]Read from MH i2c: E2 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 FD 00 [08:54:46]MH_I2C_Read... [08:54:46]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 [08:54:46]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 [08:54:46]wFMCommunicate OK [08:54:46]wFMCommunicate request_size=4 [08:54:46]MH_SAM_APDU [08:54:46]CAPDU: 80 17 00 00 [08:54:46]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [08:54:46]Write i2c OK [08:54:46]MH_I2C_Read... [08:54:46]OFD Sender: No OFD packet to send [08:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:46]Read from MH i2c: E2 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 FD 00 [08:54:46]MH_I2C_Read... [08:54:46]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 [08:54:46]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 [08:54:46]wFMCommunicate OK [08:54:46]wFMCommunicate request_size=4 [08:54:46]MH_SAM_APDU [08:54:46]CAPDU: 80 17 00 00 [08:54:46]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [08:54:46]Write i2c OK [08:54:46]MH_I2C_Read... [08:54:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:54:47]Read from MH i2c: E2 [08:54:47]MH_I2C_Read... [08:54:47]Read from MH i2c: E2 CB 00 [08:54:47]MH_I2C_Read... [08:54:47]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 [08:54:47]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 [08:54:47]wFMCommunicate OK [08:54:47]SAM_PROTO_GetShiftData done [08:54:47]requested_item shift.sale.total_cash is exist - process it [08:54:47]requested_item shift.sale_refund.total is exist - process it [08:54:47]requested_item shift.sale_refund.total_cash is exist - process it [08:54:47]requested_item shift.buy.total is exist - process it [08:54:47]requested_item shift.buy.total_cash is exist - process it [08:54:47]produce_requested_data done [08:54:47]produce_requested_data return {"fm.sale.total":8155119.28,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":44501.72,"shift.sale.total_cash":39550.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} [08:54:47]process_action_free get_value [08:54:47]json_value_free [08:54:47]json_value_free done [08:54:47]process_json_proto returns [08:54:47]Send response to host [08:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8155119.28,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":44501.72,"shift.sale.total_cash":39550.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}}} [08:54:47]free response buf [08:54:47]execute_script done [08:54:47]execute_script returns [08:54:47]free content buf [08:54:47]Sock 8.Close socket [08:54:47]Sock 8.Thread stoped [08:54:50]recv_with_timeout no data received [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:00:57]recv_with_timeout no data received [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:00]recv_with_timeout no data received [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:13]recv_with_timeout no data received [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:04:57]accept exits with 9 [09:04:57]New connection [09:04:57]New thread 3067542884 created [09:04:57]Thread 3067399524 joined [09:04:57]Waiting for new connection... [09:04:57] Sock 9.Parse request [09:04:57]Sock 9.Check first char [09:04:57]Sock 9.First char is OK [09:04:57]request: POST /json_proto HTTP/1.0 [09:04:57]Method: POST [09:04:57]URL: /json_proto [09:04:57]Method is POST - this is cgi request [09:04:57]url: /json_proto [09:04:57]query_string will be loaded in cgi processing [09:04:57]execute_cgi json_proto POST (null) [09:04:57]execute_cgi path=json_proto method=POST [09:04:57]POST find Content-Length [09:04:57]Host: 172.17.47.195:8080 [09:04:57]Content-Length: 687 [09:04:57]Content-Type: application/json [09:04:57] [09:04:57]POST finish read [09:04:57]Found Content-Length = 687 [09:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:57]execute_script... [09:04: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)871607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:57]POST & json_proto [09:04:57]process_json_proto [09:04:57]json parsed OK: [09:04:57]protocol is kg_v1.0 [09:04:57]action value=close_receipt [09:04:57]process_action close_receipt [09:04:57]cmd_close_receipt [09:04:57]MH_GetDate [09:04:57]Write to MH i2c: F0 00 00 1D 00 0C [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: F0 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: F0 09 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: F0 09 00 1D 00 00 BA DD EF 66 96 2E 95 66 C0 [09:04:57]GetLastDocTimeStamp 1726994246 [09:04:57]current date 1726995898 [09:04:57]FM_GetShiftState [09:04:57]SAM_PROTO_GetShiftState [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 13 01 00 [09:04:57]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 0E 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [09:04:57]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [09:04:57]wFMCommunicate OK [09:04:57]SAM_PROTO_GetShiftState done [09:04:57]FM_GetShiftState done [09:04:57]opened in 1726964224 [09:04:57]opened+sec_in_day 1727050624 [09:04:57]quantity*price = 180060 [09:04:57]sum+1 = 180062 [09:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 46 22.09.2024 09:04 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7648 ФПД: 34927324964568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T090458&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7648&fm=34927324964568&tin=02508201610067®Number=0000000000190446&sum=180000 [09:04:58]StoreToDocumentArchive [09:04:58]shift 70 fd 7648 [09:04:58]save to /storage/0070/doc_00007648 [09:04:58]save last doc name /storage/0070/doc_00007648 to /storage/kkm_last_doc_name [09:04:58]save OK [09:04:58]Clear old archive folders... [09:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:04:58]tlvbuf is 00C73B30 [09:04:58]SAM_PROTO_ClearQueue [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 09 00 00 [09:04:58]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:58]Read from MH i2c: E2 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 03 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:04:58]RAPDU: 90 00 [09:04:58]wFMCommunicate OK [09:04:58]SAM_PROTO_ClearQueue done [09:04:58]KKMCreateOFDPacket [09:04:58]OFDProtocolAddRootSTLVToBuf [09:04:58]FM_MakeSignedData [09:04:58]FM_MakeSignedData [09:04:58]SAM_PROTO_SignData [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 0D 01 02 [09:04:58]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=255 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 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 BA DD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E0 1D 00 00 35 04 06 00 [09:04:59]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 34 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 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 BA DD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E0 1D 00 00 35 04 06 00 00 00 E8 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=11 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 02 02 06 1F C4 26 CC 26 D8 [09:04:59]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 1F C4 26 CC 26 D8 00 00 87 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 03 02 [09:04:59]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0B 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0B 00 2F 00 00 3D 2F 3A 7B A7 BA F6 8B 90 00 AE [09:04:59]RAPDU: 3D 2F 3A 7B A7 BA F6 8B 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_SignData done [09:04:59]FM_MakeSignedData done [09:04:59]CreateOFDProtocolMessage [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 11 00 00 [09:04:59]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [09:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [09:04:59]wFMCommunicate OK [09:04:59]CreateOFDProtocolMessage done [09:04:59]OFDSenderStorePacket 7648 [09:04:59]StoreOFDPacket docnum=7648 [09:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D4 5E 08 01 98 E5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 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 BA DD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E0 1D 00 00 35 04 06 00 1F C4 26 CC 26 D8 3D 2F 3A 7B A7 BA F6 8B [09:04:59]CheckFolder [09:04:59]dirname=/storage/ofd_packets [09:04:59]CheckFolder done [09:04:59]ProducePacketName [09:04:59]name=ofd_packets/00007648 [09:04:59]NVStorageSaveData ofd_packets/00007648 [09:04:59]File name is /storage/ofd_packets/00007648 [09:04:59]Write 302 bytes [09:04:59]NVStorageSaveData done [09:04:59]OFDSenderStorePacket done [09:04:59]KKMCreateOFDPacket done [09:04:59]NVStorageSaveData kkm_last_timestamp [09:04:59]File name is /storage/kkm_last_timestamp [09:04:59]Write 4 bytes [09:04:59]NVStorageSaveData done [09:04:59]ExternCall_PrintAddStr [09:04:59]wPrintStart [09:04:59]Write to MH i2c: 01 00 00 31 00 31 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 07 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:04:59]RasterBufferAndPrint [09:04:59]line Счет N : (1)871607 [09:04:59]line ИНН: 02508201610067 [09:04:59]line Контрольно-Кассовый Чек [09:04:59]line ПРОДАЖА [09:04:59]line ТРК (МРК, ГНК) : 21 [09:04:59]line Товар: 2710194210 [09:04:59]line ДТ(л)-К-4 [09:04:59]line 23.630 * 76.20 [09:04:59]line = 1800.61 [09:04:59]line НДС 12% НСП 1% [09:04:59]line > о реализуемом товаре [09:04:59]line ОКРУГЛЕНИЕ: -0.61 [09:04:59]line ИТОГО: 1800.00 [09:04:59]line Внесено: 1800.00 [09:04:59]line СДАЧА: 0.00 [09:04:59]line НСП 1% : 15.93 [09:04:59]line НДС 12% : 191.21 [09:04:59]line Наличными: 1800.00 [09:04:59]line Безнал.: 0.00 [09:04:59]line Место: АЗС № 137 "Партнер Нефть" [09:04:59]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [09:04:59]line СНО: Общий режим [09:04:59]line Чек 46 22.09.2024 09:04 [09:04:59]line Смена: 70 ФФД: 1.0 [09:04:59]line ЗНМ: 0300000041 [09:04:59]line РНМ: 0000000000190446 [09:04:59]line Версия ККМ: v1.0 [09:04:59]line ФМ: 0000000002094258 [09:04:59]line ФД: 7648 [09:04:59]line ФПД: 34927324964568 [09:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T090458&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7648&fm=34927324964568&tin=02508201610067®Number=0000000000190446&sum=180000 [09:04:59]OFD Sender: Processing packet 7648 [packets to send 51, broken 50] [09:04:59]ProducePacketName [09:04:59]name=ofd_packets/00007648 [09:04:59]OFD Sender: To server: pG, [09:04:59]CommunicateWithHost lk.salyk.kg:30040 [09:04:59]ConnectInit lk.salyk.kg [09:04:59]written 0, free lines is 4095 [09:05:00]Write to MH i2c: 01 00 00 5C 00 5C [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F0 0C 5F [09:05:00]RasterBufferAndPrint [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]written 0, free lines is 3318 [09:05:00]MH_Cut [09:05:00]Write to MH i2c: D1 01 00 63 00 01 35 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 01 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 01 00 63 00 00 34 [09:05:00]Write to MH i2c: 01 00 00 64 00 64 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** Cut start [09:05:00]*** Purtial cut [09:05:00]*** Stage 1: CUTSNS_PIN = 1 [09:05:01]Read from MH i2c: 01 [09:05:01]MH_I2C_Read... [09:05:01]*** Stop cut motor [09:05:01]*** Cut end [09:05:01]Read from MH i2c: 01 07 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [09:05:01]process_action close_receipt done [09:05:01]requested_data is exist [09:05:01]produce_requested_data [09:05:01]requested_item fm.sn is exist - process it [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 11 00 00 [09:05:01]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 17 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [09:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [09:05:01]wFMCommunicate OK [09:05:01]requested_item fd.num is exist - process it [09:05:01]SAM_PROTO_GetFieldsCounters [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 13 00 00 [09:05:01]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 62 00 [09:05:01]MH_I2C_Read... [09:05:01]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E0 1D 00 00 0E 04 04 00 46 00 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 CD [09:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E0 1D 00 00 0E 04 04 00 46 00 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:05:01]wFMCommunicate OK [09:05:01]SAM_PROTO_GetFieldsCounters done [09:05:01]requested_item shift.num is exist - process it [09:05:01]requested_item shift.opened is exist - process it [09:05:01]req_shift_opened [09:05:01]FM_GetShiftState [09:05:01]SAM_PROTO_GetShiftState [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 13 01 00 [09:05:01]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 0E 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [09:05:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [09:05:01]wFMCommunicate OK [09:05:01]SAM_PROTO_GetShiftState done [09:05:01]FM_GetShiftState done [09:05:01]req_shift_opened done [09:05:01]requested_item shift.open_date is exist - process it [09:05:01]req_shift_open_date [09:05:01]req_shift_open_date done [09:05:01]produce_requested_data done [09:05:01]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7648,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [09:05:01]process_action_free close_receipt [09:05:01]json_value_free [09:05:01]json_value_free done [09:05:01]process_json_proto returns [09:05:01]Send response to host [09:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7648,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [09:05:01]free response buf [09:05:01]execute_script done [09:05:01]execute_script returns [09:05:01]free content buf [09:05:01]Sock 9.Close socket [09:05:01]Sock 9.Thread stoped [09:05:01]Connected sock=10 [09:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D4 5E 08 01 98 E5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 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 BA DD EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E0 1D 00 00 35 04 06 00 1F C4 26 CC 26 D8 3D 2F 3A 7B A7 BA F6 8B [09:05:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 6C 4B 47 00 18 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E0 1D 00 00 F4 03 04 00 7C 88 EF 66 B6 04 01 00 00 92 46 2A A8 62 23 0B 5E [09:05:03]CommunicateWithHost err = 0 [09:05:03]CheckOFDResponse [09:05:03]1017 (14) - 77093643461234 [09:05:03]1041 (16) - 0000000002094258 [09:05:03]1040 (4) - 7648 [09:05:03]1012 (4) - 22.09.2024 03:01 [09:05:03]1206 (1) - 0 [09:05:03]OFD Sender: Remove packet 7648 [09:05:03]ProducePacketName [09:05:03]name=ofd_packets/00007648 [09:05:03]NVStorageDeleteData [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:56]recv_with_timeout no data received [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:42]recv_with_timeout no data received [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:53]recv_with_timeout no data received [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:19]recv_with_timeout no data received [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:29]recv_with_timeout no data received [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:48]recv_with_timeout no data received [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:14]recv_with_timeout no data received [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:44]recv_with_timeout no data received [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]recv_with_timeout no data received [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:37]recv_with_timeout no data received [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:45]recv_with_timeout no data received [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:53]recv_with_timeout no data received [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:33]recv_with_timeout no data received [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:39]accept exits with 8 [09:29:39]New connection [09:29:39]New thread 3067399524 created [09:29:39]Thread 3067542884 joined [09:29:39]Waiting for new connection... [09:29:39] Sock 8.Parse request [09:29:39]Sock 8.Check first char [09:29:39]Sock 8.First char is OK [09:29:39]request: POST /json_proto HTTP/1.0 [09:29:39]Method: POST [09:29:39]URL: /json_proto [09:29:39]Method is POST - this is cgi request [09:29:39]url: /json_proto [09:29:39]query_string will be loaded in cgi processing [09:29:39]execute_cgi json_proto POST (null) [09:29:39]execute_cgi path=json_proto method=POST [09:29:39]POST find Content-Length [09:29:39]Host: 172.17.47.195:8080 [09:29:39]Content-Length: 677 [09:29:39]Content-Type: application/json [09:29:39] [09:29:39]POST finish read [09:29:39]Found Content-Length = 677 [09:29:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:39]execute_script... [09:29: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)871614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:39]POST & json_proto [09:29:39]process_json_proto [09:29:39]json parsed OK: [09:29:39]protocol is kg_v1.0 [09:29:39]action value=close_receipt [09:29:39]process_action close_receipt [09:29:39]cmd_close_receipt [09:29:39]MH_GetDate [09:29:39]Write to MH i2c: F0 00 00 68 00 57 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: F0 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: F0 09 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: F0 09 00 68 00 00 84 E3 EF 66 96 2E 95 66 DB [09:29:39]GetLastDocTimeStamp 1726995898 [09:29:39]current date 1726997380 [09:29:39]FM_GetShiftState [09:29:39]SAM_PROTO_GetShiftState [09:29:39]wFMCommunicate request_size=4 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 13 01 00 [09:29:39]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 0E 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [09:29:39]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [09:29:39]wFMCommunicate OK [09:29:39]SAM_PROTO_GetShiftState done [09:29:39]FM_GetShiftState done [09:29:39]opened in 1726964224 [09:29:39]opened+sec_in_day 1727050624 [09:29:39]quantity*price = 60003 [09:29:39]sum+1 = 60004 [09:29:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 47 22.09.2024 09:29 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7649 ФПД: 194443460642000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T092940&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7649&fm=194443460642000&tin=02508201610067®Number=0000000000190446&sum=60000 [09:29:40]StoreToDocumentArchive [09:29:40]shift 70 fd 7649 [09:29:40]save to /storage/0070/doc_00007649 [09:29:40]save last doc name /storage/0070/doc_00007649 to /storage/kkm_last_doc_name [09:29:40]save OK [09:29:40]Clear old archive folders... [09:29:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:40]tlvbuf is 00C6A720 [09:29:40]SAM_PROTO_ClearQueue [09:29:40]wFMCommunicate request_size=4 [09:29:40]MH_SAM_APDU [09:29:40]CAPDU: 80 09 00 00 [09:29:40]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:40]Read from MH i2c: E2 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: E2 03 00 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:29:40]RAPDU: 90 00 [09:29:40]wFMCommunicate OK [09:29:40]SAM_PROTO_ClearQueue done [09:29:40]KKMCreateOFDPacket [09:29:40]OFDProtocolAddRootSTLVToBuf [09:29:40]FM_MakeSignedData [09:29:40]FM_MakeSignedData [09:29:40]SAM_PROTO_SignData [09:29:40]wFMCommunicate request_size=4 [09:29:40]MH_SAM_APDU [09:29:40]CAPDU: 80 0D 01 02 [09:29:40]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 03 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:29:41]RAPDU: 90 00 [09:29:41]wFMCommunicate OK [09:29:41]wFMCommunicate request_size=255 [09:29:41]MH_SAM_APDU [09:29:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 84 E3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E1 1D 00 00 35 04 06 00 B0 [09:29:41]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 84 E3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E1 1D 00 00 35 04 06 00 B0 00 00 12 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 03 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:29:41]RAPDU: 90 00 [09:29:41]wFMCommunicate OK [09:29:41]wFMCommunicate request_size=10 [09:29:41]MH_SAM_APDU [09:29:41]CAPDU: 80 0D 02 02 05 D8 65 66 84 D0 [09:29:41]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 D8 65 66 84 D0 00 00 F4 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 03 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [09:29:41]RAPDU: 90 00 [09:29:41]wFMCommunicate OK [09:29:41]wFMCommunicate request_size=4 [09:29:41]MH_SAM_APDU [09:29:41]CAPDU: 80 0D 03 02 [09:29:41]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 0B 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 0B 00 7A 00 00 62 E5 3B D0 80 C3 37 7E 90 00 40 [09:29:41]RAPDU: 62 E5 3B D0 80 C3 37 7E 90 00 [09:29:41]wFMCommunicate OK [09:29:41]SAM_PROTO_SignData done [09:29:41]FM_MakeSignedData done [09:29:41]CreateOFDProtocolMessage [09:29:41]wFMCommunicate request_size=4 [09:29:41]MH_SAM_APDU [09:29:41]CAPDU: 80 11 00 00 [09:29:41]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 17 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [09:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [09:29:41]wFMCommunicate OK [09:29:41]CreateOFDProtocolMessage done [09:29:41]OFDSenderStorePacket 7649 [09:29:41]StoreOFDPacket docnum=7649 [09:29:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 C8 86 07 01 BB 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 84 E3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E1 1D 00 00 35 04 06 00 B0 D8 65 66 84 D0 62 E5 3B D0 80 C3 37 7E [09:29:41]CheckFolder [09:29:41]dirname=/storage/ofd_packets [09:29:41]CheckFolder done [09:29:41]ProducePacketName [09:29:41]name=ofd_packets/00007649 [09:29:41]NVStorageSaveData ofd_packets/00007649 [09:29:41]File name is /storage/ofd_packets/00007649 [09:29:41]Write 301 bytes [09:29:41]NVStorageSaveData done [09:29:41]OFDSenderStorePacket done [09:29:41]KKMCreateOFDPacket done [09:29:41]NVStorageSaveData kkm_last_timestamp [09:29:41]File name is /storage/kkm_last_timestamp [09:29:41]Write 4 bytes [09:29:41]NVStorageSaveData done [09:29:41]ExternCall_PrintAddStr [09:29:41]wPrintStart [09:29:41]Write to MH i2c: 01 00 00 7C 00 7C [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 07 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [09:29:41]RasterBufferAndPrint [09:29:41]line Счет N : (1)871614 [09:29:41]line ИНН: 02508201610067 [09:29:41]line Контрольно-Кассовый Чек [09:29:41]line ПРОДАЖА [09:29:41]line ТРК (МРК, ГНК) : 43 [09:29:41]line Товар: 2710124130 [09:29:41]line Аи-92-К-5 [09:29:41]line 8.850 * 67.80 [09:29:41]line = 600.03 [09:29:41]line НДС 12% НСП 1% [09:29:41]line > о реализуемом товаре [09:29:41]line ОКРУГЛЕНИЕ: -0.03 [09:29:41]line ИТОГО: 600.00 [09:29:41]line Внесено: 600.00 [09:29:41]line СДАЧА: 0.00 [09:29:41]line НСП 1% : 5.31 [09:29:41]line НДС 12% : 63.72 [09:29:41]line Наличными: 600.00 [09:29:41]line Безнал.: 0.00 [09:29:41]line Место: АЗС № 137 "Партнер Нефть" [09:29:41]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [09:29:41]line СНО: Общий режим [09:29:41]line Чек 47 22.09.2024 09:29 [09:29:41]line Смена: 70 ФФД: 1.0 [09:29:41]line ЗНМ: 0300000041 [09:29:41]line РНМ: 0000000000190446 [09:29:41]line Версия ККМ: v1.0 [09:29:41]line ФМ: 0000000002094258 [09:29:41]line ФД: 7649 [09:29:41]line ФПД: 194443460642000 [09:29:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T092940&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7649&fm=194443460642000&tin=02508201610067®Number=0000000000190446&sum=60000 [09:29:41]OFD Sender: Processing packet 7649 [packets to send 51, broken 50] [09:29:41]ProducePacketName [09:29:41]name=ofd_packets/00007649 [09:29:41]OFD Sender: To server: pG, [09:29:41]CommunicateWithHost lk.salyk.kg:30040 [09:29:41]ConnectInit lk.salyk.kg [09:29:41]written 0, free lines is 4095 [09:29:42]Write to MH i2c: 01 00 00 A7 00 A7 [09:29:42]Write i2c OK [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: 01 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: 01 07 00 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 EF 0C A9 [09:29:42]RasterBufferAndPrint [09:29:42]line [09:29:42]line [09:29:42]line [09:29:42]line [09:29:42]line [09:29:42]written 0, free lines is 3317 [09:29:42]MH_Cut [09:29:42]Write to MH i2c: D1 01 00 AE 00 01 80 [09:29:42]Write i2c OK [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: D1 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: D1 01 00 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: D1 01 00 AE 00 00 7F [09:29:42]Write to MH i2c: 01 00 00 AF 00 AF [09:29:42]Write i2c OK [09:29:42]MH_I2C_Read... [09:29:42]*** Cut start [09:29:42]*** Purtial cut [09:29:42]*** Stage 1: CUTSNS_PIN = 1 [09:29:42]Connected sock=10 [09:29:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 C8 86 07 01 BB 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 84 E3 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E1 1D 00 00 35 04 06 00 B0 D8 65 66 84 D0 62 E5 3B D0 80 C3 37 7E [09:29:43]Read from MH i2c: 01 [09:29:43]MH_I2C_Read... [09:29:43]*** Stop cut motor [09:29:43]*** Cut end [09:29:43]Read from MH i2c: 01 07 00 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [09:29:43]process_action close_receipt done [09:29:43]requested_data is exist [09:29:43]produce_requested_data [09:29:43]requested_item fm.sn is exist - process it [09:29:43]wFMCommunicate request_size=4 [09:29:43]MH_SAM_APDU [09:29:43]CAPDU: 80 11 00 00 [09:29:43]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [09:29:43]Write i2c OK [09:29:43]MH_I2C_Read... [09:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:43]Read from MH i2c: E2 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: E2 17 00 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [09:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [09:29:43]wFMCommunicate OK [09:29:43]requested_item fd.num is exist - process it [09:29:43]SAM_PROTO_GetFieldsCounters [09:29:43]wFMCommunicate request_size=4 [09:29:43]MH_SAM_APDU [09:29:43]CAPDU: 80 13 00 00 [09:29:43]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [09:29:43]Write i2c OK [09:29:43]MH_I2C_Read... [09:29:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:43]Read from MH i2c: E2 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: E2 62 00 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E1 1D 00 00 0E 04 04 00 46 00 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 1C [09:29:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E1 1D 00 00 0E 04 04 00 46 00 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:29:43]wFMCommunicate OK [09:29:43]SAM_PROTO_GetFieldsCounters done [09:29:43]requested_item shift.num is exist - process it [09:29:43]requested_item shift.opened is exist - process it [09:29:43]req_shift_opened [09:29:43]FM_GetShiftState [09:29:43]SAM_PROTO_GetShiftState [09:29:43]wFMCommunicate request_size=4 [09:29:43]MH_SAM_APDU [09:29:43]CAPDU: 80 13 01 00 [09:29:43]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:29:43]Write i2c OK [09:29:43]MH_I2C_Read... [09:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:43]Read from MH i2c: E2 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: E2 0E 00 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F2 [09:29:43]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [09:29:43]wFMCommunicate OK [09:29:43]SAM_PROTO_GetShiftState done [09:29:43]FM_GetShiftState done [09:29:43]req_shift_opened done [09:29:43]requested_item shift.open_date is exist - process it [09:29:43]req_shift_open_date [09:29:43]req_shift_open_date done [09:29:43]produce_requested_data done [09:29:43]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7649,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [09:29:43]process_action_free close_receipt [09:29:43]json_value_free [09:29:43]json_value_free done [09:29:43]process_json_proto returns [09:29:43]Send response to host [09:29:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7649,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [09:29:43]free response buf [09:29:43]execute_script done [09:29:43]execute_script returns [09:29:43]free content buf [09:29:43]Sock 8.Close socket [09:29:43]Sock 8.Thread stoped [09:29:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 DA 5D 47 00 EB 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 32 30 39 34 32 35 38 10 04 04 00 E1 1D 00 00 F4 03 04 00 45 8E EF 66 B6 04 01 00 00 42 BC 71 3E 8B 86 3D 3D [09:29:44]CommunicateWithHost err = 0 [09:29:44]CheckOFDResponse [09:29:44]1017 (14) - 77093643461234 [09:29:44]1041 (16) - 0000000002094258 [09:29:44]1040 (4) - 7649 [09:29:44]1012 (4) - 22.09.2024 03:25 [09:29:44]1206 (1) - 0 [09:29:44]OFD Sender: Remove packet 7649 [09:29:44]ProducePacketName [09:29:44]name=ofd_packets/00007649 [09:29:44]NVStorageDeleteData [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:58]recv_with_timeout no data received [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:13]recv_with_timeout no data received [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [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: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:44]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: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:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [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: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: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:30]OFD Sender: No OFD packet to send [09:34:34]recv_with_timeout no data received [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:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:33]recv_with_timeout no data received [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:51]recv_with_timeout no data received [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:39:57]recv_with_timeout no data received [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:31]recv_with_timeout no data received [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:08]recv_with_timeout no data received [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:07]recv_with_timeout no data received [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]recv_with_timeout no data received [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:17]recv_with_timeout no data received [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:29]recv_with_timeout no data received [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:42]recv_with_timeout no data received [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:24]recv_with_timeout no data received [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:40]recv_with_timeout no data received [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [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:52]recv_with_timeout no data received [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [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: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:37]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: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:29]recv_with_timeout no data received [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5946579+1721052822=1726999401 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 6A EB EF 66 96 2E 95 66 68 [10:03:22]Current date/time: 22.09.2024 10:03 [10:03:22]FM_Init [10:03:22]wFMConnect [10:03:22]MH_SAM_On [10:03:22]Write to MH i2c: E0 00 00 08 00 E7 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_init finished! [10:03:22]*** atr: [10:03:22]*** 0F 3B D5 18 FF 81 91 FE [10:03:22]*** 1F C3 80 73 C8 21 10 0A [10:03:22]*** 00 00 00 00 00 00 00 00 [10:03:22]*** 00 00 00 00 00 00 00 00 [10:03:22]*** 00 00 00 00 00 00 00 00 [10:03:22]*** 00 00 00 00 00 00 00 00 [10:03:22]*** 00 00 00 00 00 00 00 00 [10:03:22]*** 00 00 00 00 00 00 00 00 [10:03:22]Read from MH i2c: E0 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E0 10 00 [10:03:22]MH_I2C_Read... [10:03:22]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 [10:03:22]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:03:22]wFMCommunicate request_size=10 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:03:22]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 03 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:03:22]RAPDU: 90 00 [10:03:22]wFMCommunicate OK [10:03:22]wFMCommunicate request_size=4 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 11 00 00 [10:03:22]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 17 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [10:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:03:22]wFMCommunicate OK [10:03:22]Detected FM SN is 0000000002094258 [10:03:22]Stored FM SN is 0000000002094258 [10:03:22]wFMCommunicate request_size=9 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 16 00 00 04 BC C2 00 00 [10:03:22]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 03 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:03:22]RAPDU: 90 00 [10:03:22]wFMCommunicate OK [10:03:22]FM PIN OK [10:03:22]wFMCommunicate request_size=8 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 14 04 00 03 02 00 01 [10:03:22]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 03 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:03:22]RAPDU: 90 00 [10:03:22]wFMCommunicate OK [10:03:22]wFMCommunicate request_size=13 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:03:22]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 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 03 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:03:22]RAPDU: 90 00 [10:03:22]wFMCommunicate OK [10:03:22]wFMCommunicate request_size=4 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 11 00 00 [10:03:22]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 17 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [10:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:03:22]wFMCommunicate OK [10:03:22]DocumentArchiveInit [10:03:22]Start Httpd... [10:03:22]Httpd thread 3067919716 created [10:03:22]Write to MH i2c: 01 00 00 0F 00 0F [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 07 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:03:22]MH Int Process started [10:03:22]Allocated Socket 7 [10:03:22]Bind OK [10:03:22]Listen OK [10:03:22]httpd running on port 8080 [10:03:22]Waiting for new connection... [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]recv_with_timeout no data received [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:01]accept exits with 8 [10:05:01]New connection [10:05:01]New thread 3067632996 created [10:05:01]Waiting for new connection... [10:05:01] Sock 8.Parse request [10:05:01]Sock 8.Check first char [10:05:01]Sock 8.First char is OK [10:05:01]request: POST /json_proto HTTP/1.0 [10:05:01]Method: POST [10:05:01]URL: /json_proto [10:05:01]Method is POST - this is cgi request [10:05:01]url: /json_proto [10:05:01]query_string will be loaded in cgi processing [10:05:01]execute_cgi json_proto POST (null) [10:05:01]execute_cgi path=json_proto method=POST [10:05:01]POST find Content-Length [10:05:01]Host: 172.17.47.195:8080 [10:05:01]Content-Length: 677 [10:05:01]Content-Type: application/json [10:05:01] [10:05:01]POST finish read [10:05:01]Found Content-Length = 677 [10:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:01]execute_script... [10:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:01]POST & json_proto [10:05:01]process_json_proto [10:05:01]json parsed OK: [10:05:01]protocol is kg_v1.0 [10:05:01]action value=close_receipt [10:05:01]process_action close_receipt [10:05:01]cmd_close_receipt [10:05:01]MH_GetDate [10:05:01]Write to MH i2c: F0 00 00 10 00 FF [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: F0 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: F0 09 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: F0 09 00 10 00 00 CD EB EF 66 96 2E 95 66 D4 [10:05:01]GetLastDocTimeStamp 1726997380 [10:05:01]current date 1726999501 [10:05:01]FM_GetShiftState [10:05:01]SAM_PROTO_GetShiftState [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 13 01 00 [10:05:01]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0E 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 51 [10:05:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_GetShiftState done [10:05:01]FM_GetShiftState done [10:05:01]opened in 1726964224 [10:05:01]opened+sec_in_day 1727050624 [10:05:01]quantity*price = 60003 [10:05:01]sum+1 = 60004 [10:05:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 48 22.09.2024 10:05 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7650 ФПД: 98908112652125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100501&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7650&fm=98908112652125&tin=02508201610067®Number=0000000000190446&sum=60000 [10:05:02]StoreToDocumentArchive [10:05:02]shift 70 fd 7650 [10:05:02]save to /storage/0070/doc_00007650 [10:05:02]save last doc name /storage/0070/doc_00007650 to /storage/kkm_last_doc_name [10:05:02]save OK [10:05:02]Clear old archive folders... [10:05:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:02]tlvbuf is 0175A790 [10:05:02]SAM_PROTO_ClearQueue [10:05:02]wFMCommunicate request_size=4 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 09 00 00 [10:05:02]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 03 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [10:05:02]RAPDU: 90 00 [10:05:02]wFMCommunicate OK [10:05:02]SAM_PROTO_ClearQueue done [10:05:02]KKMCreateOFDPacket [10:05:02]OFDProtocolAddRootSTLVToBuf [10:05:02]FM_MakeSignedData [10:05:02]FM_MakeSignedData [10:05:02]SAM_PROTO_SignData [10:05:02]wFMCommunicate request_size=4 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 0D 01 02 [10:05:02]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 03 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [10:05:02]RAPDU: 90 00 [10:05:02]wFMCommunicate OK [10:05:02]wFMCommunicate request_size=255 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD EB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E2 1D 00 00 35 04 06 00 59 [10:05:02]Write to MH i2c: E2 02 01 20 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD EB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E2 1D 00 00 35 04 06 00 59 00 00 B6 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:02]OFD Sender: No OFD packet to send [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 03 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [10:05:02]RAPDU: 90 00 [10:05:02]wFMCommunicate OK [10:05:02]wFMCommunicate request_size=10 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 0D 02 02 05 F4 D6 EB 87 5D [10:05:02]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 F4 D6 EB 87 5D 00 00 3E [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 03 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [10:05:02]RAPDU: 90 00 [10:05:02]wFMCommunicate OK [10:05:02]wFMCommunicate request_size=4 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 0D 03 02 [10:05:02]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 0B 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 0B 00 22 00 00 D1 53 E2 D0 AD 11 42 C7 90 00 3B [10:05:02]RAPDU: D1 53 E2 D0 AD 11 42 C7 90 00 [10:05:02]wFMCommunicate OK [10:05:02]SAM_PROTO_SignData done [10:05:02]FM_MakeSignedData done [10:05:02]CreateOFDProtocolMessage [10:05:02]wFMCommunicate request_size=4 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 11 00 00 [10:05:02]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 17 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 EE [10:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:05:02]wFMCommunicate OK [10:05:02]CreateOFDProtocolMessage done [10:05:02]OFDSenderStorePacket 7650 [10:05:02]StoreOFDPacket docnum=7650 [10:05:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 5A 35 07 01 FA 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD EB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E2 1D 00 00 35 04 06 00 59 F4 D6 EB 87 5D D1 53 E2 D0 AD 11 42 C7 [10:05:02]CheckFolder [10:05:02]dirname=/storage/ofd_packets [10:05:02]CheckFolder done [10:05:02]ProducePacketName [10:05:02]name=ofd_packets/00007650 [10:05:02]NVStorageSaveData ofd_packets/00007650 [10:05:02]File name is /storage/ofd_packets/00007650 [10:05:02]Write 301 bytes [10:05:02]NVStorageSaveData done [10:05:02]OFDSenderStorePacket done [10:05:02]KKMCreateOFDPacket done [10:05:02]NVStorageSaveData kkm_last_timestamp [10:05:02]File name is /storage/kkm_last_timestamp [10:05:02]Write 4 bytes [10:05:02]NVStorageSaveData done [10:05:02]ExternCall_PrintAddStr [10:05:02]wPrintStart [10:05:02]Write to MH i2c: 01 00 00 24 00 24 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [10:05:02]RasterBufferAndPrint [10:05:02]line Счет N : (1)871622 [10:05:02]line ИНН: 02508201610067 [10:05:02]line Контрольно-Кассовый Чек [10:05:02]line ПРОДАЖА [10:05:02]line ТРК (МРК, ГНК) : 43 [10:05:02]line Товар: 2710124130 [10:05:02]line Аи-92-К-5 [10:05:02]line 8.850 * 67.80 [10:05:02]line = 600.03 [10:05:02]line НДС 12% НСП 1% [10:05:02]line > о реализуемом товаре [10:05:02]line ОКРУГЛЕНИЕ: -0.03 [10:05:02]line ИТОГО: 600.00 [10:05:02]line Внесено: 600.00 [10:05:02]line СДАЧА: 0.00 [10:05:02]line НСП 1% : 5.31 [10:05:02]line НДС 12% : 63.72 [10:05:02]line Наличными: 600.00 [10:05:02]line Безнал.: 0.00 [10:05:02]line Место: АЗС № 137 "Партнер Нефть" [10:05:02]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [10:05:02]line СНО: Общий режим [10:05:02]line Чек 48 22.09.2024 10:05 [10:05:02]line Смена: 70 ФФД: 1.0 [10:05:02]line ЗНМ: 0300000041 [10:05:02]line РНМ: 0000000000190446 [10:05:02]line Версия ККМ: v1.0 [10:05:02]line ФМ: 0000000002094258 [10:05:02]line ФД: 7650 [10:05:02]line ФПД: 98908112652125 [10:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100501&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7650&fm=98908112652125&tin=02508201610067®Number=0000000000190446&sum=60000 [10:05:03]OFD Sender: Processing packet 7650 [packets to send 51, broken 50] [10:05:03]ProducePacketName [10:05:03]name=ofd_packets/00007650 [10:05:03]OFD Sender: To server: pG, [10:05:03]CommunicateWithHost lk.salyk.kg:30040 [10:05:03]ConnectInit lk.salyk.kg [10:05:03]written 0, free lines is 4095 [10:05:03]Write to MH i2c: 01 00 00 4F 00 4F [10:05:03]Write i2c OK [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: 01 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: 01 07 00 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 EF 0C 51 [10:05:03]RasterBufferAndPrint [10:05:03]line [10:05:03]line [10:05:03]line [10:05:03]line [10:05:03]line [10:05:03]written 0, free lines is 3317 [10:05:03]MH_Cut [10:05:03]Write to MH i2c: D1 01 00 56 00 01 28 [10:05:03]Write i2c OK [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: D1 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: D1 01 00 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: D1 01 00 56 00 00 27 [10:05:03]Write to MH i2c: 01 00 00 57 00 57 [10:05:03]Write i2c OK [10:05:03]MH_I2C_Read... [10:05:04]*** Cut start [10:05:04]*** Purtial cut [10:05:04]*** Stage 1: CUTSNS_PIN = 1 [10:05:04]Read from MH i2c: 01 [10:05:04]MH_I2C_Read... [10:05:04]*** Stop cut motor [10:05:04]*** Cut end [10:05:04]Read from MH i2c: 01 07 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [10:05:04]process_action close_receipt done [10:05:04]requested_data is exist [10:05:04]produce_requested_data [10:05:04]requested_item fm.sn is exist - process it [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 11 00 00 [10:05:04]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 17 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 23 [10:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:05:04]wFMCommunicate OK [10:05:04]requested_item fd.num is exist - process it [10:05:04]SAM_PROTO_GetFieldsCounters [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 13 00 00 [10:05:04]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 62 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E2 1D 00 00 0E 04 04 00 46 00 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 C8 [10:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E2 1D 00 00 0E 04 04 00 46 00 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 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetFieldsCounters done [10:05:04]requested_item shift.num is exist - process it [10:05:04]requested_item shift.opened is exist - process it [10:05:04]req_shift_opened [10:05:04]FM_GetShiftState [10:05:04]SAM_PROTO_GetShiftState [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 13 01 00 [10:05:04]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 9A [10:05:04]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetShiftState done [10:05:04]FM_GetShiftState done [10:05:04]req_shift_opened done [10:05:04]requested_item shift.open_date is exist - process it [10:05:04]req_shift_open_date [10:05:04]req_shift_open_date done [10:05:04]produce_requested_data done [10:05:04]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7650,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [10:05:04]process_action_free close_receipt [10:05:04]json_value_free [10:05:04]json_value_free done [10:05:04]process_json_proto returns [10:05:04]Send response to host [10:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7650,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [10:05:04]free response buf [10:05:04]execute_script done [10:05:04]execute_script returns [10:05:04]free content buf [10:05:04]Sock 8.Close socket [10:05:04]Sock 8.Thread stoped [10:05:08]ConnectInit Can't take IP for lk.salyk.kg [10:05:08]CommunicateWithHost connect error [10:05:08]CommunicateWithHost err = -1 [10:05:08]OFD Sender: Server communicate error [10:05:13]OFD Sender: Processing packet 7650 [packets to send 51, broken 50] [10:05:13]ProducePacketName [10:05:13]name=ofd_packets/00007650 [10:05:13]OFD Sender: To server: pG, [10:05:13]CommunicateWithHost lk.salyk.kg:30040 [10:05:13]ConnectInit lk.salyk.kg [10:05:18]ConnectInit Can't take IP for lk.salyk.kg [10:05:18]CommunicateWithHost connect error [10:05:18]CommunicateWithHost err = -1 [10:05:18]OFD Sender: Server communicate error [10:05:23]OFD Sender: Processing packet 7650 [packets to send 51, broken 50] [10:05:23]ProducePacketName [10:05:23]name=ofd_packets/00007650 [10:05:23]OFD Sender: To server: pG, [10:05:23]CommunicateWithHost lk.salyk.kg:30040 [10:05:23]ConnectInit lk.salyk.kg [10:05:28]ConnectInit Can't take IP for lk.salyk.kg [10:05:28]CommunicateWithHost connect error [10:05:28]CommunicateWithHost err = -1 [10:05:28]OFD Sender: Server communicate error [10:05:29]accept exits with 10 [10:05:29]New connection [10:05:29]New thread 3067489636 created [10:05:29]Thread 3067632996 joined [10:05:29]Waiting for new connection... [10:05:29] Sock 10.Parse request [10:05:29]Sock 10.Check first char [10:05:29]Sock 10.First char is OK [10:05:29]request: POST /json_proto HTTP/1.0 [10:05:29]Method: POST [10:05:29]URL: /json_proto [10:05:29]Method is POST - this is cgi request [10:05:29]url: /json_proto [10:05:29]query_string will be loaded in cgi processing [10:05:29]execute_cgi json_proto POST (null) [10:05:29]execute_cgi path=json_proto method=POST [10:05:29]POST find Content-Length [10:05:29]Host: 172.17.47.195:8080 [10:05:29]Content-Length: 682 [10:05:29]Content-Type: application/json [10:05:29] [10:05:29]POST finish read [10:05:29]Found Content-Length = 682 [10:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871623", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:29]execute_script... [10:05:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871623", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:29]POST & json_proto [10:05:29]process_json_proto [10:05:29]json parsed OK: [10:05:29]protocol is kg_v1.0 [10:05:29]action value=close_receipt [10:05:29]process_action close_receipt [10:05:29]cmd_close_receipt [10:05:29]MH_GetDate [10:05:29]Write to MH i2c: F0 00 00 5B 00 4A [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: F0 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: F0 09 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: F0 09 00 5B 00 00 E9 EB EF 66 96 2E 95 66 3B [10:05:29]GetLastDocTimeStamp 1726999501 [10:05:29]current date 1726999529 [10:05:29]FM_GetShiftState [10:05:29]SAM_PROTO_GetShiftState [10:05:29]wFMCommunicate request_size=4 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 13 01 00 [10:05:29]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 0E 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 9C [10:05:29]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:05:29]wFMCommunicate OK [10:05:29]SAM_PROTO_GetShiftState done [10:05:29]FM_GetShiftState done [10:05:29]opened in 1726964224 [10:05:29]opened+sec_in_day 1727050624 [10:05:29]quantity*price = 100005 [10:05:29]sum+1 = 100006 [10:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 49 22.09.2024 10:05 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7651 ФПД: 98945478903083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100529&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7651&fm=98945478903083&tin=02508201610067®Number=0000000000190446&sum=100000 [10:05:30]StoreToDocumentArchive [10:05:30]shift 70 fd 7651 [10:05:30]save to /storage/0070/doc_00007651 [10:05:30]save last doc name /storage/0070/doc_00007651 to /storage/kkm_last_doc_name [10:05:30]save OK [10:05:30]Clear old archive folders... [10:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:30]tlvbuf is 017757B0 [10:05:30]SAM_PROTO_ClearQueue [10:05:30]wFMCommunicate request_size=4 [10:05:30]MH_SAM_APDU [10:05:30]CAPDU: 80 09 00 00 [10:05:30]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 03 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [10:05:30]RAPDU: 90 00 [10:05:30]wFMCommunicate OK [10:05:30]SAM_PROTO_ClearQueue done [10:05:30]KKMCreateOFDPacket [10:05:30]OFDProtocolAddRootSTLVToBuf [10:05:30]FM_MakeSignedData [10:05:30]FM_MakeSignedData [10:05:30]SAM_PROTO_SignData [10:05:30]wFMCommunicate request_size=4 [10:05:30]MH_SAM_APDU [10:05:30]CAPDU: 80 0D 01 02 [10:05:30]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 03 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [10:05:30]RAPDU: 90 00 [10:05:30]wFMCommunicate OK [10:05:30]wFMCommunicate request_size=255 [10:05:30]MH_SAM_APDU [10:05: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E9 EB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E3 1D 00 00 35 04 06 00 59 [10:05:30]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E9 EB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E3 1D 00 00 35 04 06 00 59 00 00 E7 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 03 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [10:05:30]RAPDU: 90 00 [10:05:30]wFMCommunicate OK [10:05:30]wFMCommunicate request_size=10 [10:05:30]MH_SAM_APDU [10:05:30]CAPDU: 80 0D 02 02 05 FD 8A 1F 45 2B [10:05:30]Write to MH i2c: E2 0D 00 6C 00 80 0D 02 02 05 00 FD 8A 1F 45 2B 00 00 06 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 03 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [10:05:30]RAPDU: 90 00 [10:05:30]wFMCommunicate OK [10:05:30]wFMCommunicate request_size=4 [10:05:30]MH_SAM_APDU [10:05:30]CAPDU: 80 0D 03 02 [10:05:30]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 0B 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 0B 00 6D 00 00 2C 7D 8D 38 1B 8C 92 4B 90 00 DB [10:05:30]RAPDU: 2C 7D 8D 38 1B 8C 92 4B 90 00 [10:05:30]wFMCommunicate OK [10:05:30]SAM_PROTO_SignData done [10:05:30]FM_MakeSignedData done [10:05:30]CreateOFDProtocolMessage [10:05:30]wFMCommunicate request_size=4 [10:05:30]MH_SAM_APDU [10:05:30]CAPDU: 80 11 00 00 [10:05:30]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 17 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 39 [10:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:05:30]wFMCommunicate OK [10:05:30]CreateOFDProtocolMessage done [10:05:30]OFDSenderStorePacket 7651 [10:05:30]StoreOFDPacket docnum=7651 [10:05:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 2B 2B 07 01 48 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E9 EB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E3 1D 00 00 35 04 06 00 59 FD 8A 1F 45 2B 2C 7D 8D 38 1B 8C 92 4B [10:05:30]CheckFolder [10:05:30]dirname=/storage/ofd_packets [10:05:30]CheckFolder done [10:05:30]ProducePacketName [10:05:30]name=ofd_packets/00007651 [10:05:30]NVStorageSaveData ofd_packets/00007651 [10:05:30]File name is /storage/ofd_packets/00007651 [10:05:30]Write 301 bytes [10:05:30]NVStorageSaveData done [10:05:30]OFDSenderStorePacket done [10:05:30]KKMCreateOFDPacket done [10:05:30]NVStorageSaveData kkm_last_timestamp [10:05:30]File name is /storage/kkm_last_timestamp [10:05:30]Write 4 bytes [10:05:30]NVStorageSaveData done [10:05:30]ExternCall_PrintAddStr [10:05:30]wPrintStart [10:05:30]Write to MH i2c: 01 00 00 6F 00 6F [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: 01 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: 01 07 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [10:05:30]RasterBufferAndPrint [10:05:30]line Счет N : (1)871623 [10:05:30]line ИНН: 02508201610067 [10:05:30]line Контрольно-Кассовый Чек [10:05:30]line ПРОДАЖА [10:05:30]line ТРК (МРК, ГНК) : 53 [10:05:30]line Товар: 2710124130 [10:05:30]line Аи-92-К-5 [10:05:30]line 14.750 * 67.80 [10:05:30]line = 1000.05 [10:05:30]line НДС 12% НСП 1% [10:05:30]line > о реализуемом товаре [10:05:30]line ОКРУГЛЕНИЕ: -0.05 [10:05:30]line ИТОГО: 1000.00 [10:05:30]line Внесено: 1000.00 [10:05:30]line СДАЧА: 0.00 [10:05:30]line НСП 1% : 8.85 [10:05:30]line НДС 12% : 106.20 [10:05:30]line Наличными: 1000.00 [10:05:30]line Безнал.: 0.00 [10:05:30]line Место: АЗС № 137 "Партнер Нефть" [10:05:30]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [10:05:30]line СНО: Общий режим [10:05:30]line Чек 49 22.09.2024 10:05 [10:05:30]line Смена: 70 ФФД: 1.0 [10:05:30]line ЗНМ: 0300000041 [10:05:30]line РНМ: 0000000000190446 [10:05:30]line Версия ККМ: v1.0 [10:05:30]line ФМ: 0000000002094258 [10:05:30]line ФД: 7651 [10:05:30]line ФПД: 98945478903083 [10:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100529&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7651&fm=98945478903083&tin=02508201610067®Number=0000000000190446&sum=100000 [10:05:30]written 0, free lines is 4095 [10:05:30]OFD Sender: Processing packet 7650 [packets to send 52, broken 50] [10:05:30]ProducePacketName [10:05:30]name=ofd_packets/00007650 [10:05:30]OFD Sender: To server: pG, [10:05:30]CommunicateWithHost lk.salyk.kg:30040 [10:05:30]ConnectInit lk.salyk.kg [10:05:31]Write to MH i2c: 01 00 00 9A 00 9A [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 F6 0C A3 [10:05:31]RasterBufferAndPrint [10:05:31]line [10:05:31]line [10:05:31]line [10:05:31]line [10:05:31]line [10:05:31]written 0, free lines is 3330 [10:05:31]MH_Cut [10:05:31]Write to MH i2c: D1 01 00 A1 00 01 73 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: D1 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: D1 01 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: D1 01 00 A1 00 00 72 [10:05:31]Write to MH i2c: 01 00 00 A2 00 A2 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]*** Cut start [10:05:31]*** Purtial cut [10:05:31]*** Stage 1: CUTSNS_PIN = 1 [10:05:32]Read from MH i2c: 01 [10:05:32]MH_I2C_Read... [10:05:32]*** Stop cut motor [10:05:32]*** Cut end [10:05:32]Read from MH i2c: 01 07 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [10:05:32]process_action close_receipt done [10:05:32]requested_data is exist [10:05:32]produce_requested_data [10:05:32]requested_item fm.sn is exist - process it [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 11 00 00 [10:05:32]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 17 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 6E [10:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:05:32]wFMCommunicate OK [10:05:32]requested_item fd.num is exist - process it [10:05:32]SAM_PROTO_GetFieldsCounters [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 13 00 00 [10:05:32]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 62 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E3 1D 00 00 0E 04 04 00 46 00 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 17 [10:05:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E3 1D 00 00 0E 04 04 00 46 00 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 [10:05:32]wFMCommunicate OK [10:05:32]SAM_PROTO_GetFieldsCounters done [10:05:32]requested_item shift.num is exist - process it [10:05:32]requested_item shift.opened is exist - process it [10:05:32]req_shift_opened [10:05:32]FM_GetShiftState [10:05:32]SAM_PROTO_GetShiftState [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 13 01 00 [10:05:32]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 0E 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E5 [10:05:32]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:05:32]wFMCommunicate OK [10:05:32]SAM_PROTO_GetShiftState done [10:05:32]FM_GetShiftState done [10:05:32]req_shift_opened done [10:05:32]requested_item shift.open_date is exist - process it [10:05:32]req_shift_open_date [10:05:32]req_shift_open_date done [10:05:32]produce_requested_data done [10:05:32]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7651,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [10:05:32]process_action_free close_receipt [10:05:32]json_value_free [10:05:32]json_value_free done [10:05:32]process_json_proto returns [10:05:32]Send response to host [10:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7651,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [10:05:32]free response buf [10:05:32]execute_script done [10:05:32]execute_script returns [10:05:32]free content buf [10:05:32]Sock 10.Close socket [10:05:32]Sock 10.Thread stoped [10:05:35]ConnectInit Can't take IP for lk.salyk.kg [10:05:35]CommunicateWithHost connect error [10:05:35]CommunicateWithHost err = -1 [10:05:35]OFD Sender: Server communicate error [10:05:40]OFD Sender: Processing packet 7650 [packets to send 52, broken 50] [10:05:40]ProducePacketName [10:05:40]name=ofd_packets/00007650 [10:05:40]OFD Sender: To server: pG, [10:05:40]CommunicateWithHost lk.salyk.kg:30040 [10:05:40]ConnectInit lk.salyk.kg [10:05:45]ConnectInit Can't take IP for lk.salyk.kg [10:05:45]CommunicateWithHost connect error [10:05:45]CommunicateWithHost err = -1 [10:05:45]OFD Sender: Server communicate error [10:05:50]OFD Sender: Processing packet 7650 [packets to send 52, broken 50] [10:05:50]ProducePacketName [10:05:50]name=ofd_packets/00007650 [10:05:50]OFD Sender: To server: pG, [10:05:50]CommunicateWithHost lk.salyk.kg:30040 [10:05:50]ConnectInit lk.salyk.kg [10:05:55]ConnectInit Can't take IP for lk.salyk.kg [10:05:55]CommunicateWithHost connect error [10:05:55]CommunicateWithHost err = -1 [10:05:55]OFD Sender: Server communicate error [10:06:00]OFD Sender: Processing packet 7650 [packets to send 52, broken 50] [10:06:00]ProducePacketName [10:06:00]name=ofd_packets/00007650 [10:06:00]OFD Sender: To server: pG, [10:06:00]CommunicateWithHost lk.salyk.kg:30040 [10:06:00]ConnectInit lk.salyk.kg [10:06:06]Connected sock=10 [10:06:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 5A 35 07 01 FA 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD EB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E2 1D 00 00 35 04 06 00 59 F4 D6 EB 87 5D D1 53 E2 D0 AD 11 42 C7 [10:06:09]accept exits with 8 [10:06:09]New connection [10:06:09]New thread 3067632996 created [10:06:09]Thread 3067489636 joined [10:06:09]Waiting for new connection... [10:06:09] Sock 8.Parse request [10:06:09]Sock 8.Check first char [10:06:09]Sock 8.First char is OK [10:06:09]request: POST /json_proto HTTP/1.0 [10:06:09]Method: POST [10:06:09]URL: /json_proto [10:06:09]Method is POST - this is cgi request [10:06:09]url: /json_proto [10:06:09]query_string will be loaded in cgi processing [10:06:09]execute_cgi json_proto POST (null) [10:06:09]execute_cgi path=json_proto method=POST [10:06:09]POST find Content-Length [10:06:09]Host: 172.17.47.195:8080 [10:06:09]Content-Length: 677 [10:06:09]Content-Type: application/json [10:06:09] [10:06:09]POST finish read [10:06:09]Found Content-Length = 677 [10:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871624", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:09]execute_script... [10:06: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)871624", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:09]POST & json_proto [10:06:09]process_json_proto [10:06:09]json parsed OK: [10:06:09]protocol is kg_v1.0 [10:06:09]action value=close_receipt [10:06:09]process_action close_receipt [10:06:09]cmd_close_receipt [10:06:09]MH_GetDate [10:06:09]Write to MH i2c: F0 00 00 A6 00 95 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: F0 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: F0 09 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: F0 09 00 A6 00 00 12 EC EF 66 96 2E 95 66 B0 [10:06:09]GetLastDocTimeStamp 1726999529 [10:06:09]current date 1726999570 [10:06:09]FM_GetShiftState [10:06:09]SAM_PROTO_GetShiftState [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 13 01 00 [10:06:09]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 0E 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E7 [10:06:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:06:09]wFMCommunicate OK [10:06:09]SAM_PROTO_GetShiftState done [10:06:09]FM_GetShiftState done [10:06:09]opened in 1726964224 [10:06:09]opened+sec_in_day 1727050624 [10:06:09]quantity*price = 50036 [10:06:09]sum+1 = 50037 [10:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 50 22.09.2024 10:06 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7652 ФПД: 26375325160857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100610&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7652&fm=26375325160857&tin=02508201610067®Number=0000000000190446&sum=50000 [10:06:10]StoreToDocumentArchive [10:06:10]shift 70 fd 7652 [10:06:10]save to /storage/0070/doc_00007652 [10:06:10]save last doc name /storage/0070/doc_00007652 to /storage/kkm_last_doc_name [10:06:10]save OK [10:06:10]Clear old archive folders... [10:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:10]tlvbuf is 01797910 [10:06:10]SAM_PROTO_ClearQueue [10:06:10]wFMCommunicate request_size=4 [10:06:10]MH_SAM_APDU [10:06:10]CAPDU: 80 09 00 00 [10:06:10]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:10]Read from MH i2c: E2 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [10:06:10]RAPDU: 90 00 [10:06:10]wFMCommunicate OK [10:06:10]SAM_PROTO_ClearQueue done [10:06:10]KKMCreateOFDPacket [10:06:10]OFDProtocolAddRootSTLVToBuf [10:06:10]FM_MakeSignedData [10:06:10]FM_MakeSignedData [10:06:10]SAM_PROTO_SignData [10:06:10]wFMCommunicate request_size=4 [10:06:10]MH_SAM_APDU [10:06:10]CAPDU: 80 0D 01 02 [10:06:10]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:10]Read from MH i2c: E2 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [10:06:10]RAPDU: 90 00 [10:06:10]wFMCommunicate OK [10:06:10]wFMCommunicate request_size=255 [10:06:10]MH_SAM_APDU [10:06:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 12 EC EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E4 1D 00 00 35 04 06 00 17 [10:06:10]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 12 EC EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E4 1D 00 00 35 04 06 00 17 00 00 8D [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 03 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [10:06:11]RAPDU: 90 00 [10:06:11]wFMCommunicate OK [10:06:11]wFMCommunicate request_size=10 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 0D 02 02 05 FC FB E3 15 99 [10:06:11]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 FC FB E3 15 99 00 00 C3 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 03 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [10:06:11]RAPDU: 90 00 [10:06:11]wFMCommunicate OK [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 0D 03 02 [10:06:11]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 0B 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 0B 00 B8 00 00 29 BD 48 F6 66 38 DB 2D 90 00 FE [10:06:11]RAPDU: 29 BD 48 F6 66 38 DB 2D 90 00 [10:06:11]wFMCommunicate OK [10:06:11]SAM_PROTO_SignData done [10:06:11]FM_MakeSignedData done [10:06:11]CreateOFDProtocolMessage [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 11 00 00 [10:06:11]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 17 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 84 [10:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:06:11]wFMCommunicate OK [10:06:11]CreateOFDProtocolMessage done [10:06:11]OFDSenderStorePacket 7652 [10:06:11]StoreOFDPacket docnum=7652 [10:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 79 08 07 01 D4 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 12 EC EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E4 1D 00 00 35 04 06 00 17 FC FB E3 15 99 29 BD 48 F6 66 38 DB 2D [10:06:11]CheckFolder [10:06:11]dirname=/storage/ofd_packets [10:06:11]CheckFolder done [10:06:11]ProducePacketName [10:06:11]name=ofd_packets/00007652 [10:06:11]NVStorageSaveData ofd_packets/00007652 [10:06:11]File name is /storage/ofd_packets/00007652 [10:06:11]Write 301 bytes [10:06:11]NVStorageSaveData done [10:06:11]OFDSenderStorePacket done [10:06:11]KKMCreateOFDPacket done [10:06:11]NVStorageSaveData kkm_last_timestamp [10:06:11]File name is /storage/kkm_last_timestamp [10:06:11]Write 4 bytes [10:06:11]NVStorageSaveData done [10:06:11]ExternCall_PrintAddStr [10:06:11]wPrintStart [10:06:11]Write to MH i2c: 01 00 00 BA 00 BA [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: 01 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: 01 07 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [10:06:11]RasterBufferAndPrint [10:06:11]line Счет N : (1)871624 [10:06:11]line ИНН: 02508201610067 [10:06:11]line Контрольно-Кассовый Чек [10:06:11]line ПРОДАЖА [10:06:11]line ТРК (МРК, ГНК) : 63 [10:06:11]line Товар: 2710124130 [10:06:11]line Аи-92-К-5 [10:06:11]line 7.380 * 67.80 [10:06:11]line = 500.36 [10:06:11]line НДС 12% НСП 1% [10:06:11]line > о реализуемом товаре [10:06:11]line ОКРУГЛЕНИЕ: -0.36 [10:06:11]line ИТОГО: 500.00 [10:06:11]line Внесено: 500.00 [10:06:11]line СДАЧА: 0.00 [10:06:11]line НСП 1% : 4.43 [10:06:11]line НДС 12% : 53.14 [10:06:11]line Наличными: 500.00 [10:06:11]line Безнал.: 0.00 [10:06:11]line Место: АЗС № 137 "Партнер Нефть" [10:06:11]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [10:06:11]line СНО: Общий режим [10:06:11]line Чек 50 22.09.2024 10:06 [10:06:11]line Смена: 70 ФФД: 1.0 [10:06:11]line ЗНМ: 0300000041 [10:06:11]line РНМ: 0000000000190446 [10:06:11]line Версия ККМ: v1.0 [10:06:11]line ФМ: 0000000002094258 [10:06:11]line ФД: 7652 [10:06:11]line ФПД: 26375325160857 [10:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100610&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7652&fm=26375325160857&tin=02508201610067®Number=0000000000190446&sum=50000 [10:06:11]written 0, free lines is 4095 [10:06:12]Write to MH i2c: 01 00 00 E5 00 E5 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 07 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 EC 0C E4 [10:06:12]RasterBufferAndPrint [10:06:12]line [10:06:12]line [10:06:12]line [10:06:12]line [10:06:12]line [10:06:12]written 0, free lines is 3332 [10:06:12]MH_Cut [10:06:12]Write to MH i2c: D1 01 00 EC 00 01 BE [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: D1 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: D1 01 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: D1 01 00 EC 00 00 BD [10:06:12]Write to MH i2c: 01 00 00 ED 00 ED [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** Cut start [10:06:12]*** Purtial cut [10:06:12]*** Stage 1: CUTSNS_PIN = 1 [10:06:12]Read from MH i2c: 01 [10:06:12]MH_I2C_Read... [10:06:12]*** Stop cut motor [10:06:12]*** Cut end [10:06:12]Read from MH i2c: 01 07 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [10:06:12]process_action close_receipt done [10:06:12]requested_data is exist [10:06:12]produce_requested_data [10:06:12]requested_item fm.sn is exist - process it [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 11 00 00 [10:06:12]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:13]Read from MH i2c: E2 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 17 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 B9 [10:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:06:13]wFMCommunicate OK [10:06:13]requested_item fd.num is exist - process it [10:06:13]SAM_PROTO_GetFieldsCounters [10:06:13]wFMCommunicate request_size=4 [10:06:13]MH_SAM_APDU [10:06:13]CAPDU: 80 13 00 00 [10:06:13]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:13]Read from MH i2c: E2 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 62 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E4 1D 00 00 0E 04 04 00 46 00 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 66 [10:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E4 1D 00 00 0E 04 04 00 46 00 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 [10:06:13]wFMCommunicate OK [10:06:13]SAM_PROTO_GetFieldsCounters done [10:06:13]requested_item shift.num is exist - process it [10:06:13]requested_item shift.opened is exist - process it [10:06:13]req_shift_opened [10:06:13]FM_GetShiftState [10:06:13]SAM_PROTO_GetShiftState [10:06:13]wFMCommunicate request_size=4 [10:06:13]MH_SAM_APDU [10:06:13]CAPDU: 80 13 01 00 [10:06:13]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:13]Read from MH i2c: E2 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 0E 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 30 [10:06:13]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:06:13]wFMCommunicate OK [10:06:13]SAM_PROTO_GetShiftState done [10:06:13]FM_GetShiftState done [10:06:13]req_shift_opened done [10:06:13]requested_item shift.open_date is exist - process it [10:06:13]req_shift_open_date [10:06:13]req_shift_open_date done [10:06:13]produce_requested_data done [10:06:13]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7652,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [10:06:13]process_action_free close_receipt [10:06:13]json_value_free [10:06:13]json_value_free done [10:06:13]process_json_proto returns [10:06:13]Send response to host [10:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7652,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [10:06:13]free response buf [10:06:13]execute_script done [10:06:13]execute_script returns [10:06:13]free content buf [10:06:13]Sock 8.Close socket [10:06:13]Sock 8.Thread stoped [10:06:14]Connected sock=10 [10:06:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 2B 2B 07 01 48 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E9 EB EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E3 1D 00 00 35 04 06 00 59 FD 8A 1F 45 2B 2C 7D 8D 38 1B 8C 92 4B [10:06:15]ConnectInit Can't connect to host [10:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 57 1F 47 00 24 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 32 30 39 34 32 35 38 10 04 04 00 E3 1D 00 00 F4 03 04 00 D4 96 EF 66 B6 04 01 00 00 02 62 82 2C 6C 52 12 63 [10:06:18]CommunicateWithHost err = 0 [10:06:18]CheckOFDResponse [10:06:18]1017 (14) - 77093643461234 [10:06:18]1041 (16) - 0000000002094258 [10:06:18]1040 (4) - 7651 [10:06:18]1012 (4) - 22.09.2024 04:02 [10:06:18]1206 (1) - 0 [10:06:18]OFD Sender: Remove packet 7651 [10:06:18]ProducePacketName [10:06:18]name=ofd_packets/00007651 [10:06:18]NVStorageDeleteData [10:06:19]OFD Sender: Processing packet 7652 [packets to send 51, broken 50] [10:06:19]ProducePacketName [10:06:19]name=ofd_packets/00007652 [10:06:19]OFD Sender: To server: pG, [10:06:19]CommunicateWithHost lk.salyk.kg:30040 [10:06:19]ConnectInit lk.salyk.kg [10:06:26]recv_with_timeout no data received [10:07:23]recv_with_timeout no data received [10:07:35]recv_with_timeout no data received [10:08:11]accept exits with 11 [10:08:11]New connection [10:08:11]New thread 3067489636 created [10:08:11]Thread 3067632996 joined [10:08:11]Waiting for new connection... [10:08:11] Sock 11.Parse request [10:08:11]Sock 11.Check first char [10:08:11]Sock 11.First char is OK [10:08:11]request: POST /json_proto HTTP/1.0 [10:08:11]Method: POST [10:08:11]URL: /json_proto [10:08:11]Method is POST - this is cgi request [10:08:11]url: /json_proto [10:08:11]query_string will be loaded in cgi processing [10:08:11]execute_cgi json_proto POST (null) [10:08:11]execute_cgi path=json_proto method=POST [10:08:11]POST find Content-Length [10:08:11]Host: 172.17.47.195:8080 [10:08:11]Content-Length: 682 [10:08:11]Content-Type: application/json [10:08:11] [10:08:11]POST finish read [10:08:11]Found Content-Length = 682 [10:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:11]execute_script... [10:08: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)871625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:11]POST & json_proto [10:08:11]process_json_proto [10:08:11]json parsed OK: [10:08:11]protocol is kg_v1.0 [10:08:11]action value=close_receipt [10:08:11]process_action close_receipt [10:08:11]cmd_close_receipt [10:08:11]MH_GetDate [10:08:11]Write to MH i2c: F0 00 00 F1 00 E0 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: F0 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: F0 09 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: F0 09 00 F1 00 00 8C EC EF 66 96 2E 95 66 75 [10:08:11]GetLastDocTimeStamp 1726999570 [10:08:11]current date 1726999692 [10:08:11]FM_GetShiftState [10:08:11]SAM_PROTO_GetShiftState [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 13 01 00 [10:08:11]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 0E 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 32 [10:08:11]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:08:11]wFMCommunicate OK [10:08:11]SAM_PROTO_GetShiftState done [10:08:11]FM_GetShiftState done [10:08:11]opened in 1726964224 [10:08:11]opened+sec_in_day 1727050624 [10:08:11]quantity*price = 50063 [10:08:11]sum+1 = 50064 [10:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 51 22.09.2024 10:08 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7653 ФПД: 43520375485242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100812&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7653&fm=43520375485242&tin=02508201610067®Number=0000000000190446&sum=50000 [10:08:12]StoreToDocumentArchive [10:08:12]shift 70 fd 7653 [10:08:12]save to /storage/0070/doc_00007653 [10:08:12]save last doc name /storage/0070/doc_00007653 to /storage/kkm_last_doc_name [10:08:12]save OK [10:08:12]Clear old archive folders... [10:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:08:12]tlvbuf is 0175AB20 [10:08:12]SAM_PROTO_ClearQueue [10:08:12]wFMCommunicate request_size=4 [10:08:12]MH_SAM_APDU [10:08:12]CAPDU: 80 09 00 00 [10:08:12]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:12]Read from MH i2c: E2 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 03 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [10:08:12]RAPDU: 90 00 [10:08:12]wFMCommunicate OK [10:08:12]SAM_PROTO_ClearQueue done [10:08:12]KKMCreateOFDPacket [10:08:12]OFDProtocolAddRootSTLVToBuf [10:08:12]FM_MakeSignedData [10:08:12]FM_MakeSignedData [10:08:12]SAM_PROTO_SignData [10:08:12]wFMCommunicate request_size=4 [10:08:12]MH_SAM_APDU [10:08:12]CAPDU: 80 0D 01 02 [10:08:12]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:12]Read from MH i2c: E2 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 03 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [10:08:12]RAPDU: 90 00 [10:08:12]wFMCommunicate OK [10:08:12]wFMCommunicate request_size=255 [10:08:12]MH_SAM_APDU [10:08:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 8C EC EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E5 1D 00 00 35 04 06 00 [10:08:12]Write to MH i2c: E2 02 01 01 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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 8C EC EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E5 1D 00 00 35 04 06 00 00 00 B3 [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 03 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [10:08:13]RAPDU: 90 00 [10:08:13]wFMCommunicate OK [10:08:13]wFMCommunicate request_size=11 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 0D 02 02 06 27 94 E0 85 73 3A [10:08:13]Write to MH i2c: E2 0E 00 02 01 80 0D 02 02 06 00 27 94 E0 85 73 3A 00 00 56 [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 03 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [10:08:13]RAPDU: 90 00 [10:08:13]wFMCommunicate OK [10:08:13]wFMCommunicate request_size=4 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 0D 03 02 [10:08:13]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 0B 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 0B 00 03 01 00 A8 DF 7F 94 D9 06 E3 75 90 00 51 [10:08:13]RAPDU: A8 DF 7F 94 D9 06 E3 75 90 00 [10:08:13]wFMCommunicate OK [10:08:13]SAM_PROTO_SignData done [10:08:13]FM_MakeSignedData done [10:08:13]CreateOFDProtocolMessage [10:08:13]wFMCommunicate request_size=4 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 11 00 00 [10:08:13]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 17 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D0 [10:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:08:13]wFMCommunicate OK [10:08:13]CreateOFDProtocolMessage done [10:08:13]OFDSenderStorePacket 7653 [10:08:13]StoreOFDPacket docnum=7653 [10:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 83 C0 08 01 E3 DA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 8C EC EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E5 1D 00 00 35 04 06 00 27 94 E0 85 73 3A A8 DF 7F 94 D9 06 E3 75 [10:08:13]CheckFolder [10:08:13]dirname=/storage/ofd_packets [10:08:13]CheckFolder done [10:08:13]ProducePacketName [10:08:13]name=ofd_packets/00007653 [10:08:13]NVStorageSaveData ofd_packets/00007653 [10:08:13]File name is /storage/ofd_packets/00007653 [10:08:13]Write 302 bytes [10:08:13]NVStorageSaveData done [10:08:13]OFDSenderStorePacket done [10:08:13]KKMCreateOFDPacket done [10:08:13]NVStorageSaveData kkm_last_timestamp [10:08:13]File name is /storage/kkm_last_timestamp [10:08:13]Write 4 bytes [10:08:13]NVStorageSaveData done [10:08:13]ExternCall_PrintAddStr [10:08:13]wPrintStart [10:08:13]Write to MH i2c: 01 00 00 05 01 06 [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: 01 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: 01 07 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [10:08:13]RasterBufferAndPrint [10:08:13]line Счет N : (1)871625 [10:08:13]line ИНН: 02508201610067 [10:08:13]line Контрольно-Кассовый Чек [10:08:13]line ПРОДАЖА [10:08:13]line ТРК (МРК, ГНК) : 44 [10:08:13]line Товар: 2710194210 [10:08:13]line ДТ(л)-К-4 [10:08:13]line 6.570 * 76.20 [10:08:13]line = 500.63 [10:08:13]line НДС 12% НСП 1% [10:08:13]line > о реализуемом товаре [10:08:13]line ОКРУГЛЕНИЕ: -0.63 [10:08:13]line ИТОГО: 500.00 [10:08:13]line Внесено: 500.00 [10:08:13]line СДАЧА: 0.00 [10:08:13]line НСП 1% : 4.43 [10:08:13]line НДС 12% : 53.16 [10:08:13]line Наличными: 500.00 [10:08:13]line Безнал.: 0.00 [10:08:13]line Место: АЗС № 137 "Партнер Нефть" [10:08:13]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [10:08:13]line СНО: Общий режим [10:08:13]line Чек 51 22.09.2024 10:08 [10:08:13]line Смена: 70 ФФД: 1.0 [10:08:13]line ЗНМ: 0300000041 [10:08:13]line РНМ: 0000000000190446 [10:08:13]line Версия ККМ: v1.0 [10:08:13]line ФМ: 0000000002094258 [10:08:13]line ФД: 7653 [10:08:13]line ФПД: 43520375485242 [10:08:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100812&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7653&fm=43520375485242&tin=02508201610067®Number=0000000000190446&sum=50000 [10:08:13]written 0, free lines is 4095 [10:08:14]Write to MH i2c: 01 00 00 30 01 31 [10:08:14]Write i2c OK [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 07 00 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 EA 0C 2E [10:08:14]RasterBufferAndPrint [10:08:14]line [10:08:14]line [10:08:14]line [10:08:14]line [10:08:14]line [10:08:14]written 0, free lines is 3312 [10:08:14]MH_Cut [10:08:14]Write to MH i2c: D1 01 00 37 01 01 0A [10:08:14]Write i2c OK [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: D1 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: D1 01 00 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: D1 01 00 37 01 00 09 [10:08:14]Write to MH i2c: 01 00 00 38 01 39 [10:08:14]Write i2c OK [10:08:14]MH_I2C_Read... [10:08:14]*** Cut start [10:08:14]*** Purtial cut [10:08:14]*** Stage 1: CUTSNS_PIN = 1 [10:08:15]Read from MH i2c: 01 [10:08:15]MH_I2C_Read... [10:08:15]*** Stop cut motor [10:08:15]*** Cut end [10:08:15]Read from MH i2c: 01 07 00 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 FF 0F 4E [10:08:15]process_action close_receipt done [10:08:15]requested_data is exist [10:08:15]produce_requested_data [10:08:15]requested_item fm.sn is exist - process it [10:08:15]wFMCommunicate request_size=4 [10:08:15]MH_SAM_APDU [10:08:15]CAPDU: 80 11 00 00 [10:08:15]Write to MH i2c: E2 08 00 39 01 80 11 00 00 00 00 00 00 B4 [10:08:15]Write i2c OK [10:08:15]MH_I2C_Read... [10:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:15]Read from MH i2c: E2 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 17 00 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 17 00 39 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 05 [10:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:08:15]wFMCommunicate OK [10:08:15]requested_item fd.num is exist - process it [10:08:15]SAM_PROTO_GetFieldsCounters [10:08:15]wFMCommunicate request_size=4 [10:08:15]MH_SAM_APDU [10:08:15]CAPDU: 80 13 00 00 [10:08:15]Write to MH i2c: E2 08 00 3A 01 80 13 00 00 00 00 00 00 B7 [10:08:15]Write i2c OK [10:08:15]MH_I2C_Read... [10:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:15]Read from MH i2c: E2 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 62 00 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 62 00 3A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E5 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [10:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E5 1D 00 00 0E 04 04 00 46 00 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 [10:08:15]wFMCommunicate OK [10:08:15]SAM_PROTO_GetFieldsCounters done [10:08:15]requested_item shift.num is exist - process it [10:08:15]requested_item shift.opened is exist - process it [10:08:15]req_shift_opened [10:08:15]FM_GetShiftState [10:08:15]SAM_PROTO_GetShiftState [10:08:15]wFMCommunicate request_size=4 [10:08:15]MH_SAM_APDU [10:08:15]CAPDU: 80 13 01 00 [10:08:15]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [10:08:15]Write i2c OK [10:08:15]MH_I2C_Read... [10:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:15]Read from MH i2c: E2 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 0E 00 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 7C [10:08:15]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:08:15]wFMCommunicate OK [10:08:15]SAM_PROTO_GetShiftState done [10:08:15]FM_GetShiftState done [10:08:15]req_shift_opened done [10:08:15]requested_item shift.open_date is exist - process it [10:08:15]req_shift_open_date [10:08:15]req_shift_open_date done [10:08:15]produce_requested_data done [10:08:15]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7653,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [10:08:15]process_action_free close_receipt [10:08:15]json_value_free [10:08:15]json_value_free done [10:08:15]process_json_proto returns [10:08:15]Send response to host [10:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7653,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [10:08:15]free response buf [10:08:15]execute_script done [10:08:15]execute_script returns [10:08:15]free content buf [10:08:15]Sock 11.Close socket [10:08:15]Sock 11.Thread stoped [10:08:33]ConnectInit Can't connect to host [10:08:33]CommunicateWithHost connect error [10:08:33]CommunicateWithHost err = -1 [10:08:33]OFD Sender: Server communicate error [10:08:33]OFD Sender: Processing packet 7652 [packets to send 52, broken 50] [10:08:33]ProducePacketName [10:08:33]name=ofd_packets/00007652 [10:08:33]OFD Sender: To server: pG, [10:08:33]CommunicateWithHost lk.salyk.kg:30040 [10:08:33]ConnectInit lk.salyk.kg [10:08:35]Connected sock=8 [10:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 79 08 07 01 D4 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 12 EC EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E4 1D 00 00 35 04 06 00 17 FC FB E3 15 99 29 BD 48 F6 66 38 DB 2D [10:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E3 A2 47 00 BD 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E4 1D 00 00 F4 03 04 00 61 97 EF 66 B6 04 01 00 00 06 CD 70 5F BA FA B4 6E [10:08:36]CommunicateWithHost err = 0 [10:08:36]CheckOFDResponse [10:08:36]1017 (14) - 77093643461234 [10:08:36]1041 (16) - 0000000002094258 [10:08:36]1040 (4) - 7652 [10:08:36]1012 (4) - 22.09.2024 04:04 [10:08:36]1206 (1) - 0 [10:08:36]OFD Sender: Remove packet 7652 [10:08:36]ProducePacketName [10:08:36]name=ofd_packets/00007652 [10:08:36]NVStorageDeleteData [10:08:37]OFD Sender: Processing packet 7653 [packets to send 51, broken 50] [10:08:37]ProducePacketName [10:08:37]name=ofd_packets/00007653 [10:08:37]OFD Sender: To server: pG, [10:08:37]CommunicateWithHost lk.salyk.kg:30040 [10:08:37]ConnectInit lk.salyk.kg [10:08:37]Connected sock=8 [10:08:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 83 C0 08 01 E3 DA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 8C EC EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E5 1D 00 00 35 04 06 00 27 94 E0 85 73 3A A8 DF 7F 94 D9 06 E3 75 [10:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 85 73 47 00 8F 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 32 30 39 34 32 35 38 10 04 04 00 E5 1D 00 00 F4 03 04 00 63 97 EF 66 B6 04 01 00 00 39 DD 55 5A 2B 13 04 70 [10:08:38]CommunicateWithHost err = 0 [10:08:38]CheckOFDResponse [10:08:38]1017 (14) - 77093643461234 [10:08:38]1041 (16) - 0000000002094258 [10:08:38]1040 (4) - 7653 [10:08:38]1012 (4) - 22.09.2024 04:04 [10:08:38]1206 (1) - 0 [10:08:38]OFD Sender: Remove packet 7653 [10:08:38]ProducePacketName [10:08:38]name=ofd_packets/00007653 [10:08:38]NVStorageDeleteData [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:16]recv_with_timeout no data received [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:09]recv_with_timeout no data received [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:42]recv_with_timeout no data received [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:19]recv_with_timeout no data received [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:43]recv_with_timeout no data received [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]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:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:35]recv_with_timeout no data received [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [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]recv_with_timeout no data received [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [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:11]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [10:26:42]recv_with_timeout no data received [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:06]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:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:48]recv_with_timeout no data received [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:28:59]recv_with_timeout no data received [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]recv_with_timeout no data received [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [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: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:16]recv_with_timeout no data received [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [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: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: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]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:54]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [10:34:29]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:10]OFD Sender: No OFD packet to send [10:37:10]recv_with_timeout no data received [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:11]recv_with_timeout no data received [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:14]recv_with_timeout no data received [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:32]recv_with_timeout no data received [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [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: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: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: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:40]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:02]accept exits with 9 [10:46:02]New connection [10:46:02]New thread 3067632996 created [10:46:02]Thread 3067489636 joined [10:46:02]Waiting for new connection... [10:46:02] Sock 9.Parse request [10:46:02]Sock 9.Check first char [10:46:02]Sock 9.First char is OK [10:46:02]request: POST /json_proto HTTP/1.0 [10:46:02]Method: POST [10:46:02]URL: /json_proto [10:46:02]Method is POST - this is cgi request [10:46:02]url: /json_proto [10:46:02]query_string will be loaded in cgi processing [10:46:02]execute_cgi json_proto POST (null) [10:46:02]execute_cgi path=json_proto method=POST [10:46:02]POST find Content-Length [10:46:02]Host: 172.17.47.195:8080 [10:46:02]Content-Length: 682 [10:46:02]Content-Type: application/json [10:46:02] [10:46:02]POST finish read [10:46:02]Found Content-Length = 682 [10:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:02]execute_script... [10:46:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:02]POST & json_proto [10:46:02]process_json_proto [10:46:02]json parsed OK: [10:46:02]protocol is kg_v1.0 [10:46:02]action value=close_receipt [10:46:02]process_action close_receipt [10:46:02]cmd_close_receipt [10:46:02]MH_GetDate [10:46:02]Write to MH i2c: F0 00 00 3C 01 2C [10:46:02]Write i2c OK [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: F0 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: F0 09 00 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: F0 09 00 3C 01 00 6B F5 EF 66 96 2E 95 66 A9 [10:46:02]GetLastDocTimeStamp 1726999692 [10:46:02]current date 1727001963 [10:46:02]FM_GetShiftState [10:46:02]SAM_PROTO_GetShiftState [10:46:02]wFMCommunicate request_size=4 [10:46:02]MH_SAM_APDU [10:46:02]CAPDU: 80 13 01 00 [10:46:02]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [10:46:02]Write i2c OK [10:46:02]MH_I2C_Read... [10:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:02]Read from MH i2c: E2 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 0E 00 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 7E [10:46:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:46:02]wFMCommunicate OK [10:46:02]SAM_PROTO_GetShiftState done [10:46:02]FM_GetShiftState done [10:46:02]opened in 1726964224 [10:46:02]opened+sec_in_day 1727050624 [10:46:02]quantity*price = 60045 [10:46:02]sum+1 = 60047 [10:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 52 22.09.2024 10:46 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7654 ФПД: 269238400282082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104603&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7654&fm=269238400282082&tin=02508201610067®Number=0000000000190446&sum=60000 [10:46:03]StoreToDocumentArchive [10:46:03]shift 70 fd 7654 [10:46:03]save to /storage/0070/doc_00007654 [10:46:03]save last doc name /storage/0070/doc_00007654 to /storage/kkm_last_doc_name [10:46:03]save OK [10:46:03]Clear old archive folders... [10:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:46:03]tlvbuf is 0175A400 [10:46:03]SAM_PROTO_ClearQueue [10:46:03]wFMCommunicate request_size=4 [10:46:03]MH_SAM_APDU [10:46:03]CAPDU: 80 09 00 00 [10:46:03]Write to MH i2c: E2 08 00 4A 01 80 09 00 00 00 00 00 00 BD [10:46:03]Write i2c OK [10:46:03]MH_I2C_Read... [10:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:03]Read from MH i2c: E2 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: E2 03 00 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [10:46:03]RAPDU: 90 00 [10:46:03]wFMCommunicate OK [10:46:03]SAM_PROTO_ClearQueue done [10:46:03]KKMCreateOFDPacket [10:46:03]OFDProtocolAddRootSTLVToBuf [10:46:03]FM_MakeSignedData [10:46:03]FM_MakeSignedData [10:46:03]SAM_PROTO_SignData [10:46:03]wFMCommunicate request_size=4 [10:46:03]MH_SAM_APDU [10:46:03]CAPDU: 80 0D 01 02 [10:46:03]Write to MH i2c: E2 08 00 4B 01 80 0D 01 02 00 00 00 00 C5 [10:46:03]Write i2c OK [10:46:03]MH_I2C_Read... [10:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:03]Read from MH i2c: E2 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: E2 03 00 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [10:46:03]RAPDU: 90 00 [10:46:03]wFMCommunicate OK [10:46:03]wFMCommunicate request_size=255 [10:46:03]MH_SAM_APDU [10:46:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6B F5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E6 1D 00 00 35 04 06 00 [10:46:03]Write to MH i2c: E2 02 01 4C 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 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6B F5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E6 1D 00 00 35 04 06 00 00 00 21 [10:46:03]Write i2c OK [10:46:03]MH_I2C_Read... [10:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:04]Read from MH i2c: E2 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 03 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [10:46:04]RAPDU: 90 00 [10:46:04]wFMCommunicate OK [10:46:04]wFMCommunicate request_size=11 [10:46:04]MH_SAM_APDU [10:46:04]CAPDU: 80 0D 02 02 06 F4 DE F3 35 6D E2 [10:46:04]Write to MH i2c: E2 0E 00 4D 01 80 0D 02 02 06 00 F4 DE F3 35 6D E2 00 00 1D [10:46:04]Write i2c OK [10:46:04]MH_I2C_Read... [10:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:04]Read from MH i2c: E2 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 03 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [10:46:04]RAPDU: 90 00 [10:46:04]wFMCommunicate OK [10:46:04]wFMCommunicate request_size=4 [10:46:04]MH_SAM_APDU [10:46:04]CAPDU: 80 0D 03 02 [10:46:04]Write to MH i2c: E2 08 00 4E 01 80 0D 03 02 00 00 00 00 CA [10:46:04]Write i2c OK [10:46:04]MH_I2C_Read... [10:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:04]Read from MH i2c: E2 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 0B 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 0B 00 4E 01 00 05 9A 00 01 99 FC CB E1 90 00 AC [10:46:04]RAPDU: 05 9A 00 01 99 FC CB E1 90 00 [10:46:04]wFMCommunicate OK [10:46:04]SAM_PROTO_SignData done [10:46:04]FM_MakeSignedData done [10:46:04]CreateOFDProtocolMessage [10:46:04]wFMCommunicate request_size=4 [10:46:04]MH_SAM_APDU [10:46:04]CAPDU: 80 11 00 00 [10:46:04]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [10:46:04]Write i2c OK [10:46:04]MH_I2C_Read... [10:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:04]Read from MH i2c: E2 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 17 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 1B [10:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:46:04]wFMCommunicate OK [10:46:04]CreateOFDProtocolMessage done [10:46:04]OFDSenderStorePacket 7654 [10:46:04]StoreOFDPacket docnum=7654 [10:46:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 59 94 08 01 C7 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6B F5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E6 1D 00 00 35 04 06 00 F4 DE F3 35 6D E2 05 9A 00 01 99 FC CB E1 [10:46:04]CheckFolder [10:46:04]dirname=/storage/ofd_packets [10:46:04]CheckFolder done [10:46:04]ProducePacketName [10:46:04]name=ofd_packets/00007654 [10:46:04]NVStorageSaveData ofd_packets/00007654 [10:46:04]File name is /storage/ofd_packets/00007654 [10:46:04]Write 302 bytes [10:46:04]NVStorageSaveData done [10:46:04]OFDSenderStorePacket done [10:46:04]KKMCreateOFDPacket done [10:46:04]NVStorageSaveData kkm_last_timestamp [10:46:04]File name is /storage/kkm_last_timestamp [10:46:04]Write 4 bytes [10:46:04]NVStorageSaveData done [10:46:04]ExternCall_PrintAddStr [10:46:04]wPrintStart [10:46:04]Write to MH i2c: 01 00 00 50 01 51 [10:46:04]Write i2c OK [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: 01 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: 01 07 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [10:46:04]RasterBufferAndPrint [10:46:04]line Счет N : (1)871650 [10:46:04]line ИНН: 02508201610067 [10:46:04]line Контрольно-Кассовый Чек [10:46:04]line ПРОДАЖА [10:46:04]line ТРК (МРК, ГНК) : 21 [10:46:04]line Товар: 2710194210 [10:46:04]line ДТ(л)-К-4 [10:46:04]line 7.880 * 76.20 [10:46:04]line = 600.46 [10:46:04]line НДС 12% НСП 1% [10:46:04]line > о реализуемом товаре [10:46:04]line ОКРУГЛЕНИЕ: -0.46 [10:46:04]line ИТОГО: 600.00 [10:46:04]line Внесено: 600.00 [10:46:04]line СДАЧА: 0.00 [10:46:04]line НСП 1% : 5.31 [10:46:04]line НДС 12% : 63.77 [10:46:04]line Наличными: 600.00 [10:46:04]line Безнал.: 0.00 [10:46:04]line Место: АЗС № 137 "Партнер Нефть" [10:46:04]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [10:46:04]line СНО: Общий режим [10:46:04]line Чек 52 22.09.2024 10:46 [10:46:04]line Смена: 70 ФФД: 1.0 [10:46:04]line ЗНМ: 0300000041 [10:46:04]line РНМ: 0000000000190446 [10:46:04]line Версия ККМ: v1.0 [10:46:04]line ФМ: 0000000002094258 [10:46:04]line ФД: 7654 [10:46:04]line ФПД: 269238400282082 [10:46:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104603&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7654&fm=269238400282082&tin=02508201610067®Number=0000000000190446&sum=60000 [10:46:04]OFD Sender: Processing packet 7654 [packets to send 51, broken 50] [10:46:04]ProducePacketName [10:46:04]name=ofd_packets/00007654 [10:46:04]OFD Sender: To server: pG, [10:46:04]CommunicateWithHost lk.salyk.kg:30040 [10:46:04]ConnectInit lk.salyk.kg [10:46:04]written 0, free lines is 4095 [10:46:05]Write to MH i2c: 01 00 00 7B 01 7C [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: 01 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: 01 07 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 E8 0C 77 [10:46:05]RasterBufferAndPrint [10:46:05]line [10:46:05]line [10:46:05]line [10:46:05]line [10:46:05]line [10:46:05]written 0, free lines is 3310 [10:46:05]MH_Cut [10:46:05]Write to MH i2c: D1 01 00 82 01 01 55 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: D1 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: D1 01 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: D1 01 00 82 01 00 54 [10:46:05]Write to MH i2c: 01 00 00 83 01 84 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]Connected sock=10 [10:46:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 59 94 08 01 C7 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6B F5 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E6 1D 00 00 35 04 06 00 F4 DE F3 35 6D E2 05 9A 00 01 99 FC CB E1 [10:46:05]*** Cut start [10:46:05]*** Purtial cut [10:46:05]*** Stage 1: CUTSNS_PIN = 1 [10:46:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 DF 38 47 00 C3 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 32 30 39 34 32 35 38 10 04 04 00 E6 1D 00 00 F4 03 04 00 2B A0 EF 66 B6 04 01 00 00 B3 29 94 CF 33 1E AF 6B [10:46:05]CommunicateWithHost err = 0 [10:46:05]CheckOFDResponse [10:46:05]1017 (14) - 77093643461234 [10:46:05]1041 (16) - 0000000002094258 [10:46:05]1040 (4) - 7654 [10:46:05]1012 (4) - 22.09.2024 04:42 [10:46:05]1206 (1) - 0 [10:46:05]OFD Sender: Remove packet 7654 [10:46:05]ProducePacketName [10:46:05]name=ofd_packets/00007654 [10:46:05]NVStorageDeleteData [10:46:06]Read from MH i2c: 01 [10:46:06]MH_I2C_Read... [10:46:06]*** Stop cut motor [10:46:06]*** Cut end [10:46:06]Read from MH i2c: 01 07 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0F 99 [10:46:06]process_action close_receipt done [10:46:06]requested_data is exist [10:46:06]produce_requested_data [10:46:06]requested_item fm.sn is exist - process it [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 11 00 00 [10:46:06]Write to MH i2c: E2 08 00 84 01 80 11 00 00 00 00 00 00 FF [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 17 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 17 00 84 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 50 [10:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:46:06]wFMCommunicate OK [10:46:06]requested_item fd.num is exist - process it [10:46:06]SAM_PROTO_GetFieldsCounters [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 13 00 00 [10:46:06]Write to MH i2c: E2 08 00 85 01 80 13 00 00 00 00 00 00 02 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 62 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 62 00 85 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E6 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:46:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E6 1D 00 00 0E 04 04 00 46 00 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 [10:46:06]wFMCommunicate OK [10:46:06]SAM_PROTO_GetFieldsCounters done [10:46:06]requested_item shift.num is exist - process it [10:46:06]requested_item shift.opened is exist - process it [10:46:06]req_shift_opened [10:46:06]FM_GetShiftState [10:46:06]SAM_PROTO_GetShiftState [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 13 01 00 [10:46:06]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 0E 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 C7 [10:46:06]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:46:06]wFMCommunicate OK [10:46:06]SAM_PROTO_GetShiftState done [10:46:06]FM_GetShiftState done [10:46:06]req_shift_opened done [10:46:06]requested_item shift.open_date is exist - process it [10:46:06]req_shift_open_date [10:46:06]req_shift_open_date done [10:46:06]produce_requested_data done [10:46:06]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7654,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [10:46:06]process_action_free close_receipt [10:46:06]json_value_free [10:46:06]json_value_free done [10:46:06]process_json_proto returns [10:46:06]Send response to host [10:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7654,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [10:46:06]free response buf [10:46:06]execute_script done [10:46:06]execute_script returns [10:46:06]free content buf [10:46:06]Sock 9.Close socket [10:46:06]Sock 9.Thread stoped [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:29]recv_with_timeout no data received [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:23]recv_with_timeout no data received [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:18]accept exits with 8 [10:49:18]New connection [10:49:18]New thread 3067489636 created [10:49:18]Thread 3067632996 joined [10:49:18]Waiting for new connection... [10:49:18] Sock 8.Parse request [10:49:18]Sock 8.Check first char [10:49:18]Sock 8.First char is OK [10:49:18]request: POST /json_proto HTTP/1.0 [10:49:18]Method: POST [10:49:18]URL: /json_proto [10:49:18]Method is POST - this is cgi request [10:49:18]url: /json_proto [10:49:18]query_string will be loaded in cgi processing [10:49:18]execute_cgi json_proto POST (null) [10:49:18]execute_cgi path=json_proto method=POST [10:49:18]POST find Content-Length [10:49:18]Host: 172.17.47.195:8080 [10:49:18]Content-Length: 682 [10:49:18]Content-Type: application/json [10:49:18] [10:49:18]POST finish read [10:49:18]Found Content-Length = 682 [10:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:18]execute_script... [10:49: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)871652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:18]POST & json_proto [10:49:18]process_json_proto [10:49:18]json parsed OK: [10:49:18]protocol is kg_v1.0 [10:49:18]action value=close_receipt [10:49:18]process_action close_receipt [10:49:18]cmd_close_receipt [10:49:18]MH_GetDate [10:49:18]Write to MH i2c: F0 00 00 87 01 77 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: F0 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: F0 09 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: F0 09 00 87 01 00 2F F6 EF 66 96 2E 95 66 B9 [10:49:18]GetLastDocTimeStamp 1727001963 [10:49:18]current date 1727002159 [10:49:18]FM_GetShiftState [10:49:18]SAM_PROTO_GetShiftState [10:49:18]wFMCommunicate request_size=4 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 80 13 01 00 [10:49:18]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 0E 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 C9 [10:49:18]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:49:18]wFMCommunicate OK [10:49:18]SAM_PROTO_GetShiftState done [10:49:18]FM_GetShiftState done [10:49:18]opened in 1726964224 [10:49:18]opened+sec_in_day 1727050624 [10:49:18]quantity*price = 100005 [10:49:18]sum+1 = 100006 [10:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 53 22.09.2024 10:49 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7655 ФПД: 178965359114119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104919&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7655&fm=178965359114119&tin=02508201610067®Number=0000000000190446&sum=100000 [10:49:19]StoreToDocumentArchive [10:49:19]shift 70 fd 7655 [10:49:19]save to /storage/0070/doc_00007655 [10:49:19]save last doc name /storage/0070/doc_00007655 to /storage/kkm_last_doc_name [10:49:19]save OK [10:49:19]Clear old archive folders... [10:49:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:19]tlvbuf is 017567E0 [10:49:19]SAM_PROTO_ClearQueue [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 09 00 00 [10:49:19]Write to MH i2c: E2 08 00 95 01 80 09 00 00 00 00 00 00 08 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]SAM_PROTO_ClearQueue done [10:49:20]KKMCreateOFDPacket [10:49:20]OFDProtocolAddRootSTLVToBuf [10:49:20]FM_MakeSignedData [10:49:20]FM_MakeSignedData [10:49:20]SAM_PROTO_SignData [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 01 02 [10:49:20]Write to MH i2c: E2 08 00 96 01 80 0D 01 02 00 00 00 00 10 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=255 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F F6 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E7 1D 00 00 35 04 06 00 A2 [10:49:20]Write to MH i2c: E2 02 01 97 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F F6 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E7 1D 00 00 35 04 06 00 A2 00 00 B6 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=10 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 02 02 05 C4 9E A8 37 87 [10:49:20]Write to MH i2c: E2 0D 00 98 01 80 0D 02 02 05 00 C4 9E A8 37 87 00 00 E5 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 03 02 [10:49:20]Write to MH i2c: E2 08 00 99 01 80 0D 03 02 00 00 00 00 15 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 0B 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 0B 00 99 01 00 D0 5D 81 E7 AC 26 95 25 90 00 37 [10:49:20]RAPDU: D0 5D 81 E7 AC 26 95 25 90 00 [10:49:20]wFMCommunicate OK [10:49:20]SAM_PROTO_SignData done [10:49:20]FM_MakeSignedData done [10:49:20]CreateOFDProtocolMessage [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 11 00 00 [10:49:20]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 17 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 66 [10:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:49:20]wFMCommunicate OK [10:49:20]CreateOFDProtocolMessage done [10:49:20]OFDSenderStorePacket 7655 [10:49:20]StoreOFDPacket docnum=7655 [10:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 9A 50 07 01 C5 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F F6 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E7 1D 00 00 35 04 06 00 A2 C4 9E A8 37 87 D0 5D 81 E7 AC 26 95 25 [10:49:20]CheckFolder [10:49:20]dirname=/storage/ofd_packets [10:49:20]CheckFolder done [10:49:20]ProducePacketName [10:49:20]name=ofd_packets/00007655 [10:49:20]NVStorageSaveData ofd_packets/00007655 [10:49:20]File name is /storage/ofd_packets/00007655 [10:49:20]Write 301 bytes [10:49:20]NVStorageSaveData done [10:49:20]OFDSenderStorePacket done [10:49:20]KKMCreateOFDPacket done [10:49:20]NVStorageSaveData kkm_last_timestamp [10:49:20]File name is /storage/kkm_last_timestamp [10:49:20]Write 4 bytes [10:49:20]NVStorageSaveData done [10:49:20]ExternCall_PrintAddStr [10:49:20]wPrintStart [10:49:20]Write to MH i2c: 01 00 00 9B 01 9C [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [10:49:20]RasterBufferAndPrint [10:49:20]line Счет N : (1)871652 [10:49:20]line ИНН: 02508201610067 [10:49:20]line Контрольно-Кассовый Чек [10:49:20]line ПРОДАЖА [10:49:20]line ТРК (МРК, ГНК) : 33 [10:49:20]line Товар: 2710124130 [10:49:20]line Аи-92-К-5 [10:49:20]line 14.750 * 67.80 [10:49:20]line = 1000.05 [10:49:20]line НДС 12% НСП 1% [10:49:20]line > о реализуемом товаре [10:49:20]line ОКРУГЛЕНИЕ: -0.05 [10:49:20]line ИТОГО: 1000.00 [10:49:20]line Внесено: 1000.00 [10:49:20]line СДАЧА: 0.00 [10:49:20]line НСП 1% : 8.85 [10:49:20]line НДС 12% : 106.20 [10:49:20]line Наличными: 1000.00 [10:49:20]line Безнал.: 0.00 [10:49:20]line Место: АЗС № 137 "Партнер Нефть" [10:49:20]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [10:49:20]line СНО: Общий режим [10:49:20]line Чек 53 22.09.2024 10:49 [10:49:20]line Смена: 70 ФФД: 1.0 [10:49:20]line ЗНМ: 0300000041 [10:49:20]line РНМ: 0000000000190446 [10:49:20]line Версия ККМ: v1.0 [10:49:20]line ФМ: 0000000002094258 [10:49:20]line ФД: 7655 [10:49:20]line ФПД: 178965359114119 [10:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104919&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7655&fm=178965359114119&tin=02508201610067®Number=0000000000190446&sum=100000 [10:49:20]OFD Sender: Processing packet 7655 [packets to send 51, broken 50] [10:49:20]ProducePacketName [10:49:20]name=ofd_packets/00007655 [10:49:20]OFD Sender: To server: pG, [10:49:20]CommunicateWithHost lk.salyk.kg:30040 [10:49:20]ConnectInit lk.salyk.kg [10:49:20]written 0, free lines is 4095 [10:49:21]Write to MH i2c: 01 00 00 C6 01 C7 [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 07 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 E7 0C C1 [10:49:21]RasterBufferAndPrint [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]written 0, free lines is 3309 [10:49:21]MH_Cut [10:49:21]Write to MH i2c: D1 01 00 CD 01 01 A0 [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 01 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 01 00 CD 01 00 9F [10:49:21]Write to MH i2c: 01 00 00 CE 01 CF [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]*** Cut start [10:49:21]*** Purtial cut [10:49:21]*** Stage 1: CUTSNS_PIN = 1 [10:49:22]Read from MH i2c: 01 [10:49:22]MH_I2C_Read... [10:49:22]*** Stop cut motor [10:49:22]*** Cut end [10:49:22]Read from MH i2c: 01 07 00 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [10:49:22]process_action close_receipt done [10:49:22]requested_data is exist [10:49:22]produce_requested_data [10:49:22]requested_item fm.sn is exist - process it [10:49:22]wFMCommunicate request_size=4 [10:49:22]MH_SAM_APDU [10:49:22]CAPDU: 80 11 00 00 [10:49:22]Write to MH i2c: E2 08 00 CF 01 80 11 00 00 00 00 00 00 4A [10:49:22]Write i2c OK [10:49:22]MH_I2C_Read... [10:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:22]Read from MH i2c: E2 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 17 00 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 17 00 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 9B [10:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [10:49:22]wFMCommunicate OK [10:49:22]requested_item fd.num is exist - process it [10:49:22]SAM_PROTO_GetFieldsCounters [10:49:22]wFMCommunicate request_size=4 [10:49:22]MH_SAM_APDU [10:49:22]CAPDU: 80 13 00 00 [10:49:22]Write to MH i2c: E2 08 00 D0 01 80 13 00 00 00 00 00 00 4D [10:49:22]Write i2c OK [10:49:22]MH_I2C_Read... [10:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:22]Read from MH i2c: E2 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 62 00 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 62 00 D0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E7 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [10:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E7 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:22]wFMCommunicate OK [10:49:22]SAM_PROTO_GetFieldsCounters done [10:49:22]requested_item shift.num is exist - process it [10:49:22]requested_item shift.opened is exist - process it [10:49:22]req_shift_opened [10:49:22]FM_GetShiftState [10:49:22]SAM_PROTO_GetShiftState [10:49:22]wFMCommunicate request_size=4 [10:49:22]MH_SAM_APDU [10:49:22]CAPDU: 80 13 01 00 [10:49:22]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [10:49:22]Write i2c OK [10:49:22]MH_I2C_Read... [10:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:22]Read from MH i2c: E2 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 0E 00 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 12 [10:49:22]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [10:49:22]wFMCommunicate OK [10:49:22]SAM_PROTO_GetShiftState done [10:49:22]FM_GetShiftState done [10:49:22]req_shift_opened done [10:49:22]requested_item shift.open_date is exist - process it [10:49:22]req_shift_open_date [10:49:22]req_shift_open_date done [10:49:22]produce_requested_data done [10:49:22]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7655,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [10:49:22]process_action_free close_receipt [10:49:22]json_value_free [10:49:22]json_value_free done [10:49:22]process_json_proto returns [10:49:22]Send response to host [10:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7655,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [10:49:22]free response buf [10:49:22]execute_script done [10:49:22]execute_script returns [10:49:22]free content buf [10:49:22]Sock 8.Close socket [10:49:22]Sock 8.Thread stoped [10:49:23]Connected sock=11 [10:49:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 9A 50 07 01 C5 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F F6 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E7 1D 00 00 35 04 06 00 A2 C4 9E A8 37 87 D0 5D 81 E7 AC 26 95 25 [10:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F4 A8 47 00 92 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E7 1D 00 00 F4 03 04 00 F1 A0 EF 66 B6 04 01 00 00 C8 C0 25 7E 7F 96 85 AC [10:49:25]CommunicateWithHost err = 0 [10:49:25]CheckOFDResponse [10:49:25]1017 (14) - 77093643461234 [10:49:25]1041 (16) - 0000000002094258 [10:49:25]1040 (4) - 7655 [10:49:25]1012 (4) - 22.09.2024 04:45 [10:49:25]1206 (1) - 0 [10:49:25]OFD Sender: Remove packet 7655 [10:49:25]ProducePacketName [10:49:25]name=ofd_packets/00007655 [10:49:25]NVStorageDeleteData [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]recv_with_timeout no data received [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [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:08]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]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:08]recv_with_timeout no data received [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:44]recv_with_timeout no data received [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:55]recv_with_timeout no data received [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:41]recv_with_timeout no data received [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:55]recv_with_timeout no data received [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:09]recv_with_timeout no data received [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:44]recv_with_timeout no data received [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:55]accept exits with 9 [11:01:55]New connection [11:01:55]New thread 3067632996 created [11:01:55]Thread 3067489636 joined [11:01:55]Waiting for new connection... [11:01:55] Sock 9.Parse request [11:01:55]Sock 9.Check first char [11:01:55]Sock 9.First char is OK [11:01:55]request: POST /json_proto HTTP/1.0 [11:01:55]Method: POST [11:01:55]URL: /json_proto [11:01:55]Method is POST - this is cgi request [11:01:55]url: /json_proto [11:01:55]query_string will be loaded in cgi processing [11:01:55]execute_cgi json_proto POST (null) [11:01:55]execute_cgi path=json_proto method=POST [11:01:55]POST find Content-Length [11:01:55]Host: 172.17.47.195:8080 [11:01:55]Content-Length: 682 [11:01:55]Content-Type: application/json [11:01:55] [11:01:55]POST finish read [11:01:55]Found Content-Length = 682 [11:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:55]execute_script... [11:01:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:55]POST & json_proto [11:01:55]process_json_proto [11:01:55]json parsed OK: [11:01:55]protocol is kg_v1.0 [11:01:55]action value=close_receipt [11:01:55]process_action close_receipt [11:01:55]cmd_close_receipt [11:01:55]MH_GetDate [11:01:55]Write to MH i2c: F0 00 00 D2 01 C2 [11:01:55]Write i2c OK [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: F0 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: F0 09 00 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: F0 09 00 D2 01 00 24 F9 EF 66 96 2E 95 66 FC [11:01:55]GetLastDocTimeStamp 1727002159 [11:01:55]current date 1727002916 [11:01:55]FM_GetShiftState [11:01:55]SAM_PROTO_GetShiftState [11:01:55]wFMCommunicate request_size=4 [11:01:55]MH_SAM_APDU [11:01:55]CAPDU: 80 13 01 00 [11:01:55]Write to MH i2c: E2 08 00 D3 01 80 13 01 00 00 00 00 00 51 [11:01:55]Write i2c OK [11:01:55]MH_I2C_Read... [11:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:55]Read from MH i2c: E2 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: E2 0E 00 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: E2 0E 00 D3 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 14 [11:01:55]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [11:01:55]wFMCommunicate OK [11:01:55]SAM_PROTO_GetShiftState done [11:01:55]FM_GetShiftState done [11:01:55]opened in 1726964224 [11:01:55]opened+sec_in_day 1727050624 [11:01:55]quantity*price = 100005 [11:01:55]sum+1 = 100006 [11:01:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 54 22.09.2024 11:01 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7656 ФПД: 178954355768440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110156&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7656&fm=178954355768440&tin=02508201610067®Number=0000000000190446&sum=100000 [11:01:57]StoreToDocumentArchive [11:01:57]shift 70 fd 7656 [11:01:57]save to /storage/0070/doc_00007656 [11:01:57]save last doc name /storage/0070/doc_00007656 to /storage/kkm_last_doc_name [11:01:57]save OK [11:01:57]Clear old archive folders... [11:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:57]tlvbuf is 01757F70 [11:01:57]SAM_PROTO_ClearQueue [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 09 00 00 [11:01:57]Write to MH i2c: E2 08 00 E0 01 80 09 00 00 00 00 00 00 53 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [11:01:57]RAPDU: 90 00 [11:01:57]wFMCommunicate OK [11:01:57]SAM_PROTO_ClearQueue done [11:01:57]KKMCreateOFDPacket [11:01:57]OFDProtocolAddRootSTLVToBuf [11:01:57]FM_MakeSignedData [11:01:57]FM_MakeSignedData [11:01:57]SAM_PROTO_SignData [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 0D 01 02 [11:01:57]Write to MH i2c: E2 08 00 E1 01 80 0D 01 02 00 00 00 00 5B [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [11:01:57]RAPDU: 90 00 [11:01:57]wFMCommunicate OK [11:01:57]wFMCommunicate request_size=255 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 24 F9 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E8 1D 00 00 35 04 06 00 A2 [11:01:57]Write to MH i2c: E2 02 01 E2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 24 F9 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E8 1D 00 00 35 04 06 00 A2 00 00 FB [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [11:01:57]RAPDU: 90 00 [11:01:57]wFMCommunicate OK [11:01:57]wFMCommunicate request_size=10 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 0D 02 02 05 C2 0E CE 7C 78 [11:01:57]Write to MH i2c: E2 0D 00 E3 01 80 0D 02 02 05 00 C2 0E CE 7C 78 00 00 FA [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [11:01:57]RAPDU: 90 00 [11:01:57]wFMCommunicate OK [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 0D 03 02 [11:01:57]Write to MH i2c: E2 08 00 E4 01 80 0D 03 02 00 00 00 00 60 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 0B 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 0B 00 E4 01 00 0D 1E 22 C0 BE E3 60 AE 90 00 1D [11:01:57]RAPDU: 0D 1E 22 C0 BE E3 60 AE 90 00 [11:01:57]wFMCommunicate OK [11:01:57]SAM_PROTO_SignData done [11:01:57]FM_MakeSignedData done [11:01:57]CreateOFDProtocolMessage [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 11 00 00 [11:01:57]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 17 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 B1 [11:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [11:01:57]wFMCommunicate OK [11:01:57]CreateOFDProtocolMessage done [11:01:57]OFDSenderStorePacket 7656 [11:01:57]StoreOFDPacket docnum=7656 [11:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 02 34 07 01 D2 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 24 F9 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E8 1D 00 00 35 04 06 00 A2 C2 0E CE 7C 78 0D 1E 22 C0 BE E3 60 AE [11:01:57]CheckFolder [11:01:57]dirname=/storage/ofd_packets [11:01:57]CheckFolder done [11:01:57]ProducePacketName [11:01:57]name=ofd_packets/00007656 [11:01:57]NVStorageSaveData ofd_packets/00007656 [11:01:57]File name is /storage/ofd_packets/00007656 [11:01:57]Write 301 bytes [11:01:57]NVStorageSaveData done [11:01:57]OFDSenderStorePacket done [11:01:57]KKMCreateOFDPacket done [11:01:57]NVStorageSaveData kkm_last_timestamp [11:01:57]File name is /storage/kkm_last_timestamp [11:01:57]Write 4 bytes [11:01:57]NVStorageSaveData done [11:01:57]ExternCall_PrintAddStr [11:01:57]wPrintStart [11:01:57]Write to MH i2c: 01 00 00 E6 01 E7 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 07 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 FF 0F FC [11:01:57]RasterBufferAndPrint [11:01:57]line Счет N : (1)871657 [11:01:57]line ИНН: 02508201610067 [11:01:57]line Контрольно-Кассовый Чек [11:01:57]line ПРОДАЖА [11:01:57]line ТРК (МРК, ГНК) : 43 [11:01:57]line Товар: 2710124130 [11:01:57]line Аи-92-К-5 [11:01:57]line 14.750 * 67.80 [11:01:57]line = 1000.05 [11:01:57]line НДС 12% НСП 1% [11:01:57]line > о реализуемом товаре [11:01:57]line ОКРУГЛЕНИЕ: -0.05 [11:01:57]line ИТОГО: 1000.00 [11:01:57]line Внесено: 1000.00 [11:01:57]line СДАЧА: 0.00 [11:01:57]line НСП 1% : 8.85 [11:01:57]line НДС 12% : 106.20 [11:01:57]line Наличными: 1000.00 [11:01:57]line Безнал.: 0.00 [11:01:57]line Место: АЗС № 137 "Партнер Нефть" [11:01:57]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [11:01:57]line СНО: Общий режим [11:01:57]line Чек 54 22.09.2024 11:01 [11:01:57]line Смена: 70 ФФД: 1.0 [11:01:57]line ЗНМ: 0300000041 [11:01:57]line РНМ: 0000000000190446 [11:01:57]line Версия ККМ: v1.0 [11:01:57]line ФМ: 0000000002094258 [11:01:57]line ФД: 7656 [11:01:57]line ФПД: 178954355768440 [11:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110156&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7656&fm=178954355768440&tin=02508201610067®Number=0000000000190446&sum=100000 [11:01:57]OFD Sender: Processing packet 7656 [packets to send 51, broken 50] [11:01:57]ProducePacketName [11:01:57]name=ofd_packets/00007656 [11:01:57]OFD Sender: To server: pG, [11:01:57]CommunicateWithHost lk.salyk.kg:30040 [11:01:57]ConnectInit lk.salyk.kg [11:01:57]written 0, free lines is 4095 [11:01:58]Write to MH i2c: 01 00 00 11 02 13 [11:01:58]Write i2c OK [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: 01 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: 01 07 00 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: 01 07 00 11 02 00 00 00 00 00 F8 0C 1E [11:01:58]RasterBufferAndPrint [11:01:58]line [11:01:58]line [11:01:58]line [11:01:58]line [11:01:58]line [11:01:58]written 0, free lines is 3326 [11:01:58]MH_Cut [11:01:58]Write to MH i2c: D1 01 00 18 02 01 EC [11:01:58]Write i2c OK [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: D1 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: D1 01 00 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: D1 01 00 18 02 00 EB [11:01:58]Write to MH i2c: 01 00 00 19 02 1B [11:01:58]Write i2c OK [11:01:58]MH_I2C_Read... [11:01:59]*** Cut start [11:01:59]*** Purtial cut [11:01:59]*** Stage 1: CUTSNS_PIN = 1 [11:01:59]Read from MH i2c: 01 [11:01:59]MH_I2C_Read... [11:01:59]*** Stop cut motor [11:01:59]*** Cut end [11:01:59]Read from MH i2c: 01 07 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 FF 0F 30 [11:01:59]process_action close_receipt done [11:01:59]requested_data is exist [11:01:59]produce_requested_data [11:01:59]requested_item fm.sn is exist - process it [11:01:59]wFMCommunicate request_size=4 [11:01:59]MH_SAM_APDU [11:01:59]CAPDU: 80 11 00 00 [11:01:59]Write to MH i2c: E2 08 00 1A 02 80 11 00 00 00 00 00 00 96 [11:01:59]Write i2c OK [11:01:59]MH_I2C_Read... [11:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:59]Read from MH i2c: E2 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 17 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 17 00 1A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 E7 [11:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [11:01:59]wFMCommunicate OK [11:01:59]requested_item fd.num is exist - process it [11:01:59]SAM_PROTO_GetFieldsCounters [11:01:59]wFMCommunicate request_size=4 [11:01:59]MH_SAM_APDU [11:01:59]CAPDU: 80 13 00 00 [11:01:59]Write to MH i2c: E2 08 00 1B 02 80 13 00 00 00 00 00 00 99 [11:01:59]Write i2c OK [11:01:59]MH_I2C_Read... [11:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:59]Read from MH i2c: E2 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 62 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 62 00 1B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E8 1D 00 00 0E 04 04 00 46 00 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 A4 [11:01:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E8 1D 00 00 0E 04 04 00 46 00 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 [11:01:59]wFMCommunicate OK [11:01:59]SAM_PROTO_GetFieldsCounters done [11:01:59]requested_item shift.num is exist - process it [11:01:59]requested_item shift.opened is exist - process it [11:01:59]req_shift_opened [11:01:59]FM_GetShiftState [11:01:59]SAM_PROTO_GetShiftState [11:01:59]wFMCommunicate request_size=4 [11:01:59]MH_SAM_APDU [11:01:59]CAPDU: 80 13 01 00 [11:01:59]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [11:01:59]Write i2c OK [11:01:59]MH_I2C_Read... [11:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:59]Read from MH i2c: E2 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 0E 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [11:01:59]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [11:01:59]wFMCommunicate OK [11:01:59]SAM_PROTO_GetShiftState done [11:01:59]FM_GetShiftState done [11:01:59]req_shift_opened done [11:01:59]requested_item shift.open_date is exist - process it [11:01:59]req_shift_open_date [11:01:59]req_shift_open_date done [11:01:59]produce_requested_data done [11:01:59]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7656,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [11:01:59]process_action_free close_receipt [11:01:59]json_value_free [11:01:59]json_value_free done [11:01:59]process_json_proto returns [11:01:59]Send response to host [11:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7656,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [11:01:59]free response buf [11:01:59]execute_script done [11:01:59]execute_script returns [11:01:59]free content buf [11:01:59]Sock 9.Close socket [11:01:59]Sock 9.Thread stoped [11:02:00]Connected sock=11 [11:02:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 02 34 07 01 D2 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 24 F9 EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E8 1D 00 00 35 04 06 00 A2 C2 0E CE 7C 78 0D 1E 22 C0 BE E3 60 AE [11:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 B3 FE 47 00 94 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E8 1D 00 00 F4 03 04 00 E6 A3 EF 66 B6 04 01 00 00 6E 2D 48 1C EA 9A B7 0E [11:02:01]CommunicateWithHost err = 0 [11:02:01]CheckOFDResponse [11:02:01]1017 (14) - 77093643461234 [11:02:01]1041 (16) - 0000000002094258 [11:02:01]1040 (4) - 7656 [11:02:01]1012 (4) - 22.09.2024 04:58 [11:02:01]1206 (1) - 0 [11:02:01]OFD Sender: Remove packet 7656 [11:02:01]ProducePacketName [11:02:01]name=ofd_packets/00007656 [11:02:01]NVStorageDeleteData [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:12]recv_with_timeout no data received [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:24]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]recv_with_timeout no data received [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: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:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:28]recv_with_timeout no data received [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05: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:17]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:24]recv_with_timeout no data received [11:07:27]OFD Sender: No OFD packet to send [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: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:31]recv_with_timeout no data received [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:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:31]accept exits with 8 [11:09:31]New connection [11:09:31]New thread 3067489636 created [11:09:31]Thread 3067632996 joined [11:09:31]Waiting for new connection... [11:09:31] Sock 8.Parse request [11:09:31]Sock 8.Check first char [11:09:31]Sock 8.First char is OK [11:09:31]request: POST /json_proto HTTP/1.0 [11:09:31]Method: POST [11:09:31]URL: /json_proto [11:09:31]Method is POST - this is cgi request [11:09:31]url: /json_proto [11:09:31]query_string will be loaded in cgi processing [11:09:31]execute_cgi json_proto POST (null) [11:09:31]execute_cgi path=json_proto method=POST [11:09:31]POST find Content-Length [11:09:31]Host: 172.17.47.195:8080 [11:09:31]Content-Length: 677 [11:09:31]Content-Type: application/json [11:09:31] [11:09:31]POST finish read [11:09:31]Found Content-Length = 677 [11:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:31]execute_script... [11:09: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)871661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:31]POST & json_proto [11:09:31]process_json_proto [11:09:31]json parsed OK: [11:09:31]protocol is kg_v1.0 [11:09:31]action value=close_receipt [11:09:31]process_action close_receipt [11:09:31]cmd_close_receipt [11:09:31]MH_GetDate [11:09:31]Write to MH i2c: F0 00 00 1D 02 0E [11:09:31]Write i2c OK [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 09 00 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 09 00 1D 02 00 EC FA EF 66 96 2E 95 66 11 [11:09:31]GetLastDocTimeStamp 1727002916 [11:09:31]current date 1727003372 [11:09:31]FM_GetShiftState [11:09:31]SAM_PROTO_GetShiftState [11:09:31]wFMCommunicate request_size=4 [11:09:31]MH_SAM_APDU [11:09:31]CAPDU: 80 13 01 00 [11:09:31]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [11:09:31]Write i2c OK [11:09:31]MH_I2C_Read... [11:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:31]Read from MH i2c: E2 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: E2 0E 00 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 60 [11:09:31]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [11:09:31]wFMCommunicate OK [11:09:31]SAM_PROTO_GetShiftState done [11:09:31]FM_GetShiftState done [11:09:31]opened in 1726964224 [11:09:31]opened+sec_in_day 1727050624 [11:09:31]quantity*price = 50036 [11:09:31]sum+1 = 50037 [11:09:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 55 22.09.2024 11:09 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7657 ФПД: 2800788046750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110932&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7657&fm=2800788046750&tin=02508201610067®Number=0000000000190446&sum=50000 [11:09:33]StoreToDocumentArchive [11:09:33]shift 70 fd 7657 [11:09:33]save to /storage/0070/doc_00007657 [11:09:33]save last doc name /storage/0070/doc_00007657 to /storage/kkm_last_doc_name [11:09:33]save OK [11:09:33]Clear old archive folders... [11:09:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:33]tlvbuf is 017EFD30 [11:09:33]SAM_PROTO_ClearQueue [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 09 00 00 [11:09:33]Write to MH i2c: E2 08 00 2B 02 80 09 00 00 00 00 00 00 9F [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [11:09:33]RAPDU: 90 00 [11:09:33]wFMCommunicate OK [11:09:33]SAM_PROTO_ClearQueue done [11:09:33]KKMCreateOFDPacket [11:09:33]OFDProtocolAddRootSTLVToBuf [11:09:33]FM_MakeSignedData [11:09:33]FM_MakeSignedData [11:09:33]SAM_PROTO_SignData [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 0D 01 02 [11:09:33]Write to MH i2c: E2 08 00 2C 02 80 0D 01 02 00 00 00 00 A7 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [11:09:33]RAPDU: 90 00 [11:09:33]wFMCommunicate OK [11:09:33]wFMCommunicate request_size=255 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 EC FA EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E9 1D 00 00 35 04 06 00 02 [11:09:33]Write to MH i2c: E2 02 01 2D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 EC FA EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E9 1D 00 00 35 04 06 00 02 00 00 E3 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [11:09:33]RAPDU: 90 00 [11:09:33]wFMCommunicate OK [11:09:33]wFMCommunicate request_size=10 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 0D 02 02 05 8C 1B FA 03 9E [11:09:33]Write to MH i2c: E2 0D 00 2E 02 80 0D 02 02 05 00 8C 1B FA 03 9E 00 00 F6 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [11:09:33]RAPDU: 90 00 [11:09:33]wFMCommunicate OK [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 0D 03 02 [11:09:33]Write to MH i2c: E2 08 00 2F 02 80 0D 03 02 00 00 00 00 AC [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 0B 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 0B 00 2F 02 00 75 EA 1D 66 C0 EA 7C 46 90 00 FB [11:09:33]RAPDU: 75 EA 1D 66 C0 EA 7C 46 90 00 [11:09:33]wFMCommunicate OK [11:09:33]SAM_PROTO_SignData done [11:09:33]FM_MakeSignedData done [11:09:33]CreateOFDProtocolMessage [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 11 00 00 [11:09:33]Write to MH i2c: E2 08 00 30 02 80 11 00 00 00 00 00 00 AC [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 17 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 17 00 30 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FD [11:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [11:09:33]wFMCommunicate OK [11:09:33]CreateOFDProtocolMessage done [11:09:33]OFDSenderStorePacket 7657 [11:09:33]StoreOFDPacket docnum=7657 [11:09:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 6B 83 07 01 19 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 EC FA EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E9 1D 00 00 35 04 06 00 02 8C 1B FA 03 9E 75 EA 1D 66 C0 EA 7C 46 [11:09:33]CheckFolder [11:09:33]dirname=/storage/ofd_packets [11:09:33]CheckFolder done [11:09:33]ProducePacketName [11:09:33]name=ofd_packets/00007657 [11:09:33]NVStorageSaveData ofd_packets/00007657 [11:09:33]File name is /storage/ofd_packets/00007657 [11:09:33]Write 301 bytes [11:09:33]NVStorageSaveData done [11:09:33]OFDSenderStorePacket done [11:09:33]KKMCreateOFDPacket done [11:09:33]NVStorageSaveData kkm_last_timestamp [11:09:33]File name is /storage/kkm_last_timestamp [11:09:33]Write 4 bytes [11:09:33]NVStorageSaveData done [11:09:33]ExternCall_PrintAddStr [11:09:33]wPrintStart [11:09:33]Write to MH i2c: 01 00 00 31 02 33 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 07 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [11:09:33]RasterBufferAndPrint [11:09:33]line Счет N : (1)871661 [11:09:33]line ИНН: 02508201610067 [11:09:33]line Контрольно-Кассовый Чек [11:09:33]line ПРОДАЖА [11:09:33]line ТРК (МРК, ГНК) : 33 [11:09:33]line Товар: 2710124130 [11:09:33]line Аи-92-К-5 [11:09:33]line 7.380 * 67.80 [11:09:33]line = 500.36 [11:09:33]line НДС 12% НСП 1% [11:09:33]line > о реализуемом товаре [11:09:33]line ОКРУГЛЕНИЕ: -0.36 [11:09:33]line ИТОГО: 500.00 [11:09:33]line Внесено: 500.00 [11:09:33]line СДАЧА: 0.00 [11:09:33]line НСП 1% : 4.43 [11:09:33]line НДС 12% : 53.14 [11:09:33]line Наличными: 500.00 [11:09:33]line Безнал.: 0.00 [11:09:33]line Место: АЗС № 137 "Партнер Нефть" [11:09:33]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [11:09:33]line СНО: Общий режим [11:09:33]line Чек 55 22.09.2024 11:09 [11:09:33]line Смена: 70 ФФД: 1.0 [11:09:33]line ЗНМ: 0300000041 [11:09:33]line РНМ: 0000000000190446 [11:09:33]line Версия ККМ: v1.0 [11:09:33]line ФМ: 0000000002094258 [11:09:33]line ФД: 7657 [11:09:33]line ФПД: 2800788046750 [11:09:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110932&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7657&fm=2800788046750&tin=02508201610067®Number=0000000000190446&sum=50000 [11:09:33]OFD Sender: Processing packet 7657 [packets to send 51, broken 50] [11:09:33]ProducePacketName [11:09:33]name=ofd_packets/00007657 [11:09:33]OFD Sender: To server: pG, [11:09:33]CommunicateWithHost lk.salyk.kg:30040 [11:09:33]ConnectInit lk.salyk.kg [11:09:33]written 0, free lines is 4095 [11:09:34]Write to MH i2c: 01 00 00 5C 02 5E [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 07 00 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 E6 0C 57 [11:09:34]RasterBufferAndPrint [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]written 0, free lines is 3308 [11:09:34]MH_Cut [11:09:34]Write to MH i2c: D1 01 00 63 02 01 37 [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 01 00 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 01 00 63 02 00 36 [11:09:34]Write to MH i2c: 01 00 00 64 02 66 [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:35]*** Cut start [11:09:35]*** Purtial cut [11:09:35]*** Stage 1: CUTSNS_PIN = 1 [11:09:35]Read from MH i2c: 01 [11:09:35]MH_I2C_Read... [11:09:35]*** Stop cut motor [11:09:35]*** Cut end [11:09:35]Read from MH i2c: 01 07 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [11:09:35]process_action close_receipt done [11:09:35]requested_data is exist [11:09:35]produce_requested_data [11:09:35]requested_item fm.sn is exist - process it [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 11 00 00 [11:09:35]Write to MH i2c: E2 08 00 65 02 80 11 00 00 00 00 00 00 E1 [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]Connected sock=10 [11:09:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 6B 83 07 01 19 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 EC FA EF 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E9 1D 00 00 35 04 06 00 02 8C 1B FA 03 9E 75 EA 1D 66 C0 EA 7C 46 [11:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 17 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 17 00 65 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 32 [11:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [11:09:35]wFMCommunicate OK [11:09:35]requested_item fd.num is exist - process it [11:09:35]SAM_PROTO_GetFieldsCounters [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 13 00 00 [11:09:35]Write to MH i2c: E2 08 00 66 02 80 13 00 00 00 00 00 00 E4 [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 62 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 62 00 66 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E9 1D 00 00 0E 04 04 00 46 00 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 F3 [11:09:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 E9 1D 00 00 0E 04 04 00 46 00 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 [11:09:35]wFMCommunicate OK [11:09:35]SAM_PROTO_GetFieldsCounters done [11:09:35]requested_item shift.num is exist - process it [11:09:35]requested_item shift.opened is exist - process it [11:09:35]req_shift_opened [11:09:35]FM_GetShiftState [11:09:35]SAM_PROTO_GetShiftState [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 13 01 00 [11:09:35]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 0E 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [11:09:35]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [11:09:35]wFMCommunicate OK [11:09:35]SAM_PROTO_GetShiftState done [11:09:35]FM_GetShiftState done [11:09:35]req_shift_opened done [11:09:35]requested_item shift.open_date is exist - process it [11:09:35]req_shift_open_date [11:09:35]req_shift_open_date done [11:09:35]produce_requested_data done [11:09:35]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7657,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [11:09:35]process_action_free close_receipt [11:09:35]json_value_free [11:09:35]json_value_free done [11:09:35]process_json_proto returns [11:09:35]Send response to host [11:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7657,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [11:09:35]free response buf [11:09:35]execute_script done [11:09:35]execute_script returns [11:09:35]free content buf [11:09:35]Sock 8.Close socket [11:09:35]Sock 8.Thread stoped [11:09:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 61 1C 47 00 80 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 E9 1D 00 00 F4 03 04 00 AD A5 EF 66 B6 04 01 00 00 C8 F8 70 83 6F 6E 84 91 [11:09:36]CommunicateWithHost err = 0 [11:09:36]CheckOFDResponse [11:09:36]1017 (14) - 77093643461234 [11:09:36]1041 (16) - 0000000002094258 [11:09:36]1040 (4) - 7657 [11:09:36]1012 (4) - 22.09.2024 05:05 [11:09:36]1206 (1) - 0 [11:09:36]OFD Sender: Remove packet 7657 [11:09:36]ProducePacketName [11:09:36]name=ofd_packets/00007657 [11:09:36]NVStorageDeleteData [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:05]recv_with_timeout no data received [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]recv_with_timeout no data received [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:40]recv_with_timeout no data received [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:00]recv_with_timeout no data received [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:08]recv_with_timeout no data received [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:32]recv_with_timeout no data received [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:09]recv_with_timeout no data received [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:05]recv_with_timeout no data received [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:38]recv_with_timeout no data received [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:10]recv_with_timeout no data received [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:44]recv_with_timeout no data received [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]recv_with_timeout no data received [11:21:02]OFD Sender: No OFD packet to send [11:21:07]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: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: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:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:38]recv_with_timeout no data received [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]recv_with_timeout no data received [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:04]recv_with_timeout no data received [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:44]recv_with_timeout no data received [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:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]recv_with_timeout no data received [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:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:17]recv_with_timeout no data received [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:15]recv_with_timeout no data received [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:22]recv_with_timeout no data received [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:40]recv_with_timeout no data received [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:06]recv_with_timeout no data received [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:28]recv_with_timeout no data received [11:54:29]OFD Sender: No OFD packet to send [11:55:24]ConnectInit Can't connect to host [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:35]recv_with_timeout no data received [11:59:40]OFD Sender: No OFD packet to send [12:00:39]ConnectInit Can't connect to host [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:50]recv_with_timeout no data received [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:47]recv_with_timeout no data received [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]recv_with_timeout no data received [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:46]recv_with_timeout no data received [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:07:57]recv_with_timeout no data received [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:11]recv_with_timeout no data received [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]recv_with_timeout no data received [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:33]recv_with_timeout no data received [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]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: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:39]recv_with_timeout no data received [12:17:41]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [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: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: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: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: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:07]recv_with_timeout no data received [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [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]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:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:24]recv_with_timeout no data received [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:15]recv_with_timeout no data received [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:43]accept exits with 9 [12:29:43]New connection [12:29:43]New thread 3067632996 created [12:29:43]Thread 3067489636 joined [12:29:43]Waiting for new connection... [12:29:43] Sock 9.Parse request [12:29:43]Sock 9.Check first char [12:29:43]Sock 9.First char is OK [12:29:43]request: POST /json_proto HTTP/1.0 [12:29:43]Method: POST [12:29:43]URL: /json_proto [12:29:43]Method is POST - this is cgi request [12:29:43]url: /json_proto [12:29:43]query_string will be loaded in cgi processing [12:29:43]execute_cgi json_proto POST (null) [12:29:43]execute_cgi path=json_proto method=POST [12:29:43]POST find Content-Length [12:29:43]Host: 172.17.47.195:8080 [12:29:43]Content-Length: 819 [12:29:43]Content-Type: application/json [12:29:43] [12:29:43]POST finish read [12:29:43]Found Content-Length = 819 [12:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871711", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:43]execute_script... [12:29:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871711", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:43]POST & json_proto [12:29:43]process_json_proto [12:29:43]json parsed OK: [12:29:43]protocol is kg_v1.0 [12:29:43]action value=close_receipt [12:29:43]process_action close_receipt [12:29:43]cmd_close_receipt [12:29:43]MH_GetDate [12:29:43]Write to MH i2c: F0 00 00 68 02 59 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: F0 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: F0 09 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: F0 09 00 68 02 00 B8 0D F0 66 96 2E 95 66 3C [12:29:43]GetLastDocTimeStamp 1727003372 [12:29:43]current date 1727008184 [12:29:43]FM_GetShiftState [12:29:43]SAM_PROTO_GetShiftState [12:29:43]wFMCommunicate request_size=4 [12:29:43]MH_SAM_APDU [12:29:43]CAPDU: 80 13 01 00 [12:29:43]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:43]Read from MH i2c: E2 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 0E 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 AB [12:29:43]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:29:43]wFMCommunicate OK [12:29:43]SAM_PROTO_GetShiftState done [12:29:43]FM_GetShiftState done [12:29:43]opened in 1726964224 [12:29:43]opened+sec_in_day 1727050624 [12:29:43]quantity*price = 100005 [12:29:43]sum+1 = 100006 [12:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 56 22.09.2024 12:29 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094258 ФД: 7658 ФПД: 190432038181870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122944&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7658&fm=190432038181870&tin=02508201610067®Number=0000000000190446&sum=100005 [12:29:44]StoreToDocumentArchive [12:29:44]shift 70 fd 7658 [12:29:44]save to /storage/0070/doc_00007658 [12:29:44]save last doc name /storage/0070/doc_00007658 to /storage/kkm_last_doc_name [12:29:44]save OK [12:29:44]Clear old archive folders... [12:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:44]tlvbuf is 017F7A50 [12:29:44]SAM_PROTO_ClearQueue [12:29:44]wFMCommunicate request_size=4 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 09 00 00 [12:29:44]Write to MH i2c: E2 08 00 76 02 80 09 00 00 00 00 00 00 EA [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:44]Read from MH i2c: E2 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [12:29:44]RAPDU: 90 00 [12:29:44]wFMCommunicate OK [12:29:44]SAM_PROTO_ClearQueue done [12:29:44]KKMCreateOFDPacket [12:29:44]OFDProtocolAddRootSTLVToBuf [12:29:44]FM_MakeSignedData [12:29:44]FM_MakeSignedData [12:29:44]SAM_PROTO_SignData [12:29:44]wFMCommunicate request_size=4 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 0D 01 02 [12:29:44]Write to MH i2c: E2 08 00 77 02 80 0D 01 02 00 00 00 00 F2 [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:44]Read from MH i2c: E2 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [12:29:44]RAPDU: 90 00 [12:29:44]wFMCommunicate OK [12:29:44]wFMCommunicate request_size=255 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B8 0D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EA 1D 00 00 35 04 06 00 AD [12:29:44]Write to MH i2c: E2 02 01 78 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B8 0D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EA 1D 00 00 35 04 06 00 AD 00 00 54 [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 03 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [12:29:45]RAPDU: 90 00 [12:29:45]wFMCommunicate OK [12:29:45]wFMCommunicate request_size=10 [12:29:45]MH_SAM_APDU [12:29:45]CAPDU: 80 0D 02 02 05 32 69 FD 5B EE [12:29:45]Write to MH i2c: E2 0D 00 79 02 80 0D 02 02 05 00 32 69 FD 5B EE 00 00 E0 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 03 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [12:29:45]RAPDU: 90 00 [12:29:45]wFMCommunicate OK [12:29:45]wFMCommunicate request_size=4 [12:29:45]MH_SAM_APDU [12:29:45]CAPDU: 80 0D 03 02 [12:29:45]Write to MH i2c: E2 08 00 7A 02 80 0D 03 02 00 00 00 00 F7 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 0B 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 0B 00 7A 02 00 89 4B 6A C1 BE 9F F2 09 90 00 4F [12:29:45]RAPDU: 89 4B 6A C1 BE 9F F2 09 90 00 [12:29:45]wFMCommunicate OK [12:29:45]SAM_PROTO_SignData done [12:29:45]FM_MakeSignedData done [12:29:45]CreateOFDProtocolMessage [12:29:45]wFMCommunicate request_size=4 [12:29:45]MH_SAM_APDU [12:29:45]CAPDU: 80 11 00 00 [12:29:45]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 17 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 48 [12:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:29:45]wFMCommunicate OK [12:29:45]CreateOFDProtocolMessage done [12:29:45]OFDSenderStorePacket 7658 [12:29:45]StoreOFDPacket docnum=7658 [12:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 43 64 07 01 0F E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B8 0D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EA 1D 00 00 35 04 06 00 AD 32 69 FD 5B EE 89 4B 6A C1 BE 9F F2 09 [12:29:45]CheckFolder [12:29:45]dirname=/storage/ofd_packets [12:29:45]CheckFolder done [12:29:45]ProducePacketName [12:29:45]name=ofd_packets/00007658 [12:29:45]NVStorageSaveData ofd_packets/00007658 [12:29:45]File name is /storage/ofd_packets/00007658 [12:29:45]Write 301 bytes [12:29:45]NVStorageSaveData done [12:29:45]OFDSenderStorePacket done [12:29:45]KKMCreateOFDPacket done [12:29:45]NVStorageSaveData kkm_last_timestamp [12:29:45]File name is /storage/kkm_last_timestamp [12:29:45]Write 4 bytes [12:29:45]NVStorageSaveData done [12:29:45]ExternCall_PrintAddStr [12:29:45]wPrintStart [12:29:45]Write to MH i2c: 01 00 00 7C 02 7E [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: 01 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: 01 07 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [12:29:45]RasterBufferAndPrint [12:29:45]line Счет N : (1)871711 [12:29:45]line ИНН: 02508201610067 [12:29:45]line Контрольно-Кассовый Чек [12:29:45]line ПРОДАЖА [12:29:45]line ТРК (МРК, ГНК) : 53 [12:29:45]line Товар: 2710124130 [12:29:45]line Аи-92-К-5 [12:29:45]line 14.750 * 67.80 [12:29:45]line = 1000.05 [12:29:45]line НДС 12% НСП 1% [12:29:45]line > о реализуемом товаре [12:29:45]line ИТОГО: 1000.05 [12:29:45]line НСП 1% : 8.85 [12:29:45]line НДС 12% : 106.20 [12:29:45]line Наличными: 0.00 [12:29:45]line Безнал.: 1000.05 [12:29:45]line Место: АЗС № 137 "Партнер Нефть" [12:29:45]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:29:45]line СНО: Общий режим [12:29:45]line Чек 56 22.09.2024 12:29 [12:29:45]line Смена: 70 ФФД: 1.0 [12:29:45]line ЗНМ: 0300000041 [12:29:45]line РНМ: 0000000000190446 [12:29:45]line Версия ККМ: v1.0 [12:29:45]line Платежная система: Бакай Банк [12:29:45]line ФМ: 0000000002094258 [12:29:45]line ФД: 7658 [12:29:45]line ФПД: 190432038181870 [12:29:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122944&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7658&fm=190432038181870&tin=02508201610067®Number=0000000000190446&sum=100005 [12:29:45]written 0, free lines is 4095 [12:29:45]OFD Sender: Processing packet 7658 [packets to send 51, broken 50] [12:29:45]ProducePacketName [12:29:45]name=ofd_packets/00007658 [12:29:45]OFD Sender: To server: pG, [12:29:45]CommunicateWithHost lk.salyk.kg:30040 [12:29:45]ConnectInit lk.salyk.kg [12:29:46]Write to MH i2c: 01 00 00 A6 02 A8 [12:29:46]Write i2c OK [12:29:46]MH_I2C_Read... [12:29:46]Read from MH i2c: 01 [12:29:46]MH_I2C_Read... [12:29:46]Read from MH i2c: 01 07 00 [12:29:46]MH_I2C_Read... [12:29:46]Read from MH i2c: 01 07 00 A6 02 00 00 00 00 00 FC 0C B7 [12:29:46]RasterBufferAndPrint [12:29:46]line [12:29:46]line [12:29:46]line [12:29:46]line [12:29:46]line [12:29:46]written 0, free lines is 3330 [12:29:46]MH_Cut [12:29:46]Write to MH i2c: D1 01 00 AD 02 01 81 [12:29:46]Write i2c OK [12:29:46]MH_I2C_Read... [12:29:46]Read from MH i2c: D1 [12:29:46]MH_I2C_Read... [12:29:46]Read from MH i2c: D1 01 00 [12:29:46]MH_I2C_Read... [12:29:46]Read from MH i2c: D1 01 00 AD 02 00 80 [12:29:46]Write to MH i2c: 01 00 00 AE 02 B0 [12:29:46]Write i2c OK [12:29:46]MH_I2C_Read... [12:29:46]*** Cut start [12:29:46]*** Purtial cut [12:29:46]*** Stage 1: CUTSNS_PIN = 1 [12:29:47]Read from MH i2c: 01 [12:29:47]MH_I2C_Read... [12:29:47]*** Stop cut motor [12:29:47]*** Cut end [12:29:47]Read from MH i2c: 01 07 00 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 FF 0F C5 [12:29:47]process_action close_receipt done [12:29:47]requested_data is exist [12:29:47]produce_requested_data [12:29:47]requested_item fm.sn is exist - process it [12:29:47]wFMCommunicate request_size=4 [12:29:47]MH_SAM_APDU [12:29:47]CAPDU: 80 11 00 00 [12:29:47]Write to MH i2c: E2 08 00 AF 02 80 11 00 00 00 00 00 00 2B [12:29:47]Write i2c OK [12:29:47]MH_I2C_Read... [12:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:47]Read from MH i2c: E2 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 17 00 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 17 00 AF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7C [12:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:29:47]wFMCommunicate OK [12:29:47]requested_item fd.num is exist - process it [12:29:47]SAM_PROTO_GetFieldsCounters [12:29:47]wFMCommunicate request_size=4 [12:29:47]MH_SAM_APDU [12:29:47]CAPDU: 80 13 00 00 [12:29:47]Write to MH i2c: E2 08 00 B0 02 80 13 00 00 00 00 00 00 2E [12:29:47]Write i2c OK [12:29:47]MH_I2C_Read... [12:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:47]Read from MH i2c: E2 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 62 00 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 62 00 B0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EA 1D 00 00 0E 04 04 00 46 00 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 41 [12:29:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EA 1D 00 00 0E 04 04 00 46 00 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 [12:29:47]wFMCommunicate OK [12:29:47]SAM_PROTO_GetFieldsCounters done [12:29:47]requested_item shift.num is exist - process it [12:29:47]requested_item shift.opened is exist - process it [12:29:47]req_shift_opened [12:29:47]FM_GetShiftState [12:29:47]SAM_PROTO_GetShiftState [12:29:47]wFMCommunicate request_size=4 [12:29:47]MH_SAM_APDU [12:29:47]CAPDU: 80 13 01 00 [12:29:47]Write to MH i2c: E2 08 00 B1 02 80 13 01 00 00 00 00 00 30 [12:29:47]Write i2c OK [12:29:47]MH_I2C_Read... [12:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:47]Read from MH i2c: E2 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 0E 00 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 0E 00 B1 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F3 [12:29:47]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:29:47]wFMCommunicate OK [12:29:47]SAM_PROTO_GetShiftState done [12:29:47]FM_GetShiftState done [12:29:47]req_shift_opened done [12:29:47]requested_item shift.open_date is exist - process it [12:29:47]req_shift_open_date [12:29:47]req_shift_open_date done [12:29:47]produce_requested_data done [12:29:47]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7658,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:29:47]process_action_free close_receipt [12:29:47]json_value_free [12:29:47]json_value_free done [12:29:47]process_json_proto returns [12:29:47]Send response to host [12:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7658,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:29:47]free response buf [12:29:47]execute_script done [12:29:47]execute_script returns [12:29:47]free content buf [12:29:47]Sock 9.Close socket [12:29:47]Sock 9.Thread stoped [12:29:49]Connected sock=11 [12:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 43 64 07 01 0F E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B8 0D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EA 1D 00 00 35 04 06 00 AD 32 69 FD 5B EE 89 4B 6A C1 BE 9F F2 09 [12:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 AE 26 47 00 72 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EA 1D 00 00 F4 03 04 00 7B B8 EF 66 B6 04 01 00 00 D7 F7 A1 25 A0 D7 79 F2 [12:29:50]CommunicateWithHost err = 0 [12:29:50]CheckOFDResponse [12:29:50]1017 (14) - 77093643461234 [12:29:50]1041 (16) - 0000000002094258 [12:29:50]1040 (4) - 7658 [12:29:50]1012 (4) - 22.09.2024 06:26 [12:29:50]1206 (1) - 0 [12:29:50]OFD Sender: Remove packet 7658 [12:29:50]ProducePacketName [12:29:50]name=ofd_packets/00007658 [12:29:50]NVStorageDeleteData [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:00]recv_with_timeout no data received [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:15]recv_with_timeout no data received [12:31:16]OFD Sender: No OFD packet to send [12:31:19]accept exits with 8 [12:31:19]New connection [12:31:19]New thread 3067489636 created [12:31:19]Thread 3067632996 joined [12:31:19]Waiting for new connection... [12:31:19] Sock 8.Parse request [12:31:19]Sock 8.Check first char [12:31:19]Sock 8.First char is OK [12:31:19]request: POST /json_proto HTTP/1.0 [12:31:19]Method: POST [12:31:19]URL: /json_proto [12:31:19]Method is POST - this is cgi request [12:31:19]url: /json_proto [12:31:19]query_string will be loaded in cgi processing [12:31:19]execute_cgi json_proto POST (null) [12:31:19]execute_cgi path=json_proto method=POST [12:31:19]POST find Content-Length [12:31:19]Host: 172.17.47.195:8080 [12:31:19]Content-Length: 677 [12:31:19]Content-Type: application/json [12:31:19] [12:31:19]POST finish read [12:31:19]Found Content-Length = 677 [12:31:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871713", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:19]execute_script... [12:31:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871713", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:19]POST & json_proto [12:31:19]process_json_proto [12:31:19]json parsed OK: [12:31:19]protocol is kg_v1.0 [12:31:19]action value=close_receipt [12:31:19]process_action close_receipt [12:31:19]cmd_close_receipt [12:31:19]MH_GetDate [12:31:19]Write to MH i2c: F0 00 00 B2 02 A3 [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: F0 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: F0 09 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: F0 09 00 B2 02 00 18 0E F0 66 96 2E 95 66 E7 [12:31:19]GetLastDocTimeStamp 1727008184 [12:31:19]current date 1727008280 [12:31:19]FM_GetShiftState [12:31:19]SAM_PROTO_GetShiftState [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 13 01 00 [12:31:19]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 0E 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F5 [12:31:19]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:31:19]wFMCommunicate OK [12:31:19]SAM_PROTO_GetShiftState done [12:31:19]FM_GetShiftState done [12:31:19]opened in 1726964224 [12:31:19]opened+sec_in_day 1727050624 [12:31:19]quantity*price = 50036 [12:31:19]sum+1 = 50037 [12:31:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 57 22.09.2024 12:31 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7659 ФПД: 224193933316192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123120&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7659&fm=224193933316192&tin=02508201610067®Number=0000000000190446&sum=50000 [12:31:20]StoreToDocumentArchive [12:31:20]shift 70 fd 7659 [12:31:20]save to /storage/0070/doc_00007659 [12:31:20]save last doc name /storage/0070/doc_00007659 to /storage/kkm_last_doc_name [12:31:20]save OK [12:31:20]Clear old archive folders... [12:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:20]tlvbuf is B6F4E1B0 [12:31:20]SAM_PROTO_ClearQueue [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 09 00 00 [12:31:20]Write to MH i2c: E2 08 00 C0 02 80 09 00 00 00 00 00 00 34 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [12:31:20]RAPDU: 90 00 [12:31:20]wFMCommunicate OK [12:31:20]SAM_PROTO_ClearQueue done [12:31:20]KKMCreateOFDPacket [12:31:20]OFDProtocolAddRootSTLVToBuf [12:31:20]FM_MakeSignedData [12:31:20]FM_MakeSignedData [12:31:20]SAM_PROTO_SignData [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 0D 01 02 [12:31:20]Write to MH i2c: E2 08 00 C1 02 80 0D 01 02 00 00 00 00 3C [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [12:31:20]RAPDU: 90 00 [12:31:20]wFMCommunicate OK [12:31:20]wFMCommunicate request_size=255 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 18 0E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EB 1D 00 00 35 04 06 00 CB [12:31:20]Write to MH i2c: E2 02 01 C2 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 18 0E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EB 1D 00 00 35 04 06 00 CB 00 00 86 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [12:31:20]RAPDU: 90 00 [12:31:20]wFMCommunicate OK [12:31:20]wFMCommunicate request_size=10 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 0D 02 02 05 E7 37 C1 90 60 [12:31:20]Write to MH i2c: E2 0D 00 C3 02 80 0D 02 02 05 00 E7 37 C1 90 60 00 00 18 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [12:31:20]RAPDU: 90 00 [12:31:20]wFMCommunicate OK [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 0D 03 02 [12:31:20]Write to MH i2c: E2 08 00 C4 02 80 0D 03 02 00 00 00 00 41 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 0B 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 0B 00 C4 02 00 6C F8 E7 44 D8 83 C6 97 90 00 89 [12:31:21]RAPDU: 6C F8 E7 44 D8 83 C6 97 90 00 [12:31:21]wFMCommunicate OK [12:31:21]SAM_PROTO_SignData done [12:31:21]FM_MakeSignedData done [12:31:21]CreateOFDProtocolMessage [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 11 00 00 [12:31:21]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 17 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 92 [12:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:31:21]wFMCommunicate OK [12:31:21]CreateOFDProtocolMessage done [12:31:21]OFDSenderStorePacket 7659 [12:31:21]StoreOFDPacket docnum=7659 [12:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 5A 56 07 01 AB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 18 0E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EB 1D 00 00 35 04 06 00 CB E7 37 C1 90 60 6C F8 E7 44 D8 83 C6 97 [12:31:21]CheckFolder [12:31:21]dirname=/storage/ofd_packets [12:31:21]CheckFolder done [12:31:21]ProducePacketName [12:31:21]name=ofd_packets/00007659 [12:31:21]NVStorageSaveData ofd_packets/00007659 [12:31:21]File name is /storage/ofd_packets/00007659 [12:31:21]Write 301 bytes [12:31:21]NVStorageSaveData done [12:31:21]OFDSenderStorePacket done [12:31:21]KKMCreateOFDPacket done [12:31:21]NVStorageSaveData kkm_last_timestamp [12:31:21]File name is /storage/kkm_last_timestamp [12:31:21]Write 4 bytes [12:31:21]NVStorageSaveData done [12:31:21]ExternCall_PrintAddStr [12:31:21]wPrintStart [12:31:21]Write to MH i2c: 01 00 00 C6 02 C8 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [12:31:21]RasterBufferAndPrint [12:31:21]line Счет N : (1)871713 [12:31:21]line ИНН: 02508201610067 [12:31:21]line Контрольно-Кассовый Чек [12:31:21]line ПРОДАЖА [12:31:21]line ТРК (МРК, ГНК) : 63 [12:31:21]line Товар: 2710124130 [12:31:21]line Аи-92-К-5 [12:31:21]line 7.380 * 67.80 [12:31:21]line = 500.36 [12:31:21]line НДС 12% НСП 1% [12:31:21]line > о реализуемом товаре [12:31:21]line ОКРУГЛЕНИЕ: -0.36 [12:31:21]line ИТОГО: 500.00 [12:31:21]line Внесено: 500.00 [12:31:21]line СДАЧА: 0.00 [12:31:21]line НСП 1% : 4.43 [12:31:21]line НДС 12% : 53.14 [12:31:21]line Наличными: 500.00 [12:31:21]line Безнал.: 0.00 [12:31:21]line Место: АЗС № 137 "Партнер Нефть" [12:31:21]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:31:21]line СНО: Общий режим [12:31:21]line Чек 57 22.09.2024 12:31 [12:31:21]line Смена: 70 ФФД: 1.0 [12:31:21]line ЗНМ: 0300000041 [12:31:21]line РНМ: 0000000000190446 [12:31:21]line Версия ККМ: v1.0 [12:31:21]line ФМ: 0000000002094258 [12:31:21]line ФД: 7659 [12:31:21]line ФПД: 224193933316192 [12:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123120&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7659&fm=224193933316192&tin=02508201610067®Number=0000000000190446&sum=50000 [12:31:21]written 0, free lines is 4095 [12:31:21]OFD Sender: Processing packet 7659 [packets to send 51, broken 50] [12:31:21]ProducePacketName [12:31:21]name=ofd_packets/00007659 [12:31:21]OFD Sender: To server: pG, [12:31:21]CommunicateWithHost lk.salyk.kg:30040 [12:31:21]ConnectInit lk.salyk.kg [12:31:21]Write to MH i2c: 01 00 00 F1 02 F3 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 EC 0C F2 [12:31:21]RasterBufferAndPrint [12:31:21]line [12:31:21]line [12:31:21]line [12:31:21]line [12:31:21]line [12:31:21]written 0, free lines is 3314 [12:31:21]MH_Cut [12:31:21]Write to MH i2c: D1 01 00 F8 02 01 CC [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: D1 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: D1 01 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: D1 01 00 F8 02 00 CB [12:31:21]Write to MH i2c: 01 00 00 F9 02 FB [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:22]*** Cut start [12:31:22]*** Purtial cut [12:31:22]*** Stage 1: CUTSNS_PIN = 1 [12:31:22]Read from MH i2c: 01 [12:31:22]MH_I2C_Read... [12:31:22]*** Stop cut motor [12:31:22]Read from MH i2c: 01 07 00 [12:31:22]MH_I2C_Read... [12:31:22]*** Cut end [12:31:22]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 FF 0F 10 [12:31:22]process_action close_receipt done [12:31:22]requested_data is exist [12:31:22]produce_requested_data [12:31:22]requested_item fm.sn is exist - process it [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 11 00 00 [12:31:22]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C7 [12:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:31:22]wFMCommunicate OK [12:31:22]requested_item fd.num is exist - process it [12:31:22]SAM_PROTO_GetFieldsCounters [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 00 00 [12:31:22]Write to MH i2c: E2 08 00 FB 02 80 13 00 00 00 00 00 00 79 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 62 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 62 00 FB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EB 1D 00 00 0E 04 04 00 46 00 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 90 [12:31:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EB 1D 00 00 0E 04 04 00 46 00 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 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_GetFieldsCounters done [12:31:22]requested_item shift.num is exist - process it [12:31:22]requested_item shift.opened is exist - process it [12:31:22]req_shift_opened [12:31:22]FM_GetShiftState [12:31:22]SAM_PROTO_GetShiftState [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 01 00 [12:31:22]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0E 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3E [12:31:22]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_GetShiftState done [12:31:22]FM_GetShiftState done [12:31:22]req_shift_opened done [12:31:22]requested_item shift.open_date is exist - process it [12:31:22]req_shift_open_date [12:31:22]req_shift_open_date done [12:31:22]produce_requested_data done [12:31:22]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7659,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:31:22]process_action_free close_receipt [12:31:22]json_value_free [12:31:22]json_value_free done [12:31:22]process_json_proto returns [12:31:22]Send response to host [12:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7659,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:31:22]free response buf [12:31:22]execute_script done [12:31:22]execute_script returns [12:31:22]free content buf [12:31:22]Sock 8.Close socket [12:31:22]Sock 8.Thread stoped [12:31:23]accept exits with 9 [12:31:23]New connection [12:31:23]New thread 3067632996 created [12:31:23]Thread 3067489636 joined [12:31:23]Waiting for new connection... [12:31:23] Sock 9.Parse request [12:31:23]Sock 9.Check first char [12:31:23]Sock 9.First char is OK [12:31:23]request: POST /json_proto HTTP/1.0 [12:31:23]Method: POST [12:31:23]URL: /json_proto [12:31:23]Method is POST - this is cgi request [12:31:23]url: /json_proto [12:31:23]query_string will be loaded in cgi processing [12:31:23]execute_cgi json_proto POST (null) [12:31:23]execute_cgi path=json_proto method=POST [12:31:23]POST find Content-Length [12:31:23]Host: 172.17.47.195:8080 [12:31:23]Content-Length: 677 [12:31:23]Content-Type: application/json [12:31:23] [12:31:23]POST finish read [12:31:23]Found Content-Length = 677 [12:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.610, "sum" : 380.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:23]execute_script... [12:31: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)871714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.610, "sum" : 380.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:23]POST & json_proto [12:31:23]process_json_proto [12:31:23]json parsed OK: [12:31:23]protocol is kg_v1.0 [12:31:23]action value=close_receipt [12:31:23]process_action close_receipt [12:31:23]cmd_close_receipt [12:31:23]MH_GetDate [12:31:23]Write to MH i2c: F0 00 00 FD 02 EE [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 09 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 09 00 FD 02 00 1C 0E F0 66 96 2E 95 66 36 [12:31:23]GetLastDocTimeStamp 1727008280 [12:31:23]current date 1727008284 [12:31:23]FM_GetShiftState [12:31:23]SAM_PROTO_GetShiftState [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 13 01 00 [12:31:23]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0E 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 40 [12:31:23]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:31:23]wFMCommunicate OK [12:31:23]SAM_PROTO_GetShiftState done [12:31:23]FM_GetShiftState done [12:31:23]opened in 1726964224 [12:31:23]opened+sec_in_day 1727050624 [12:31:23]quantity*price = 38035 [12:31:23]sum+1 = 38037 [12:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.39 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 58 22.09.2024 12:31 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7660 ФПД: 34815272625659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123124&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7660&fm=34815272625659&tin=02508201610067®Number=0000000000190446&sum=38000 [12:31:24]StoreToDocumentArchive [12:31:24]shift 70 fd 7660 [12:31:24]save to /storage/0070/doc_00007660 [12:31:24]save last doc name /storage/0070/doc_00007660 to /storage/kkm_last_doc_name [12:31:24]save OK [12:31:24]Clear old archive folders... [12:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:24]tlvbuf is 017E9610 [12:31:24]SAM_PROTO_ClearQueue [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 09 00 00 [12:31:24]Write to MH i2c: E2 08 00 0B 03 80 09 00 00 00 00 00 00 80 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]SAM_PROTO_ClearQueue done [12:31:24]KKMCreateOFDPacket [12:31:24]OFDProtocolAddRootSTLVToBuf [12:31:24]FM_MakeSignedData [12:31:24]FM_MakeSignedData [12:31:24]SAM_PROTO_SignData [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 0D 01 02 [12:31:24]Write to MH i2c: E2 08 00 0C 03 80 0D 01 02 00 00 00 00 88 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=255 [12:31:24]MH_SAM_APDU [12:31: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 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1C 0E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EC 1D 00 00 35 04 06 00 1F [12:31:24]Write to MH i2c: E2 02 01 0D 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 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1C 0E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EC 1D 00 00 35 04 06 00 1F 00 00 A4 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [12:31:25]RAPDU: 90 00 [12:31:25]wFMCommunicate OK [12:31:25]wFMCommunicate request_size=10 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 0D 02 02 05 AA 0F F5 25 FB [12:31:25]Write to MH i2c: E2 0D 00 0E 03 80 0D 02 02 05 00 AA 0F F5 25 FB 00 00 63 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [12:31:25]RAPDU: 90 00 [12:31:25]wFMCommunicate OK [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 0D 03 02 [12:31:25]Write to MH i2c: E2 08 00 0F 03 80 0D 03 02 00 00 00 00 8D [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 0B 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 0B 00 0F 03 00 6B A1 54 27 32 FE 15 4D 90 00 A7 [12:31:25]RAPDU: 6B A1 54 27 32 FE 15 4D 90 00 [12:31:25]wFMCommunicate OK [12:31:25]SAM_PROTO_SignData done [12:31:25]FM_MakeSignedData done [12:31:25]CreateOFDProtocolMessage [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 11 00 00 [12:31:25]Write to MH i2c: E2 08 00 10 03 80 11 00 00 00 00 00 00 8D [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 17 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 17 00 10 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DE [12:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:31:25]wFMCommunicate OK [12:31:25]CreateOFDProtocolMessage done [12:31:25]OFDSenderStorePacket 7660 [12:31:25]StoreOFDPacket docnum=7660 [12:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E4 BB 07 01 17 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 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1C 0E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EC 1D 00 00 35 04 06 00 1F AA 0F F5 25 FB 6B A1 54 27 32 FE 15 4D [12:31:25]CheckFolder [12:31:25]dirname=/storage/ofd_packets [12:31:25]CheckFolder done [12:31:25]ProducePacketName [12:31:25]name=ofd_packets/00007660 [12:31:25]NVStorageSaveData ofd_packets/00007660 [12:31:25]File name is /storage/ofd_packets/00007660 [12:31:25]Write 301 bytes [12:31:25]NVStorageSaveData done [12:31:25]OFDSenderStorePacket done [12:31:25]KKMCreateOFDPacket done [12:31:25]NVStorageSaveData kkm_last_timestamp [12:31:25]File name is /storage/kkm_last_timestamp [12:31:25]Write 4 bytes [12:31:25]NVStorageSaveData done [12:31:25]ExternCall_PrintAddStr [12:31:25]wPrintStart [12:31:25]Write to MH i2c: 01 00 00 11 03 14 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [12:31:25]RasterBufferAndPrint [12:31:25]line Счет N : (1)871714 [12:31:25]line ИНН: 02508201610067 [12:31:25]line Контрольно-Кассовый Чек [12:31:25]line ПРОДАЖА [12:31:25]line ТРК (МРК, ГНК) : 33 [12:31:25]line Товар: 2710124130 [12:31:25]line Аи-92-К-5 [12:31:25]line 5.610 * 67.80 [12:31:25]line = 380.36 [12:31:25]line НДС 12% НСП 1% [12:31:25]line > о реализуемом товаре [12:31:25]line ОКРУГЛЕНИЕ: -0.36 [12:31:25]line ИТОГО: 380.00 [12:31:25]line Внесено: 380.00 [12:31:25]line СДАЧА: 0.00 [12:31:25]line НСП 1% : 3.37 [12:31:25]line НДС 12% : 40.39 [12:31:25]line Наличными: 380.00 [12:31:25]line Безнал.: 0.00 [12:31:25]line Место: АЗС № 137 "Партнер Нефть" [12:31:25]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:31:25]line СНО: Общий режим [12:31:25]line Чек 58 22.09.2024 12:31 [12:31:25]line Смена: 70 ФФД: 1.0 [12:31:25]line ЗНМ: 0300000041 [12:31:25]line РНМ: 0000000000190446 [12:31:25]line Версия ККМ: v1.0 [12:31:25]line ФМ: 0000000002094258 [12:31:25]line ФД: 7660 [12:31:25]line ФПД: 34815272625659 [12:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123124&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7660&fm=34815272625659&tin=02508201610067®Number=0000000000190446&sum=38000 [12:31:25]written 0, free lines is 4095 [12:31:25]Write to MH i2c: 01 00 00 3C 03 3F [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 F3 0C 45 [12:31:25]RasterBufferAndPrint [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]written 0, free lines is 3324 [12:31:26]MH_Cut [12:31:26]Write to MH i2c: D1 01 00 43 03 01 18 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: D1 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: D1 01 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: D1 01 00 43 03 00 17 [12:31:26]Write to MH i2c: 01 00 00 44 03 47 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** Cut start [12:31:26]*** Purtial cut [12:31:26]*** Stage 1: CUTSNS_PIN = 1 [12:31:26]Read from MH i2c: 01 [12:31:26]MH_I2C_Read... [12:31:26]*** Stop cut motor [12:31:26]*** Cut end [12:31:26]Read from MH i2c: 01 07 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 FF 0F 5C [12:31:26]process_action close_receipt done [12:31:26]requested_data is exist [12:31:26]produce_requested_data [12:31:26]requested_item fm.sn is exist - process it [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 11 00 00 [12:31:26]Write to MH i2c: E2 08 00 45 03 80 11 00 00 00 00 00 00 C2 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 17 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 17 00 45 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 13 [12:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:31:26]wFMCommunicate OK [12:31:27]requested_item fd.num is exist - process it [12:31:27]SAM_PROTO_GetFieldsCounters [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 13 00 00 [12:31:27]Write to MH i2c: E2 08 00 46 03 80 13 00 00 00 00 00 00 C5 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 62 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 62 00 46 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EC 1D 00 00 0E 04 04 00 46 00 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 E0 [12:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EC 1D 00 00 0E 04 04 00 46 00 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 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_GetFieldsCounters done [12:31:27]requested_item shift.num is exist - process it [12:31:27]requested_item shift.opened is exist - process it [12:31:27]req_shift_opened [12:31:27]FM_GetShiftState [12:31:27]SAM_PROTO_GetShiftState [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 13 01 00 [12:31:27]Write to MH i2c: E2 08 00 47 03 80 13 01 00 00 00 00 00 C7 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0E 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0E 00 47 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8A [12:31:27]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_GetShiftState done [12:31:27]FM_GetShiftState done [12:31:27]req_shift_opened done [12:31:27]requested_item shift.open_date is exist - process it [12:31:27]req_shift_open_date [12:31:27]req_shift_open_date done [12:31:27]produce_requested_data done [12:31:27]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7660,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:31:27]process_action_free close_receipt [12:31:27]json_value_free [12:31:27]json_value_free done [12:31:27]process_json_proto returns [12:31:27]Send response to host [12:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7660,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:31:27]free response buf [12:31:27]execute_script done [12:31:27]execute_script returns [12:31:27]free content buf [12:31:27]Sock 9.Close socket [12:31:27]Sock 9.Thread stoped [12:31:27]recv_with_timeout no data received [12:31:27]Connected sock=11 [12:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 5A 56 07 01 AB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 18 0E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EB 1D 00 00 35 04 06 00 CB E7 37 C1 90 60 6C F8 E7 44 D8 83 C6 97 [12:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 8A 46 47 00 E9 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EB 1D 00 00 F4 03 04 00 DD B8 EF 66 B6 04 01 00 00 FD 60 4C 13 B1 4B B4 14 [12:31:29]CommunicateWithHost err = 0 [12:31:29]CheckOFDResponse [12:31:29]1017 (14) - 77093643461234 [12:31:29]1041 (16) - 0000000002094258 [12:31:29]1040 (4) - 7659 [12:31:29]1012 (4) - 22.09.2024 06:27 [12:31:29]1206 (1) - 0 [12:31:29]OFD Sender: Remove packet 7659 [12:31:29]ProducePacketName [12:31:29]name=ofd_packets/00007659 [12:31:29]NVStorageDeleteData [12:31:29]OFD Sender: Processing packet 7660 [packets to send 51, broken 50] [12:31:29]ProducePacketName [12:31:29]name=ofd_packets/00007660 [12:31:29]OFD Sender: To server: pG, [12:31:29]CommunicateWithHost lk.salyk.kg:30040 [12:31:29]ConnectInit lk.salyk.kg [12:31:30]Connected sock=9 [12:31:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E4 BB 07 01 17 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 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1C 0E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EC 1D 00 00 35 04 06 00 1F AA 0F F5 25 FB 6B A1 54 27 32 FE 15 4D [12:31:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 1A 76 47 00 3E 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 32 30 39 34 32 35 38 10 04 04 00 EC 1D 00 00 F4 03 04 00 E0 B8 EF 66 B6 04 01 00 00 1A 34 DD 33 04 3C 1F B5 [12:31:30]CommunicateWithHost err = 0 [12:31:30]CheckOFDResponse [12:31:30]1017 (14) - 77093643461234 [12:31:30]1041 (16) - 0000000002094258 [12:31:30]1040 (4) - 7660 [12:31:30]1012 (4) - 22.09.2024 06:27 [12:31:30]1206 (1) - 0 [12:31:30]OFD Sender: Remove packet 7660 [12:31:30]ProducePacketName [12:31:30]name=ofd_packets/00007660 [12:31:30]NVStorageDeleteData [12:31:31]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:49]recv_with_timeout no data received [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:06]recv_with_timeout no data received [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:27]recv_with_timeout no data received [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:49]recv_with_timeout no data received [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]recv_with_timeout no data received [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]recv_with_timeout no data received [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:47]recv_with_timeout no data received [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:37:57]recv_with_timeout no data received [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:08]accept exits with 8 [12:38:08]New connection [12:38:08]New thread 3067489636 created [12:38:08]Thread 3067632996 joined [12:38:08]Waiting for new connection... [12:38:08] Sock 8.Parse request [12:38:08]Sock 8.Check first char [12:38:08]Sock 8.First char is OK [12:38:08]request: POST /json_proto HTTP/1.0 [12:38:08]Method: POST [12:38:08]URL: /json_proto [12:38:08]Method is POST - this is cgi request [12:38:08]url: /json_proto [12:38:08]query_string will be loaded in cgi processing [12:38:08]execute_cgi json_proto POST (null) [12:38:08]execute_cgi path=json_proto method=POST [12:38:08]POST find Content-Length [12:38:08]Host: 172.17.47.195:8080 [12:38:08]Content-Length: 682 [12:38:08]Content-Type: application/json [12:38:08] [12:38:08]POST finish read [12:38:08]Found Content-Length = 682 [12:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:08]execute_script... [12:38: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)871718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:08]POST & json_proto [12:38:08]process_json_proto [12:38:08]json parsed OK: [12:38:08]protocol is kg_v1.0 [12:38:08]action value=close_receipt [12:38:08]process_action close_receipt [12:38:08]cmd_close_receipt [12:38:08]MH_GetDate [12:38:08]Write to MH i2c: F0 00 00 48 03 3A [12:38:08]Write i2c OK [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: F0 [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: F0 09 00 [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: F0 09 00 48 03 00 B2 0F F0 66 96 2E 95 66 19 [12:38:08]GetLastDocTimeStamp 1727008284 [12:38:08]current date 1727008690 [12:38:08]FM_GetShiftState [12:38:08]SAM_PROTO_GetShiftState [12:38:08]wFMCommunicate request_size=4 [12:38:08]MH_SAM_APDU [12:38:08]CAPDU: 80 13 01 00 [12:38:08]Write to MH i2c: E2 08 00 49 03 80 13 01 00 00 00 00 00 C9 [12:38:08]Write i2c OK [12:38:08]MH_I2C_Read... [12:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:08]Read from MH i2c: E2 [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: E2 0E 00 [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: E2 0E 00 49 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8C [12:38:08]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:38:08]wFMCommunicate OK [12:38:08]SAM_PROTO_GetShiftState done [12:38:08]FM_GetShiftState done [12:38:08]opened in 1726964224 [12:38:08]opened+sec_in_day 1727050624 [12:38:08]quantity*price = 100005 [12:38:08]sum+1 = 100006 [12:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 59 22.09.2024 12:38 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7661 ФПД: 35505921808057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123810&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7661&fm=35505921808057&tin=02508201610067®Number=0000000000190446&sum=100000 [12:38:10]StoreToDocumentArchive [12:38:10]shift 70 fd 7661 [12:38:10]save to /storage/0070/doc_00007661 [12:38:10]save last doc name /storage/0070/doc_00007661 to /storage/kkm_last_doc_name [12:38:10]save OK [12:38:10]Clear old archive folders... [12:38:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:10]tlvbuf is 017DC930 [12:38:10]SAM_PROTO_ClearQueue [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 09 00 00 [12:38:10]Write to MH i2c: E2 08 00 56 03 80 09 00 00 00 00 00 00 CB [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [12:38:10]RAPDU: 90 00 [12:38:10]wFMCommunicate OK [12:38:10]SAM_PROTO_ClearQueue done [12:38:10]KKMCreateOFDPacket [12:38:10]OFDProtocolAddRootSTLVToBuf [12:38:10]FM_MakeSignedData [12:38:10]FM_MakeSignedData [12:38:10]SAM_PROTO_SignData [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 0D 01 02 [12:38:10]Write to MH i2c: E2 08 00 57 03 80 0D 01 02 00 00 00 00 D3 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [12:38:10]RAPDU: 90 00 [12:38:10]wFMCommunicate OK [12:38:10]wFMCommunicate request_size=255 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B2 0F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 ED 1D 00 00 35 04 06 00 20 [12:38:10]Write to MH i2c: E2 02 01 58 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B2 0F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 ED 1D 00 00 35 04 06 00 20 00 00 A0 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [12:38:10]RAPDU: 90 00 [12:38:10]wFMCommunicate OK [12:38:10]wFMCommunicate request_size=10 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 0D 02 02 05 4A DD DB 56 B9 [12:38:10]Write to MH i2c: E2 0D 00 59 03 80 0D 02 02 05 00 4A DD DB 56 B9 00 00 F1 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [12:38:10]RAPDU: 90 00 [12:38:10]wFMCommunicate OK [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 0D 03 02 [12:38:10]Write to MH i2c: E2 08 00 5A 03 80 0D 03 02 00 00 00 00 D8 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 0B 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 0B 00 5A 03 00 B3 93 87 99 5A 0E EB 8A 90 00 1C [12:38:10]RAPDU: B3 93 87 99 5A 0E EB 8A 90 00 [12:38:10]wFMCommunicate OK [12:38:10]SAM_PROTO_SignData done [12:38:10]FM_MakeSignedData done [12:38:10]CreateOFDProtocolMessage [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 11 00 00 [12:38:10]Write to MH i2c: E2 08 00 5B 03 80 11 00 00 00 00 00 00 D8 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 17 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 17 00 5B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 29 [12:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:38:10]wFMCommunicate OK [12:38:10]CreateOFDProtocolMessage done [12:38:10]OFDSenderStorePacket 7661 [12:38:10]StoreOFDPacket docnum=7661 [12:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 69 05 07 01 32 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B2 0F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 ED 1D 00 00 35 04 06 00 20 4A DD DB 56 B9 B3 93 87 99 5A 0E EB 8A [12:38:10]CheckFolder [12:38:10]dirname=/storage/ofd_packets [12:38:10]CheckFolder done [12:38:10]ProducePacketName [12:38:10]name=ofd_packets/00007661 [12:38:10]NVStorageSaveData ofd_packets/00007661 [12:38:10]File name is /storage/ofd_packets/00007661 [12:38:10]Write 301 bytes [12:38:10]NVStorageSaveData done [12:38:10]OFDSenderStorePacket done [12:38:10]KKMCreateOFDPacket done [12:38:10]NVStorageSaveData kkm_last_timestamp [12:38:10]File name is /storage/kkm_last_timestamp [12:38:10]Write 4 bytes [12:38:10]NVStorageSaveData done [12:38:10]OFD Sender: Processing packet 7661 [packets to send 51, broken 50] [12:38:10]ProducePacketName [12:38:10]name=ofd_packets/00007661 [12:38:10]OFD Sender: To server: pG, [12:38:10]CommunicateWithHost lk.salyk.kg:30040 [12:38:10]ConnectInit lk.salyk.kg [12:38:10]ExternCall_PrintAddStr [12:38:10]wPrintStart [12:38:10]Write to MH i2c: 01 00 00 5C 03 5F [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: 01 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: 01 07 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 FF 0F 74 [12:38:10]RasterBufferAndPrint [12:38:10]line Счет N : (1)871718 [12:38:10]line ИНН: 02508201610067 [12:38:10]line Контрольно-Кассовый Чек [12:38:10]line ПРОДАЖА [12:38:10]line ТРК (МРК, ГНК) : 43 [12:38:10]line Товар: 2710124130 [12:38:10]line Аи-92-К-5 [12:38:10]line 14.750 * 67.80 [12:38:10]line = 1000.05 [12:38:10]line НДС 12% НСП 1% [12:38:10]line > о реализуемом товаре [12:38:10]line ОКРУГЛЕНИЕ: -0.05 [12:38:10]line ИТОГО: 1000.00 [12:38:10]line Внесено: 1000.00 [12:38:10]line СДАЧА: 0.00 [12:38:10]line НСП 1% : 8.85 [12:38:10]line НДС 12% : 106.20 [12:38:10]line Наличными: 1000.00 [12:38:10]line Безнал.: 0.00 [12:38:10]line Место: АЗС № 137 "Партнер Нефть" [12:38:10]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:38:10]line СНО: Общий режим [12:38:10]line Чек 59 22.09.2024 12:38 [12:38:10]line Смена: 70 ФФД: 1.0 [12:38:10]line ЗНМ: 0300000041 [12:38:10]line РНМ: 0000000000190446 [12:38:10]line Версия ККМ: v1.0 [12:38:10]line ФМ: 0000000002094258 [12:38:10]line ФД: 7661 [12:38:10]line ФПД: 35505921808057 [12:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123810&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7661&fm=35505921808057&tin=02508201610067®Number=0000000000190446&sum=100000 [12:38:10]written 0, free lines is 4095 [12:38:11]Write to MH i2c: 01 00 00 87 03 8A [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 07 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 EA 0C 87 [12:38:11]RasterBufferAndPrint [12:38:11]line [12:38:11]line [12:38:11]line [12:38:11]line [12:38:11]line [12:38:11]written 0, free lines is 3312 [12:38:11]MH_Cut [12:38:11]Write to MH i2c: D1 01 00 8E 03 01 63 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: D1 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: D1 01 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: D1 01 00 8E 03 00 62 [12:38:11]Write to MH i2c: 01 00 00 8F 03 92 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:12]*** Cut start [12:38:12]*** Purtial cut [12:38:12]*** Stage 1: CUTSNS_PIN = 1 [12:38:12]Read from MH i2c: 01 [12:38:12]MH_I2C_Read... [12:38:12]*** Stop cut motor [12:38:12]*** Cut end [12:38:12]Read from MH i2c: 01 07 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [12:38:12]process_action close_receipt done [12:38:12]requested_data is exist [12:38:12]produce_requested_data [12:38:12]requested_item fm.sn is exist - process it [12:38:12]wFMCommunicate request_size=4 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 11 00 00 [12:38:12]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 17 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5E [12:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:38:12]wFMCommunicate OK [12:38:12]requested_item fd.num is exist - process it [12:38:12]SAM_PROTO_GetFieldsCounters [12:38:12]wFMCommunicate request_size=4 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 13 00 00 [12:38:12]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 62 00 [12:38:12]MH_I2C_Read... [12:38:12]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 ED 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [12:38:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 ED 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:12]wFMCommunicate OK [12:38:12]SAM_PROTO_GetFieldsCounters done [12:38:12]requested_item shift.num is exist - process it [12:38:12]requested_item shift.opened is exist - process it [12:38:12]req_shift_opened [12:38:12]FM_GetShiftState [12:38:12]SAM_PROTO_GetShiftState [12:38:12]wFMCommunicate request_size=4 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 13 01 00 [12:38:12]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 0E 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D5 [12:38:12]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:38:12]wFMCommunicate OK [12:38:12]SAM_PROTO_GetShiftState done [12:38:12]FM_GetShiftState done [12:38:12]req_shift_opened done [12:38:12]requested_item shift.open_date is exist - process it [12:38:12]req_shift_open_date [12:38:12]req_shift_open_date done [12:38:12]produce_requested_data done [12:38:12]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7661,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:38:12]process_action_free close_receipt [12:38:12]json_value_free [12:38:12]json_value_free done [12:38:12]process_json_proto returns [12:38:12]Send response to host [12:38:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7661,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:38:12]free response buf [12:38:12]execute_script done [12:38:12]execute_script returns [12:38:12]free content buf [12:38:12]Sock 8.Close socket [12:38:12]Sock 8.Thread stoped [12:38:14]Connected sock=12 [12:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 69 05 07 01 32 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B2 0F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 ED 1D 00 00 35 04 06 00 20 4A DD DB 56 B9 B3 93 87 99 5A 0E EB 8A [12:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 4B A5 47 00 DE A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 ED 1D 00 00 F4 03 04 00 75 BA EF 66 B6 04 01 00 00 4E 99 59 40 3B 99 35 5A [12:38:16]CommunicateWithHost err = 0 [12:38:16]CheckOFDResponse [12:38:16]1017 (14) - 77093643461234 [12:38:16]1041 (16) - 0000000002094258 [12:38:16]1040 (4) - 7661 [12:38:16]1012 (4) - 22.09.2024 06:34 [12:38:16]1206 (1) - 0 [12:38:16]OFD Sender: Remove packet 7661 [12:38:16]ProducePacketName [12:38:16]name=ofd_packets/00007661 [12:38:16]NVStorageDeleteData [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:22]recv_with_timeout no data received [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:42]recv_with_timeout no data received [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]recv_with_timeout no data received [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:03]recv_with_timeout no data received [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:23]accept exits with 10 [12:40:23]New connection [12:40:23]New thread 3067632996 created [12:40:23]Thread 3067489636 joined [12:40:23]Waiting for new connection... [12:40:23] Sock 10.Parse request [12:40:23]Sock 10.Check first char [12:40:23]Sock 10.First char is OK [12:40:23]request: POST /json_proto HTTP/1.0 [12:40:23]Method: POST [12:40:23]URL: /json_proto [12:40:23]Method is POST - this is cgi request [12:40:23]url: /json_proto [12:40:23]query_string will be loaded in cgi processing [12:40:23]execute_cgi json_proto POST (null) [12:40:23]execute_cgi path=json_proto method=POST [12:40:23]POST find Content-Length [12:40:23]Host: 172.17.47.195:8080 [12:40:23]Content-Length: 687 [12:40:23]Content-Type: application/json [12:40:23] [12:40:23]POST finish read [12:40:23]Found Content-Length = 687 [12:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:23]execute_script... [12:40:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:23]POST & json_proto [12:40:23]process_json_proto [12:40:23]json parsed OK: [12:40:23]protocol is kg_v1.0 [12:40:23]action value=close_receipt [12:40:23]process_action close_receipt [12:40:23]cmd_close_receipt [12:40:23]MH_GetDate [12:40:23]Write to MH i2c: F0 00 00 93 03 85 [12:40:23]Write i2c OK [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: F0 [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: F0 09 00 [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: F0 09 00 93 03 00 38 10 F0 66 96 2E 95 66 EB [12:40:23]GetLastDocTimeStamp 1727008690 [12:40:23]current date 1727008824 [12:40:23]FM_GetShiftState [12:40:23]SAM_PROTO_GetShiftState [12:40:23]wFMCommunicate request_size=4 [12:40:23]MH_SAM_APDU [12:40:23]CAPDU: 80 13 01 00 [12:40:23]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [12:40:23]Write i2c OK [12:40:23]MH_I2C_Read... [12:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:23]Read from MH i2c: E2 [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: E2 0E 00 [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D7 [12:40:23]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:40:23]wFMCommunicate OK [12:40:23]SAM_PROTO_GetShiftState done [12:40:23]FM_GetShiftState done [12:40:23]opened in 1726964224 [12:40:23]opened+sec_in_day 1727050624 [12:40:23]quantity*price = 100050 [12:40:23]sum+1 = 100052 [12:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 60 22.09.2024 12:40 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7662 ФПД: 49248635283506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124024&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7662&fm=49248635283506&tin=02508201610067®Number=0000000000190446&sum=100000 [12:40:24]StoreToDocumentArchive [12:40:24]shift 70 fd 7662 [12:40:24]save to /storage/0070/doc_00007662 [12:40:24]save last doc name /storage/0070/doc_00007662 to /storage/kkm_last_doc_name [12:40:24]save OK [12:40:24]Clear old archive folders... [12:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:40:24]tlvbuf is 01798860 [12:40:24]SAM_PROTO_ClearQueue [12:40:24]wFMCommunicate request_size=4 [12:40:24]MH_SAM_APDU [12:40:24]CAPDU: 80 09 00 00 [12:40:24]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [12:40:24]Write i2c OK [12:40:24]MH_I2C_Read... [12:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:24]Read from MH i2c: E2 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [12:40:24]RAPDU: 90 00 [12:40:24]wFMCommunicate OK [12:40:24]SAM_PROTO_ClearQueue done [12:40:24]KKMCreateOFDPacket [12:40:24]OFDProtocolAddRootSTLVToBuf [12:40:24]FM_MakeSignedData [12:40:24]FM_MakeSignedData [12:40:24]SAM_PROTO_SignData [12:40:24]wFMCommunicate request_size=4 [12:40:24]MH_SAM_APDU [12:40:24]CAPDU: 80 0D 01 02 [12:40:24]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [12:40:24]Write i2c OK [12:40:24]MH_I2C_Read... [12:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:24]Read from MH i2c: E2 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [12:40:24]RAPDU: 90 00 [12:40:24]wFMCommunicate OK [12:40:24]wFMCommunicate request_size=255 [12:40:24]MH_SAM_APDU [12:40:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 3C 00 00 00 F4 03 04 00 38 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EE 1D 00 00 35 04 06 00 [12:40:24]Write to MH i2c: E2 02 01 A3 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 3C 00 00 00 F4 03 04 00 38 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EE 1D 00 00 35 04 06 00 00 00 B2 [12:40:24]Write i2c OK [12:40:24]MH_I2C_Read... [12:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:24]Read from MH i2c: E2 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [12:40:24]RAPDU: 90 00 [12:40:24]wFMCommunicate OK [12:40:24]wFMCommunicate request_size=11 [12:40:24]MH_SAM_APDU [12:40:24]CAPDU: 80 0D 02 02 06 2C CA 97 69 68 32 [12:40:24]Write to MH i2c: E2 0E 00 A4 03 80 0D 02 02 06 00 2C CA 97 69 68 32 00 00 BD [12:40:24]Write i2c OK [12:40:24]MH_I2C_Read... [12:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:25]Read from MH i2c: E2 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 03 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [12:40:25]RAPDU: 90 00 [12:40:25]wFMCommunicate OK [12:40:25]wFMCommunicate request_size=4 [12:40:25]MH_SAM_APDU [12:40:25]CAPDU: 80 0D 03 02 [12:40:25]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:25]Read from MH i2c: E2 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 0B 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 0B 00 A5 03 00 C4 00 97 56 E6 7D 8D 5F 90 00 24 [12:40:25]RAPDU: C4 00 97 56 E6 7D 8D 5F 90 00 [12:40:25]wFMCommunicate OK [12:40:25]SAM_PROTO_SignData done [12:40:25]FM_MakeSignedData done [12:40:25]CreateOFDProtocolMessage [12:40:25]wFMCommunicate request_size=4 [12:40:25]MH_SAM_APDU [12:40:25]CAPDU: 80 11 00 00 [12:40:25]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:25]Read from MH i2c: E2 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 17 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 74 [12:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:40:25]wFMCommunicate OK [12:40:25]CreateOFDProtocolMessage done [12:40:25]OFDSenderStorePacket 7662 [12:40:25]StoreOFDPacket docnum=7662 [12:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 46 4E 08 01 53 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 38 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EE 1D 00 00 35 04 06 00 2C CA 97 69 68 32 C4 00 97 56 E6 7D 8D 5F [12:40:25]CheckFolder [12:40:25]dirname=/storage/ofd_packets [12:40:25]CheckFolder done [12:40:25]ProducePacketName [12:40:25]name=ofd_packets/00007662 [12:40:25]NVStorageSaveData ofd_packets/00007662 [12:40:25]File name is /storage/ofd_packets/00007662 [12:40:25]Write 302 bytes [12:40:25]NVStorageSaveData done [12:40:25]OFDSenderStorePacket done [12:40:25]KKMCreateOFDPacket done [12:40:25]NVStorageSaveData kkm_last_timestamp [12:40:25]File name is /storage/kkm_last_timestamp [12:40:25]Write 4 bytes [12:40:25]NVStorageSaveData done [12:40:25]ExternCall_PrintAddStr [12:40:25]wPrintStart [12:40:25]Write to MH i2c: 01 00 00 A7 03 AA [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 07 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [12:40:25]RasterBufferAndPrint [12:40:25]line Счет N : (1)871720 [12:40:25]line ИНН: 02508201610067 [12:40:25]line Контрольно-Кассовый Чек [12:40:25]line ПРОДАЖА [12:40:25]line ТРК (МРК, ГНК) : 34 [12:40:25]line Товар: 2710194210 [12:40:25]line ДТ(л)-К-4 [12:40:25]line 13.130 * 76.20 [12:40:25]line = 1000.51 [12:40:25]line НДС 12% НСП 1% [12:40:25]line > о реализуемом товаре [12:40:25]line ОКРУГЛЕНИЕ: -0.51 [12:40:25]line ИТОГО: 1000.00 [12:40:25]line Внесено: 1000.00 [12:40:25]line СДАЧА: 0.00 [12:40:25]line НСП 1% : 8.85 [12:40:25]line НДС 12% : 106.25 [12:40:25]line Наличными: 1000.00 [12:40:25]line Безнал.: 0.00 [12:40:25]line Место: АЗС № 137 "Партнер Нефть" [12:40:25]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:40:25]line СНО: Общий режим [12:40:25]line Чек 60 22.09.2024 12:40 [12:40:25]line Смена: 70 ФФД: 1.0 [12:40:25]line ЗНМ: 0300000041 [12:40:25]line РНМ: 0000000000190446 [12:40:25]line Версия ККМ: v1.0 [12:40:25]line ФМ: 0000000002094258 [12:40:25]line ФД: 7662 [12:40:25]line ФПД: 49248635283506 [12:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124024&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7662&fm=49248635283506&tin=02508201610067®Number=0000000000190446&sum=100000 [12:40:25]OFD Sender: Processing packet 7662 [packets to send 51, broken 50] [12:40:25]ProducePacketName [12:40:25]name=ofd_packets/00007662 [12:40:25]OFD Sender: To server: pG, [12:40:25]CommunicateWithHost lk.salyk.kg:30040 [12:40:25]ConnectInit lk.salyk.kg [12:40:25]written 0, free lines is 4095 [12:40:25]Write to MH i2c: 01 00 00 D2 03 D5 [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 07 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 ED 0C D5 [12:40:25]RasterBufferAndPrint [12:40:25]line [12:40:25]line [12:40:25]line [12:40:25]line [12:40:25]line [12:40:25]written 0, free lines is 3315 [12:40:25]MH_Cut [12:40:25]Write to MH i2c: D1 01 00 D9 03 01 AE [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: D1 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: D1 01 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: D1 01 00 D9 03 00 AD [12:40:25]Write to MH i2c: 01 00 00 DA 03 DD [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:26]*** Cut start [12:40:26]*** Purtial cut [12:40:26]*** Stage 1: CUTSNS_PIN = 1 [12:40:26]Read from MH i2c: 01 [12:40:26]MH_I2C_Read... [12:40:26]*** Stop cut motor [12:40:26]*** Cut end [12:40:26]Read from MH i2c: 01 07 00 [12:40:26]MH_I2C_Read... [12:40:26]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [12:40:26]process_action close_receipt done [12:40:26]requested_data is exist [12:40:26]produce_requested_data [12:40:26]requested_item fm.sn is exist - process it [12:40:26]wFMCommunicate request_size=4 [12:40:26]MH_SAM_APDU [12:40:26]CAPDU: 80 11 00 00 [12:40:26]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [12:40:26]Write i2c OK [12:40:26]MH_I2C_Read... [12:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:26]Read from MH i2c: E2 [12:40:26]MH_I2C_Read... [12:40:26]Read from MH i2c: E2 17 00 [12:40:26]MH_I2C_Read... [12:40:26]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A9 [12:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:40:26]wFMCommunicate OK [12:40:26]requested_item fd.num is exist - process it [12:40:26]SAM_PROTO_GetFieldsCounters [12:40:26]wFMCommunicate request_size=4 [12:40:26]MH_SAM_APDU [12:40:26]CAPDU: 80 13 00 00 [12:40:26]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [12:40:26]Write i2c OK [12:40:26]MH_I2C_Read... [12:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:27]Read from MH i2c: E2 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 62 00 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 62 00 DC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EE 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EE 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:27]wFMCommunicate OK [12:40:27]SAM_PROTO_GetFieldsCounters done [12:40:27]requested_item shift.num is exist - process it [12:40:27]requested_item shift.opened is exist - process it [12:40:27]req_shift_opened [12:40:27]FM_GetShiftState [12:40:27]SAM_PROTO_GetShiftState [12:40:27]wFMCommunicate request_size=4 [12:40:27]MH_SAM_APDU [12:40:27]CAPDU: 80 13 01 00 [12:40:27]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [12:40:27]Write i2c OK [12:40:27]MH_I2C_Read... [12:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:27]Read from MH i2c: E2 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 0E 00 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 20 [12:40:27]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:40:27]wFMCommunicate OK [12:40:27]SAM_PROTO_GetShiftState done [12:40:27]FM_GetShiftState done [12:40:27]req_shift_opened done [12:40:27]requested_item shift.open_date is exist - process it [12:40:27]req_shift_open_date [12:40:27]req_shift_open_date done [12:40:27]produce_requested_data done [12:40:27]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7662,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:40:27]process_action_free close_receipt [12:40:27]json_value_free [12:40:27]json_value_free done [12:40:27]process_json_proto returns [12:40:27]Send response to host [12:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7662,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:40:27]free response buf [12:40:27]execute_script done [12:40:27]execute_script returns [12:40:27]free content buf [12:40:27]Sock 10.Close socket [12:40:27]Sock 10.Thread stoped [12:40:31]Connected sock=11 [12:40:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 46 4E 08 01 53 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 38 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EE 1D 00 00 35 04 06 00 2C CA 97 69 68 32 C4 00 97 56 E6 7D 8D 5F [12:40:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 77 95 47 00 18 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EE 1D 00 00 F4 03 04 00 FD BA EF 66 B6 04 01 00 00 72 8D 94 78 8A 48 B7 EE [12:40:32]CommunicateWithHost err = 0 [12:40:32]CheckOFDResponse [12:40:32]1017 (14) - 77093643461234 [12:40:32]1041 (16) - 0000000002094258 [12:40:32]1040 (4) - 7662 [12:40:32]1012 (4) - 22.09.2024 06:36 [12:40:32]1206 (1) - 0 [12:40:32]OFD Sender: Remove packet 7662 [12:40:32]ProducePacketName [12:40:32]name=ofd_packets/00007662 [12:40:32]NVStorageDeleteData [12:40:32]OFD Sender: No OFD packet to send [12:40:33]accept exits with 8 [12:40:33]New connection [12:40:33]New thread 3067489636 created [12:40:33]Thread 3067632996 joined [12:40:33]Waiting for new connection... [12:40:33] Sock 8.Parse request [12:40:33]Sock 8.Check first char [12:40:33]Sock 8.First char is OK [12:40:33]request: POST /json_proto HTTP/1.0 [12:40:33]Method: POST [12:40:33]URL: /json_proto [12:40:33]Method is POST - this is cgi request [12:40:33]url: /json_proto [12:40:33]query_string will be loaded in cgi processing [12:40:33]execute_cgi json_proto POST (null) [12:40:33]execute_cgi path=json_proto method=POST [12:40:33]POST find Content-Length [12:40:33]Host: 172.17.47.195:8080 [12:40:33]Content-Length: 677 [12:40:33]Content-Type: application/json [12:40:33] [12:40:33]POST finish read [12:40:33]Found Content-Length = 677 [12:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:33]execute_script... [12:40:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:33]POST & json_proto [12:40:33]process_json_proto [12:40:33]json parsed OK: [12:40:33]protocol is kg_v1.0 [12:40:33]action value=close_receipt [12:40:33]process_action close_receipt [12:40:33]cmd_close_receipt [12:40:33]MH_GetDate [12:40:33]Write to MH i2c: F0 00 00 DE 03 D0 [12:40:33]Write i2c OK [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: F0 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: F0 09 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: F0 09 00 DE 03 00 42 10 F0 66 96 2E 95 66 40 [12:40:33]GetLastDocTimeStamp 1727008824 [12:40:33]current date 1727008834 [12:40:33]FM_GetShiftState [12:40:33]SAM_PROTO_GetShiftState [12:40:33]wFMCommunicate request_size=4 [12:40:33]MH_SAM_APDU [12:40:33]CAPDU: 80 13 01 00 [12:40:33]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [12:40:33]Write i2c OK [12:40:33]MH_I2C_Read... [12:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:33]Read from MH i2c: E2 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 0E 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 22 [12:40:33]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:40:33]wFMCommunicate OK [12:40:33]SAM_PROTO_GetShiftState done [12:40:33]FM_GetShiftState done [12:40:33]opened in 1726964224 [12:40:33]opened+sec_in_day 1727050624 [12:40:33]quantity*price = 60003 [12:40:33]sum+1 = 60004 [12:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 61 22.09.2024 12:40 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7663 ФПД: 40876378787273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124034&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7663&fm=40876378787273&tin=02508201610067®Number=0000000000190446&sum=60000 [12:40:34]StoreToDocumentArchive [12:40:34]shift 70 fd 7663 [12:40:34]save to /storage/0070/doc_00007663 [12:40:34]save last doc name /storage/0070/doc_00007663 to /storage/kkm_last_doc_name [12:40:34]save OK [12:40:34]Clear old archive folders... [12:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:34]tlvbuf is 01764060 [12:40:34]SAM_PROTO_ClearQueue [12:40:34]wFMCommunicate request_size=4 [12:40:34]MH_SAM_APDU [12:40:34]CAPDU: 80 09 00 00 [12:40:34]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:34]Read from MH i2c: E2 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 03 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [12:40:34]RAPDU: 90 00 [12:40:34]wFMCommunicate OK [12:40:34]SAM_PROTO_ClearQueue done [12:40:34]KKMCreateOFDPacket [12:40:34]OFDProtocolAddRootSTLVToBuf [12:40:34]FM_MakeSignedData [12:40:34]FM_MakeSignedData [12:40:34]SAM_PROTO_SignData [12:40:34]wFMCommunicate request_size=4 [12:40:34]MH_SAM_APDU [12:40:34]CAPDU: 80 0D 01 02 [12:40:34]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:34]Read from MH i2c: E2 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 03 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [12:40:34]RAPDU: 90 00 [12:40:34]wFMCommunicate OK [12:40:34]wFMCommunicate request_size=255 [12:40:34]MH_SAM_APDU [12:40:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 42 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EF 1D 00 00 35 04 06 00 25 [12:40:34]Write to MH i2c: E2 02 01 EE 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 42 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EF 1D 00 00 35 04 06 00 25 00 00 08 [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:34]Read from MH i2c: E2 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 03 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [12:40:34]RAPDU: 90 00 [12:40:34]wFMCommunicate OK [12:40:34]wFMCommunicate request_size=10 [12:40:34]MH_SAM_APDU [12:40:34]CAPDU: 80 0D 02 02 05 2D 46 09 8D C9 [12:40:34]Write to MH i2c: E2 0D 00 EF 03 80 0D 02 02 05 00 2D 46 09 8D C9 00 00 48 [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:35]Read from MH i2c: E2 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: E2 03 00 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [12:40:35]RAPDU: 90 00 [12:40:35]wFMCommunicate OK [12:40:35]wFMCommunicate request_size=4 [12:40:35]MH_SAM_APDU [12:40:35]CAPDU: 80 0D 03 02 [12:40:35]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:35]Read from MH i2c: E2 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: E2 0B 00 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: E2 0B 00 F0 03 00 77 83 85 52 B9 78 5D 00 90 00 CE [12:40:35]RAPDU: 77 83 85 52 B9 78 5D 00 90 00 [12:40:35]wFMCommunicate OK [12:40:35]SAM_PROTO_SignData done [12:40:35]FM_MakeSignedData done [12:40:35]CreateOFDProtocolMessage [12:40:35]wFMCommunicate request_size=4 [12:40:35]MH_SAM_APDU [12:40:35]CAPDU: 80 11 00 00 [12:40:35]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:35]Read from MH i2c: E2 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: E2 17 00 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 BF [12:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:40:35]wFMCommunicate OK [12:40:35]CreateOFDProtocolMessage done [12:40:35]OFDSenderStorePacket 7663 [12:40:35]StoreOFDPacket docnum=7663 [12:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 37 29 07 01 1A 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 42 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EF 1D 00 00 35 04 06 00 25 2D 46 09 8D C9 77 83 85 52 B9 78 5D 00 [12:40:35]CheckFolder [12:40:35]dirname=/storage/ofd_packets [12:40:35]CheckFolder done [12:40:35]ProducePacketName [12:40:35]name=ofd_packets/00007663 [12:40:35]NVStorageSaveData ofd_packets/00007663 [12:40:35]File name is /storage/ofd_packets/00007663 [12:40:35]Write 301 bytes [12:40:35]NVStorageSaveData done [12:40:35]OFDSenderStorePacket done [12:40:35]KKMCreateOFDPacket done [12:40:35]NVStorageSaveData kkm_last_timestamp [12:40:35]File name is /storage/kkm_last_timestamp [12:40:35]Write 4 bytes [12:40:35]NVStorageSaveData done [12:40:35]ExternCall_PrintAddStr [12:40:35]wPrintStart [12:40:35]Write to MH i2c: 01 00 00 F2 03 F5 [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: 01 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: 01 07 00 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [12:40:35]RasterBufferAndPrint [12:40:35]line Счет N : (1)871722 [12:40:35]line ИНН: 02508201610067 [12:40:35]line Контрольно-Кассовый Чек [12:40:35]line ПРОДАЖА [12:40:35]line ТРК (МРК, ГНК) : 43 [12:40:35]line Товар: 2710124130 [12:40:35]line Аи-92-К-5 [12:40:35]line 8.850 * 67.80 [12:40:35]line = 600.03 [12:40:35]line НДС 12% НСП 1% [12:40:35]line > о реализуемом товаре [12:40:35]line ОКРУГЛЕНИЕ: -0.03 [12:40:35]line ИТОГО: 600.00 [12:40:35]line Внесено: 600.00 [12:40:35]line СДАЧА: 0.00 [12:40:35]line НСП 1% : 5.31 [12:40:35]line НДС 12% : 63.72 [12:40:35]line Наличными: 600.00 [12:40:35]line Безнал.: 0.00 [12:40:35]line Место: АЗС № 137 "Партнер Нефть" [12:40:35]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:40:35]line СНО: Общий режим [12:40:35]line Чек 61 22.09.2024 12:40 [12:40:35]line Смена: 70 ФФД: 1.0 [12:40:35]line ЗНМ: 0300000041 [12:40:35]line РНМ: 0000000000190446 [12:40:35]line Версия ККМ: v1.0 [12:40:35]line ФМ: 0000000002094258 [12:40:35]line ФД: 7663 [12:40:35]line ФПД: 40876378787273 [12:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124034&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7663&fm=40876378787273&tin=02508201610067®Number=0000000000190446&sum=60000 [12:40:35]written 0, free lines is 4095 [12:40:35]OFD Sender: Processing packet 7663 [packets to send 51, broken 50] [12:40:35]ProducePacketName [12:40:35]name=ofd_packets/00007663 [12:40:35]OFD Sender: To server: pG, [12:40:35]CommunicateWithHost lk.salyk.kg:30040 [12:40:35]ConnectInit lk.salyk.kg [12:40:35]Connected sock=10 [12:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 37 29 07 01 1A 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 42 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EF 1D 00 00 35 04 06 00 25 2D 46 09 8D C9 77 83 85 52 B9 78 5D 00 [12:40:35]Write to MH i2c: 01 00 00 1D 04 21 [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: 01 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: 01 07 00 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 05 0D 3A [12:40:35]RasterBufferAndPrint [12:40:35]line [12:40:35]line [12:40:35]line [12:40:35]line [12:40:35]line [12:40:35]written 0, free lines is 3345 [12:40:35]MH_Cut [12:40:35]Write to MH i2c: D1 01 00 24 04 01 FA [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: D1 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: D1 01 00 [12:40:35]MH_I2C_Read... [12:40:35]Read from MH i2c: D1 01 00 24 04 00 F9 [12:40:35]Write to MH i2c: 01 00 00 25 04 29 [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:36]*** Cut start [12:40:36]*** Purtial cut [12:40:36]*** Stage 1: CUTSNS_PIN = 1 [12:40:36]Read from MH i2c: 01 [12:40:36]MH_I2C_Read... [12:40:36]*** Stop cut motor [12:40:36]*** Cut end [12:40:36]Read from MH i2c: 01 07 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [12:40:36]process_action close_receipt done [12:40:36]requested_data is exist [12:40:36]produce_requested_data [12:40:36]requested_item fm.sn is exist - process it [12:40:36]wFMCommunicate request_size=4 [12:40:36]MH_SAM_APDU [12:40:36]CAPDU: 80 11 00 00 [12:40:36]Write to MH i2c: E2 08 00 26 04 80 11 00 00 00 00 00 00 A4 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:36]Read from MH i2c: E2 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 17 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 17 00 26 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 F5 [12:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:40:36]wFMCommunicate OK [12:40:36]requested_item fd.num is exist - process it [12:40:36]SAM_PROTO_GetFieldsCounters [12:40:36]wFMCommunicate request_size=4 [12:40:36]MH_SAM_APDU [12:40:36]CAPDU: 80 13 00 00 [12:40:36]Write to MH i2c: E2 08 00 27 04 80 13 00 00 00 00 00 00 A7 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:36]Read from MH i2c: E2 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 62 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 62 00 27 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EF 1D 00 00 0E 04 04 00 46 00 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 CE [12:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 EF 1D 00 00 0E 04 04 00 46 00 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 [12:40:36]wFMCommunicate OK [12:40:36]SAM_PROTO_GetFieldsCounters done [12:40:36]requested_item shift.num is exist - process it [12:40:36]requested_item shift.opened is exist - process it [12:40:36]req_shift_opened [12:40:36]FM_GetShiftState [12:40:36]SAM_PROTO_GetShiftState [12:40:36]wFMCommunicate request_size=4 [12:40:36]MH_SAM_APDU [12:40:36]CAPDU: 80 13 01 00 [12:40:36]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:36]Read from MH i2c: E2 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 0E 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6C [12:40:36]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:40:36]wFMCommunicate OK [12:40:36]SAM_PROTO_GetShiftState done [12:40:36]FM_GetShiftState done [12:40:36]req_shift_opened done [12:40:36]requested_item shift.open_date is exist - process it [12:40:36]req_shift_open_date [12:40:36]req_shift_open_date done [12:40:36]produce_requested_data done [12:40:36]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7663,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:40:36]process_action_free close_receipt [12:40:36]json_value_free [12:40:36]json_value_free done [12:40:36]process_json_proto returns [12:40:36]Send response to host [12:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7663,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:40:36]free response buf [12:40:36]execute_script done [12:40:36]execute_script returns [12:40:36]free content buf [12:40:36]Sock 8.Close socket [12:40:36]Sock 8.Thread stoped [12:40:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 AD 6E 47 00 77 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 EF 1D 00 00 F4 03 04 00 01 BB EF 66 B6 04 01 00 00 AB 0C 67 5C A1 48 A8 C2 [12:40:38]CommunicateWithHost err = 0 [12:40:38]CheckOFDResponse [12:40:38]1017 (14) - 77093643461234 [12:40:38]1041 (16) - 0000000002094258 [12:40:38]1040 (4) - 7663 [12:40:38]1012 (4) - 22.09.2024 06:36 [12:40:38]1206 (1) - 0 [12:40:38]OFD Sender: Remove packet 7663 [12:40:38]ProducePacketName [12:40:38]name=ofd_packets/00007663 [12:40:38]NVStorageDeleteData [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:08]recv_with_timeout no data received [12:41:09]OFD Sender: No OFD packet to send [12:41:14]accept exits with 9 [12:41:14]New connection [12:41:14]New thread 3067632996 created [12:41:14]Thread 3067489636 joined [12:41:14]Waiting for new connection... [12:41:14] Sock 9.Parse request [12:41:14]Sock 9.Check first char [12:41:14]Sock 9.First char is OK [12:41:14]request: POST /json_proto HTTP/1.0 [12:41:14]Method: POST [12:41:14]URL: /json_proto [12:41:14]Method is POST - this is cgi request [12:41:14]url: /json_proto [12:41:14]query_string will be loaded in cgi processing [12:41:14]execute_cgi json_proto POST (null) [12:41:14]execute_cgi path=json_proto method=POST [12:41:14]POST find Content-Length [12:41:14]Host: 172.17.47.195:8080 [12:41:14]Content-Length: 687 [12:41:14]Content-Type: application/json [12:41:14] [12:41:14]POST finish read [12:41:14]Found Content-Length = 687 [12:41:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:14]execute_script... [12:41: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)871721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:14]POST & json_proto [12:41:14]process_json_proto [12:41:14]json parsed OK: [12:41:14]protocol is kg_v1.0 [12:41:14]action value=close_receipt [12:41:14]process_action close_receipt [12:41:14]cmd_close_receipt [12:41:14]MH_GetDate [12:41:14]Write to MH i2c: F0 00 00 29 04 1C [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: F0 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: F0 09 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: F0 09 00 29 04 00 6B 10 F0 66 96 2E 95 66 B5 [12:41:14]GetLastDocTimeStamp 1727008834 [12:41:14]current date 1727008875 [12:41:14]FM_GetShiftState [12:41:14]SAM_PROTO_GetShiftState [12:41:14]wFMCommunicate request_size=4 [12:41:14]MH_SAM_APDU [12:41:14]CAPDU: 80 13 01 00 [12:41:14]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 0E 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6E [12:41:14]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:41:14]wFMCommunicate OK [12:41:14]SAM_PROTO_GetShiftState done [12:41:14]FM_GetShiftState done [12:41:14]opened in 1726964224 [12:41:14]opened+sec_in_day 1727050624 [12:41:14]quantity*price = 350062 [12:41:14]sum+1 = 350064 [12:41:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 62 22.09.2024 12:41 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7664 ФПД: 33306289944020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124115&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7664&fm=33306289944020&tin=02508201610067®Number=0000000000190446&sum=350000 [12:41:15]StoreToDocumentArchive [12:41:15]shift 70 fd 7664 [12:41:15]save to /storage/0070/doc_00007664 [12:41:15]save last doc name /storage/0070/doc_00007664 to /storage/kkm_last_doc_name [12:41:15]save OK [12:41:15]Clear old archive folders... [12:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:41:15]tlvbuf is 01758350 [12:41:15]SAM_PROTO_ClearQueue [12:41:15]wFMCommunicate request_size=4 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 09 00 00 [12:41:15]Write to MH i2c: E2 08 00 37 04 80 09 00 00 00 00 00 00 AD [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [12:41:15]RAPDU: 90 00 [12:41:15]wFMCommunicate OK [12:41:15]SAM_PROTO_ClearQueue done [12:41:15]KKMCreateOFDPacket [12:41:15]OFDProtocolAddRootSTLVToBuf [12:41:15]FM_MakeSignedData [12:41:15]FM_MakeSignedData [12:41:15]SAM_PROTO_SignData [12:41:15]wFMCommunicate request_size=4 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 0D 01 02 [12:41:15]Write to MH i2c: E2 08 00 38 04 80 0D 01 02 00 00 00 00 B5 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [12:41:15]RAPDU: 90 00 [12:41:15]wFMCommunicate OK [12:41:15]wFMCommunicate request_size=255 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 6B 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F0 1D 00 00 35 04 06 00 [12:41:15]Write to MH i2c: E2 02 01 39 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 34 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 6B 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F0 1D 00 00 35 04 06 00 00 00 31 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [12:41:15]RAPDU: 90 00 [12:41:15]wFMCommunicate OK [12:41:15]wFMCommunicate request_size=11 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 0D 02 02 06 1E 4A B9 94 B5 D4 [12:41:15]Write to MH i2c: E2 0E 00 3A 04 80 0D 02 02 06 00 1E 4A B9 94 B5 D4 00 00 02 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [12:41:15]RAPDU: 90 00 [12:41:15]wFMCommunicate OK [12:41:15]wFMCommunicate request_size=4 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 0D 03 02 [12:41:15]Write to MH i2c: E2 08 00 3B 04 80 0D 03 02 00 00 00 00 BA [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 0B 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 0B 00 3B 04 00 9E CD 8C B8 C7 85 D5 82 90 00 0D [12:41:15]RAPDU: 9E CD 8C B8 C7 85 D5 82 90 00 [12:41:15]wFMCommunicate OK [12:41:15]SAM_PROTO_SignData done [12:41:15]FM_MakeSignedData done [12:41:15]CreateOFDProtocolMessage [12:41:15]wFMCommunicate request_size=4 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 11 00 00 [12:41:15]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 17 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 0B [12:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:41:15]wFMCommunicate OK [12:41:15]CreateOFDProtocolMessage done [12:41:15]OFDSenderStorePacket 7664 [12:41:15]StoreOFDPacket docnum=7664 [12:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 30 57 08 01 3D 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 6B 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F0 1D 00 00 35 04 06 00 1E 4A B9 94 B5 D4 9E CD 8C B8 C7 85 D5 82 [12:41:15]CheckFolder [12:41:15]dirname=/storage/ofd_packets [12:41:15]CheckFolder done [12:41:15]ProducePacketName [12:41:15]name=ofd_packets/00007664 [12:41:15]NVStorageSaveData ofd_packets/00007664 [12:41:15]File name is /storage/ofd_packets/00007664 [12:41:15]Write 302 bytes [12:41:15]NVStorageSaveData done [12:41:15]OFDSenderStorePacket done [12:41:15]KKMCreateOFDPacket done [12:41:15]NVStorageSaveData kkm_last_timestamp [12:41:15]File name is /storage/kkm_last_timestamp [12:41:15]Write 4 bytes [12:41:15]NVStorageSaveData done [12:41:15]ExternCall_PrintAddStr [12:41:15]wPrintStart [12:41:15]Write to MH i2c: 01 00 00 3D 04 41 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 07 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [12:41:15]RasterBufferAndPrint [12:41:15]line Счет N : (1)871721 [12:41:15]line ИНН: 02508201610067 [12:41:15]line Контрольно-Кассовый Чек [12:41:15]line ПРОДАЖА [12:41:15]line ТРК (МРК, ГНК) : 21 [12:41:15]line Товар: 2710194210 [12:41:15]line ДТ(л)-К-4 [12:41:15]line 45.940 * 76.20 [12:41:15]line = 3500.63 [12:41:15]line НДС 12% НСП 1% [12:41:15]line > о реализуемом товаре [12:41:15]line ОКРУГЛЕНИЕ: -0.63 [12:41:15]line ИТОГО: 3500.00 [12:41:15]line Внесено: 3500.00 [12:41:15]line СДАЧА: 0.00 [12:41:15]line НСП 1% : 30.98 [12:41:15]line НДС 12% : 371.75 [12:41:15]line Наличными: 3500.00 [12:41:15]line Безнал.: 0.00 [12:41:15]line Место: АЗС № 137 "Партнер Нефть" [12:41:15]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:41:15]line СНО: Общий режим [12:41:15]line Чек 62 22.09.2024 12:41 [12:41:15]line Смена: 70 ФФД: 1.0 [12:41:15]line ЗНМ: 0300000041 [12:41:15]line РНМ: 0000000000190446 [12:41:15]line Версия ККМ: v1.0 [12:41:15]line ФМ: 0000000002094258 [12:41:15]line ФД: 7664 [12:41:15]line ФПД: 33306289944020 [12:41:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124115&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7664&fm=33306289944020&tin=02508201610067®Number=0000000000190446&sum=350000 [12:41:16]OFD Sender: Processing packet 7664 [packets to send 51, broken 50] [12:41:16]ProducePacketName [12:41:16]name=ofd_packets/00007664 [12:41:16]OFD Sender: To server: pG, [12:41:16]CommunicateWithHost lk.salyk.kg:30040 [12:41:16]ConnectInit lk.salyk.kg [12:41:16]written 0, free lines is 4095 [12:41:16]Write to MH i2c: 01 00 00 68 04 6C [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 F9 0C 78 [12:41:16]RasterBufferAndPrint [12:41:16]line [12:41:16]line [12:41:16]line [12:41:16]line [12:41:16]line [12:41:16]written 0, free lines is 3327 [12:41:16]MH_Cut [12:41:16]Write to MH i2c: D1 01 00 6F 04 01 45 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: D1 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: D1 01 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: D1 01 00 6F 04 00 44 [12:41:16]Write to MH i2c: 01 00 00 70 04 74 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:17]*** Cut start [12:41:17]*** Purtial cut [12:41:17]*** Stage 1: CUTSNS_PIN = 1 [12:41:17]Read from MH i2c: 01 [12:41:17]MH_I2C_Read... [12:41:17]*** Stop cut motor [12:41:17]*** Cut end [12:41:17]Read from MH i2c: 01 07 00 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [12:41:17]process_action close_receipt done [12:41:17]requested_data is exist [12:41:17]produce_requested_data [12:41:17]requested_item fm.sn is exist - process it [12:41:17]wFMCommunicate request_size=4 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 11 00 00 [12:41:17]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:17]Read from MH i2c: E2 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 17 00 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 17 00 71 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 40 [12:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:41:17]wFMCommunicate OK [12:41:17]requested_item fd.num is exist - process it [12:41:17]SAM_PROTO_GetFieldsCounters [12:41:17]wFMCommunicate request_size=4 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 13 00 00 [12:41:17]Write to MH i2c: E2 08 00 72 04 80 13 00 00 00 00 00 00 F2 [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:17]Read from MH i2c: E2 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 62 00 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 62 00 72 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F0 1D 00 00 0E 04 04 00 46 00 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 1D [12:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F0 1D 00 00 0E 04 04 00 46 00 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 [12:41:17]wFMCommunicate OK [12:41:17]SAM_PROTO_GetFieldsCounters done [12:41:17]requested_item shift.num is exist - process it [12:41:17]requested_item shift.opened is exist - process it [12:41:17]req_shift_opened [12:41:17]FM_GetShiftState [12:41:17]SAM_PROTO_GetShiftState [12:41:17]wFMCommunicate request_size=4 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 13 01 00 [12:41:17]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 [12:41:17]MH_I2C_Read... [12:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:17]Read from MH i2c: E2 0E 00 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B7 [12:41:17]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:41:17]wFMCommunicate OK [12:41:17]SAM_PROTO_GetShiftState done [12:41:17]FM_GetShiftState done [12:41:17]req_shift_opened done [12:41:17]requested_item shift.open_date is exist - process it [12:41:17]req_shift_open_date [12:41:17]req_shift_open_date done [12:41:17]produce_requested_data done [12:41:17]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7664,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:41:17]process_action_free close_receipt [12:41:17]json_value_free [12:41:17]json_value_free done [12:41:17]process_json_proto returns [12:41:17]Send response to host [12:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7664,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:41:17]free response buf [12:41:17]execute_script done [12:41:17]execute_script returns [12:41:17]free content buf [12:41:17]Sock 9.Close socket [12:41:17]Sock 9.Thread stoped [12:41:18]recv_with_timeout no data received [12:41:21]ConnectInit Can't take IP for lk.salyk.kg [12:41:21]CommunicateWithHost connect error [12:41:21]CommunicateWithHost err = -1 [12:41:21]OFD Sender: Server communicate error [12:41:26]OFD Sender: Processing packet 7664 [packets to send 51, broken 50] [12:41:26]ProducePacketName [12:41:26]name=ofd_packets/00007664 [12:41:26]OFD Sender: To server: pG, [12:41:26]CommunicateWithHost lk.salyk.kg:30040 [12:41:26]ConnectInit lk.salyk.kg [12:41:34]recv_with_timeout no data received [12:41:43]Connected sock=9 [12:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 30 57 08 01 3D 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 6B 10 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F0 1D 00 00 35 04 06 00 1E 4A B9 94 B5 D4 9E CD 8C B8 C7 85 D5 82 [12:41:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 3C ED 47 00 3D 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 32 30 39 34 32 35 38 10 04 04 00 F0 1D 00 00 F4 03 04 00 47 BB EF 66 B6 04 01 00 00 36 86 E5 BF 51 D5 9C 4F [12:41:46]CommunicateWithHost err = 0 [12:41:46]CheckOFDResponse [12:41:46]1017 (14) - 77093643461234 [12:41:46]1041 (16) - 0000000002094258 [12:41:46]1040 (4) - 7664 [12:41:46]1012 (4) - 22.09.2024 06:37 [12:41:46]1206 (1) - 0 [12:41:46]OFD Sender: Remove packet 7664 [12:41:46]ProducePacketName [12:41:46]name=ofd_packets/00007664 [12:41:46]NVStorageDeleteData [12:41:46]OFD Sender: No OFD packet to send [12:41:50]recv_with_timeout no data received [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:03]recv_with_timeout no data received [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:46]recv_with_timeout no data received [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:10]recv_with_timeout no data received [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:09]recv_with_timeout no data received [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:49]ConnectInit Can't connect to host [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:48:59]recv_with_timeout no data received [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:09]recv_with_timeout no data received [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:53]recv_with_timeout no data received [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:29]recv_with_timeout no data received [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:13]recv_with_timeout no data received [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:41]recv_with_timeout no data received [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:43]recv_with_timeout no data received [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:54]recv_with_timeout no data received [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:46]recv_with_timeout no data received [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:20]accept exits with 10 [12:55:20]New connection [12:55:20]New thread 3067489636 created [12:55:20]Thread 3067632996 joined [12:55:20]Waiting for new connection... [12:55:20] Sock 10.Parse request [12:55:20]Sock 10.Check first char [12:55:20]Sock 10.First char is OK [12:55:20]request: POST /json_proto HTTP/1.0 [12:55:20]Method: POST [12:55:20]URL: /json_proto [12:55:20]Method is POST - this is cgi request [12:55:20]url: /json_proto [12:55:20]query_string will be loaded in cgi processing [12:55:20]execute_cgi json_proto POST (null) [12:55:20]execute_cgi path=json_proto method=POST [12:55:20]POST find Content-Length [12:55:20]Host: 172.17.47.195:8080 [12:55:20]Content-Length: 687 [12:55:20]Content-Type: application/json [12:55:20] [12:55:20]POST finish read [12:55:20]Found Content-Length = 687 [12:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 18.320, "sum" : 1395.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1395.00, "payments": [ { "type": 0, "sum" : 1395.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:20]execute_script... [12:55: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)871734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 18.320, "sum" : 1395.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1395.00, "payments": [ { "type": 0, "sum" : 1395.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:20]POST & json_proto [12:55:20]process_json_proto [12:55:20]json parsed OK: [12:55:20]protocol is kg_v1.0 [12:55:20]action value=close_receipt [12:55:20]process_action close_receipt [12:55:20]cmd_close_receipt [12:55:20]MH_GetDate [12:55:20]Write to MH i2c: F0 00 00 74 04 67 [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: F0 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: F0 09 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: F0 09 00 74 04 00 BA 13 F0 66 96 2E 95 66 52 [12:55:20]GetLastDocTimeStamp 1727008875 [12:55:20]current date 1727009722 [12:55:20]FM_GetShiftState [12:55:20]SAM_PROTO_GetShiftState [12:55:20]wFMCommunicate request_size=4 [12:55:20]MH_SAM_APDU [12:55:20]CAPDU: 80 13 01 00 [12:55:20]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:20]Read from MH i2c: E2 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 0E 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B9 [12:55:20]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:55:20]wFMCommunicate OK [12:55:20]SAM_PROTO_GetShiftState done [12:55:20]FM_GetShiftState done [12:55:20]opened in 1726964224 [12:55:20]opened+sec_in_day 1727050624 [12:55:20]quantity*price = 139598 [12:55:20]sum+1 = 139599 [12:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.98 ИТОГО: 1395.00 Внесено: 1500.00 СДАЧА: 105.00 НСП 1% : 12.35 НДС 12% : 148.25 Наличными: 1395.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 63 22.09.2024 12:55 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7665 ФПД: 182881208559052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125522&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7665&fm=182881208559052&tin=02508201610067®Number=0000000000190446&sum=139500 [12:55:21]StoreToDocumentArchive [12:55:21]shift 70 fd 7665 [12:55:21]save to /storage/0070/doc_00007665 [12:55:21]save last doc name /storage/0070/doc_00007665 to /storage/kkm_last_doc_name [12:55:21]save OK [12:55:21]Clear old archive folders... [12:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:55:21]tlvbuf is 017F28E0 [12:55:21]SAM_PROTO_ClearQueue [12:55:21]wFMCommunicate request_size=4 [12:55:21]MH_SAM_APDU [12:55:21]CAPDU: 80 09 00 00 [12:55:21]Write to MH i2c: E2 08 00 82 04 80 09 00 00 00 00 00 00 F8 [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:21]Read from MH i2c: E2 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 03 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [12:55:21]RAPDU: 90 00 [12:55:21]wFMCommunicate OK [12:55:21]SAM_PROTO_ClearQueue done [12:55:21]KKMCreateOFDPacket [12:55:21]OFDProtocolAddRootSTLVToBuf [12:55:21]FM_MakeSignedData [12:55:21]FM_MakeSignedData [12:55:21]SAM_PROTO_SignData [12:55:21]wFMCommunicate request_size=4 [12:55:21]MH_SAM_APDU [12:55:21]CAPDU: 80 0D 01 02 [12:55:21]Write to MH i2c: E2 08 00 83 04 80 0D 01 02 00 00 00 00 00 [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:21]Read from MH i2c: E2 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 03 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [12:55:21]RAPDU: 90 00 [12:55:21]wFMCommunicate OK [12:55:21]wFMCommunicate request_size=255 [12:55:21]MH_SAM_APDU [12:55:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 90 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 39 00 00 00 00 07 04 06 00 EC 20 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BA 13 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F1 1D 00 00 35 04 06 00 [12:55:21]Write to MH i2c: E2 02 01 84 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 34 FF 03 08 00 03 90 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 39 00 00 00 00 07 04 06 00 EC 20 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BA 13 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F1 1D 00 00 35 04 06 00 00 00 35 [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:22]Read from MH i2c: E2 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 03 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [12:55:22]RAPDU: 90 00 [12:55:22]wFMCommunicate OK [12:55:22]wFMCommunicate request_size=11 [12:55:22]MH_SAM_APDU [12:55:22]CAPDU: 80 0D 02 02 06 A6 54 59 78 E5 CC [12:55:22]Write to MH i2c: E2 0E 00 85 04 80 0D 02 02 06 00 A6 54 59 78 E5 CC 00 00 8B [12:55:22]Write i2c OK [12:55:22]MH_I2C_Read... [12:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:22]Read from MH i2c: E2 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 03 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [12:55:22]RAPDU: 90 00 [12:55:22]wFMCommunicate OK [12:55:22]wFMCommunicate request_size=4 [12:55:22]MH_SAM_APDU [12:55:22]CAPDU: 80 0D 03 02 [12:55:22]Write to MH i2c: E2 08 00 86 04 80 0D 03 02 00 00 00 00 05 [12:55:22]Write i2c OK [12:55:22]MH_I2C_Read... [12:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:22]Read from MH i2c: E2 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 0B 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 0B 00 86 04 00 BF D9 92 22 6E 13 22 3B 90 00 30 [12:55:22]RAPDU: BF D9 92 22 6E 13 22 3B 90 00 [12:55:22]wFMCommunicate OK [12:55:22]SAM_PROTO_SignData done [12:55:22]FM_MakeSignedData done [12:55:22]CreateOFDProtocolMessage [12:55:22]wFMCommunicate request_size=4 [12:55:22]MH_SAM_APDU [12:55:22]CAPDU: 80 11 00 00 [12:55:22]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [12:55:22]Write i2c OK [12:55:22]MH_I2C_Read... [12:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:22]Read from MH i2c: E2 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 17 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 56 [12:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:55:22]wFMCommunicate OK [12:55:22]CreateOFDProtocolMessage done [12:55:22]OFDSenderStorePacket 7665 [12:55:22]StoreOFDPacket docnum=7665 [12:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 B5 09 08 01 82 3C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 90 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 39 00 00 00 00 07 04 06 00 EC 20 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BA 13 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F1 1D 00 00 35 04 06 00 A6 54 59 78 E5 CC BF D9 92 22 6E 13 22 3B [12:55:22]CheckFolder [12:55:22]dirname=/storage/ofd_packets [12:55:22]CheckFolder done [12:55:22]ProducePacketName [12:55:22]name=ofd_packets/00007665 [12:55:22]NVStorageSaveData ofd_packets/00007665 [12:55:22]File name is /storage/ofd_packets/00007665 [12:55:22]Write 302 bytes [12:55:22]NVStorageSaveData done [12:55:22]OFDSenderStorePacket done [12:55:22]KKMCreateOFDPacket done [12:55:22]NVStorageSaveData kkm_last_timestamp [12:55:22]File name is /storage/kkm_last_timestamp [12:55:22]Write 4 bytes [12:55:22]NVStorageSaveData done [12:55:22]OFD Sender: Processing packet 7665 [packets to send 51, broken 50] [12:55:22]ProducePacketName [12:55:22]name=ofd_packets/00007665 [12:55:22]OFD Sender: To server: pG, [12:55:22]CommunicateWithHost lk.salyk.kg:30040 [12:55:22]ConnectInit lk.salyk.kg [12:55:22]ExternCall_PrintAddStr [12:55:22]wPrintStart [12:55:22]Write to MH i2c: 01 00 00 88 04 8C [12:55:22]Write i2c OK [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: 01 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: 01 07 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 FF 0F A1 [12:55:22]RasterBufferAndPrint [12:55:22]line Счет N : (1)871734 [12:55:22]line ИНН: 02508201610067 [12:55:22]line Контрольно-Кассовый Чек [12:55:22]line ПРОДАЖА [12:55:22]line ТРК (МРК, ГНК) : 11 [12:55:22]line Товар: 2710194210 [12:55:22]line ДТ(л)-К-4 [12:55:22]line 18.320 * 76.20 [12:55:22]line = 1395.98 [12:55:22]line НДС 12% НСП 1% [12:55:22]line > о реализуемом товаре [12:55:22]line ОКРУГЛЕНИЕ: -0.98 [12:55:22]line ИТОГО: 1395.00 [12:55:22]line Внесено: 1500.00 [12:55:22]line СДАЧА: 105.00 [12:55:22]line НСП 1% : 12.35 [12:55:22]line НДС 12% : 148.25 [12:55:22]line Наличными: 1395.00 [12:55:22]line Безнал.: 0.00 [12:55:22]line Место: АЗС № 137 "Партнер Нефть" [12:55:22]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:55:22]line СНО: Общий режим [12:55:22]line Чек 63 22.09.2024 12:55 [12:55:22]line Смена: 70 ФФД: 1.0 [12:55:22]line ЗНМ: 0300000041 [12:55:22]line РНМ: 0000000000190446 [12:55:22]line Версия ККМ: v1.0 [12:55:22]line ФМ: 0000000002094258 [12:55:22]line ФД: 7665 [12:55:22]line ФПД: 182881208559052 [12:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125522&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7665&fm=182881208559052&tin=02508201610067®Number=0000000000190446&sum=139500 [12:55:22]written 0, free lines is 4095 [12:55:23]Write to MH i2c: 01 00 00 B3 04 B7 [12:55:23]Write i2c OK [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: 01 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: 01 07 00 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 F5 0C BF [12:55:23]RasterBufferAndPrint [12:55:23]line [12:55:23]line [12:55:23]line [12:55:23]line [12:55:23]line [12:55:23]written 0, free lines is 3323 [12:55:23]MH_Cut [12:55:23]Write to MH i2c: D1 01 00 BA 04 01 90 [12:55:23]Write i2c OK [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: D1 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: D1 01 00 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: D1 01 00 BA 04 00 8F [12:55:23]Write to MH i2c: 01 00 00 BB 04 BF [12:55:23]Write i2c OK [12:55:23]MH_I2C_Read... [12:55:23]Connected sock=12 [12:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 B5 09 08 01 82 3C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 90 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 39 00 00 00 00 07 04 06 00 EC 20 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BA 13 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F1 1D 00 00 35 04 06 00 A6 54 59 78 E5 CC BF D9 92 22 6E 13 22 3B [12:55:23]*** Cut start [12:55:23]*** Purtial cut [12:55:23]*** Stage 1: CUTSNS_PIN = 1 [12:55:24]Read from MH i2c: 01 [12:55:24]MH_I2C_Read... [12:55:24]*** Stop cut motor [12:55:24]*** Cut end [12:55:24]Read from MH i2c: 01 07 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [12:55:24]process_action close_receipt done [12:55:24]requested_data is exist [12:55:24]produce_requested_data [12:55:24]requested_item fm.sn is exist - process it [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 11 00 00 [12:55:24]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 17 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 8B [12:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:55:24]wFMCommunicate OK [12:55:24]requested_item fd.num is exist - process it [12:55:24]SAM_PROTO_GetFieldsCounters [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 13 00 00 [12:55:24]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 62 00 [12:55:24]MH_I2C_Read... [12:55:24]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F1 1D 00 00 0E 04 04 00 46 00 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 6C [12:55:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F1 1D 00 00 0E 04 04 00 46 00 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 [12:55:24]wFMCommunicate OK [12:55:24]SAM_PROTO_GetFieldsCounters done [12:55:24]requested_item shift.num is exist - process it [12:55:24]requested_item shift.opened is exist - process it [12:55:24]req_shift_opened [12:55:24]FM_GetShiftState [12:55:24]SAM_PROTO_GetShiftState [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 13 01 00 [12:55:24]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 0E 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 02 [12:55:24]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:55:24]wFMCommunicate OK [12:55:24]SAM_PROTO_GetShiftState done [12:55:24]FM_GetShiftState done [12:55:24]req_shift_opened done [12:55:24]requested_item shift.open_date is exist - process it [12:55:24]req_shift_open_date [12:55:24]req_shift_open_date done [12:55:24]produce_requested_data done [12:55:24]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7665,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:55:24]process_action_free close_receipt [12:55:24]json_value_free [12:55:24]json_value_free done [12:55:24]process_json_proto returns [12:55:24]Send response to host [12:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7665,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:55:24]free response buf [12:55:24]execute_script done [12:55:24]execute_script returns [12:55:24]free content buf [12:55:24]Sock 10.Close socket [12:55:24]Sock 10.Thread stoped [12:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F7 7A 47 00 43 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F1 1D 00 00 F4 03 04 00 79 BE EF 66 B6 04 01 00 00 F7 72 FD AE AD 1D 56 0F [12:55:24]CommunicateWithHost err = 0 [12:55:24]CheckOFDResponse [12:55:24]1017 (14) - 77093643461234 [12:55:24]1041 (16) - 0000000002094258 [12:55:24]1040 (4) - 7665 [12:55:24]1012 (4) - 22.09.2024 06:51 [12:55:24]1206 (1) - 0 [12:55:24]OFD Sender: Remove packet 7665 [12:55:24]ProducePacketName [12:55:24]name=ofd_packets/00007665 [12:55:24]NVStorageDeleteData [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:49]recv_with_timeout no data received [12:55:50]OFD Sender: No OFD packet to send [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:08]recv_with_timeout no data received [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: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:43]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]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:36]recv_with_timeout no data received [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 8 [12:59:16]New connection [12:59:16]New thread 3067632996 created [12:59:16]Thread 3067489636 joined [12:59:16]Waiting for new connection... [12:59:16] Sock 8.Parse request [12:59:16]Sock 8.Check first char [12:59:16]Sock 8.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.47.195:8080 [12:59:16]Content-Length: 687 [12:59:16]Content-Type: application/json [12:59:16] [12:59:16]POST finish read [12:59:16]Found Content-Length = 687 [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)871735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)871735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 BF 04 B2 [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 BF 04 00 A5 14 F0 66 96 2E 95 66 89 [12:59:16]GetLastDocTimeStamp 1727009722 [12:59:16]current date 1727009957 [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 C0 04 80 13 01 00 00 00 00 00 41 [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 C0 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 04 [12:59:16]RAPDU: 09 00 01 00 62 EF 66 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 1726964224 [12:59:16]opened+sec_in_day 1727050624 [12:59:16]quantity*price = 100050 [12:59:16]sum+1 = 100052 [12:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 64 22.09.2024 12:59 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7666 ФПД: 167637062657268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125917&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7666&fm=167637062657268&tin=02508201610067®Number=0000000000190446&sum=100000 [12:59:17]StoreToDocumentArchive [12:59:17]shift 70 fd 7666 [12:59:17]save to /storage/0070/doc_00007666 [12:59:17]save last doc name /storage/0070/doc_00007666 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=252 [12:59:17]tlvbuf is 01758440 [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 CD 04 80 09 00 00 00 00 00 00 43 [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 CD 04 00 90 00 45 [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 CE 04 80 0D 01 02 00 00 00 00 4B [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 CE 04 00 90 00 46 [12:59:17]RAPDU: 90 00 [12:59:17]wFMCommunicate OK [12:59:17]wFMCommunicate request_size=255 [12:59:17]MH_SAM_APDU [12:59:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A5 14 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F2 1D 00 00 35 04 06 00 [12:59:17]Write to MH i2c: E2 02 01 CF 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A5 14 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F2 1D 00 00 35 04 06 00 00 00 58 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]*** iso7816_exchange 80 0D 02 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 CF 04 00 90 00 47 [12:59:17]RAPDU: 90 00 [12:59:17]wFMCommunicate OK [12:59:17]wFMCommunicate request_size=11 [12:59:17]MH_SAM_APDU [12:59:17]CAPDU: 80 0D 02 02 06 98 77 0B 92 24 F4 [12:59:17]Write to MH i2c: E2 0E 00 D0 04 80 0D 02 02 06 00 98 77 0B 92 24 F4 00 00 1E [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]*** iso7816_exchange 80 0D 02 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 D0 04 00 90 00 48 [12:59:17]RAPDU: 90 00 [12:59:17]wFMCommunicate OK [12:59:17]wFMCommunicate request_size=4 [12:59:17]MH_SAM_APDU [12:59:17]CAPDU: 80 0D 03 02 [12:59:17]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:17]Read from MH i2c: E2 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: E2 0B 00 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: E2 0B 00 D1 04 00 2D EA B3 72 D4 B9 32 A0 90 00 EC [12:59:17]RAPDU: 2D EA B3 72 D4 B9 32 A0 90 00 [12:59:17]wFMCommunicate OK [12:59:17]SAM_PROTO_SignData done [12:59:17]FM_MakeSignedData done [12:59:17]CreateOFDProtocolMessage [12:59:17]wFMCommunicate request_size=4 [12:59:17]MH_SAM_APDU [12:59:17]CAPDU: 80 11 00 00 [12:59:17]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:17]Read from MH i2c: E2 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: E2 17 00 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A1 [12:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:59:17]wFMCommunicate OK [12:59:17]CreateOFDProtocolMessage done [12:59:17]OFDSenderStorePacket 7666 [12:59:17]StoreOFDPacket docnum=7666 [12:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 14 5E 08 01 E3 50 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A5 14 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F2 1D 00 00 35 04 06 00 98 77 0B 92 24 F4 2D EA B3 72 D4 B9 32 A0 [12:59:17]CheckFolder [12:59:17]dirname=/storage/ofd_packets [12:59:17]CheckFolder done [12:59:17]ProducePacketName [12:59:17]name=ofd_packets/00007666 [12:59:17]NVStorageSaveData ofd_packets/00007666 [12:59:17]File name is /storage/ofd_packets/00007666 [12:59:17]Write 302 bytes [12:59:17]NVStorageSaveData done [12:59:17]OFDSenderStorePacket done [12:59:17]KKMCreateOFDPacket done [12:59:17]NVStorageSaveData kkm_last_timestamp [12:59:17]File name is /storage/kkm_last_timestamp [12:59:17]Write 4 bytes [12:59:17]NVStorageSaveData done [12:59:17]ExternCall_PrintAddStr [12:59:17]wPrintStart [12:59:17]Write to MH i2c: 01 00 00 D3 04 D7 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 07 00 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [12:59:17]RasterBufferAndPrint [12:59:17]line Счет N : (1)871735 [12:59:17]line ИНН: 02508201610067 [12:59:17]line Контрольно-Кассовый Чек [12:59:17]line ПРОДАЖА [12:59:17]line ТРК (МРК, ГНК) : 11 [12:59:17]line Товар: 2710194210 [12:59:17]line ДТ(л)-К-4 [12:59:17]line 13.130 * 76.20 [12:59:17]line = 1000.51 [12:59:17]line НДС 12% НСП 1% [12:59:17]line > о реализуемом товаре [12:59:17]line ОКРУГЛЕНИЕ: -0.51 [12:59:17]line ИТОГО: 1000.00 [12:59:17]line Внесено: 1000.00 [12:59:17]line СДАЧА: 0.00 [12:59:17]line НСП 1% : 8.85 [12:59:17]line НДС 12% : 106.25 [12:59:17]line Наличными: 1000.00 [12:59:17]line Безнал.: 0.00 [12:59:17]line Место: АЗС № 137 "Партнер Нефть" [12:59:17]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [12:59:17]line СНО: Общий режим [12:59:17]line Чек 64 22.09.2024 12:59 [12:59:17]line Смена: 70 ФФД: 1.0 [12:59:17]line ЗНМ: 0300000041 [12:59:17]line РНМ: 0000000000190446 [12:59:17]line Версия ККМ: v1.0 [12:59:17]line ФМ: 0000000002094258 [12:59:17]line ФД: 7666 [12:59:17]line ФПД: 167637062657268 [12:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125917&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7666&fm=167637062657268&tin=02508201610067®Number=0000000000190446&sum=100000 [12:59:18]OFD Sender: Processing packet 7666 [packets to send 51, broken 50] [12:59:18]ProducePacketName [12:59:18]name=ofd_packets/00007666 [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:18]Write to MH i2c: 01 00 00 FE 04 02 [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 FE 04 00 00 00 00 00 F0 0C 05 [12:59:18]RasterBufferAndPrint [12:59:18]line [12:59:18]line [12:59:18]line [12:59:18]line [12:59:18]line [12:59:18]written 0, free lines is 3318 [12:59:18]MH_Cut [12:59:18]Write to MH i2c: D1 01 00 05 05 01 DC [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D1 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D1 01 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D1 01 00 05 05 00 DB [12:59:18]Write to MH i2c: 01 00 00 06 05 0B [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:19]*** Cut start [12:59:19]*** Purtial cut [12:59:19]*** Stage 1: CUTSNS_PIN = 1 [12:59:19]Read from MH i2c: 01 [12:59:19]MH_I2C_Read... [12:59:19]*** Stop cut motor [12:59:19]*** Cut end [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 06 05 00 00 00 00 00 FF 0F 20 [12:59:19]process_action close_receipt done [12:59:19]requested_data is exist [12:59:19]produce_requested_data [12:59:19]requested_item fm.sn is exist - process it [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 11 00 00 [12:59:19]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 17 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 17 00 07 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D7 [12:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [12:59:19]wFMCommunicate OK [12:59:19]requested_item fd.num is exist - process it [12:59:19]SAM_PROTO_GetFieldsCounters [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 13 00 00 [12:59:19]Write to MH i2c: E2 08 00 08 05 80 13 00 00 00 00 00 00 89 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 62 00 [12:59:19]MH_I2C_Read... [12:59:19]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F2 1D 00 00 0E 04 04 00 46 00 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 BC [12:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F2 1D 00 00 0E 04 04 00 46 00 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 [12:59:19]wFMCommunicate OK [12:59:19]SAM_PROTO_GetFieldsCounters done [12:59:19]requested_item shift.num is exist - process it [12:59:19]requested_item shift.opened is exist - process it [12:59:19]req_shift_opened [12:59:19]FM_GetShiftState [12:59:19]SAM_PROTO_GetShiftState [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 13 01 00 [12:59:19]Write to MH i2c: E2 08 00 09 05 80 13 01 00 00 00 00 00 8B [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 0E 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 0E 00 09 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 4E [12:59:19]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [12:59:19]wFMCommunicate OK [12:59:19]SAM_PROTO_GetShiftState done [12:59:19]FM_GetShiftState done [12:59:19]req_shift_opened done [12:59:19]requested_item shift.open_date is exist - process it [12:59:19]req_shift_open_date [12:59:19]req_shift_open_date done [12:59:19]produce_requested_data done [12:59:19]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7666,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [12:59:19]process_action_free close_receipt [12:59:19]json_value_free [12:59:19]json_value_free done [12:59:19]process_json_proto returns [12:59:19]Send response to host [12:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7666,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [12:59:19]free response buf [12:59:19]execute_script done [12:59:19]execute_script returns [12:59:19]free content buf [12:59:19]Sock 8.Close socket [12:59:19]Sock 8.Thread stoped [12:59:23]ConnectInit Can't take IP for lk.salyk.kg [12:59:23]CommunicateWithHost connect error [12:59:23]CommunicateWithHost err = -1 [12:59:23]OFD Sender: Server communicate error [12:59:28]OFD Sender: Processing packet 7666 [packets to send 51, broken 50] [12:59:28]ProducePacketName [12:59:28]name=ofd_packets/00007666 [12:59:28]OFD Sender: To server: pG, [12:59:28]CommunicateWithHost lk.salyk.kg:30040 [12:59:28]ConnectInit lk.salyk.kg [12:59:31]recv_with_timeout no data received [12:59:33]Connected sock=8 [12:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 14 5E 08 01 E3 50 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A5 14 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F2 1D 00 00 35 04 06 00 98 77 0B 92 24 F4 2D EA B3 72 D4 B9 32 A0 [12:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 EC D0 47 00 95 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 32 30 39 34 32 35 38 10 04 04 00 F2 1D 00 00 F4 03 04 00 73 BF EF 66 B6 04 01 00 00 9E 69 15 5B 30 65 5F CF [12:59:33]CommunicateWithHost err = 0 [12:59:33]CheckOFDResponse [12:59:33]1017 (14) - 77093643461234 [12:59:33]1041 (16) - 0000000002094258 [12:59:33]1040 (4) - 7666 [12:59:33]1012 (4) - 22.09.2024 06:55 [12:59:33]1206 (1) - 0 [12:59:33]OFD Sender: Remove packet 7666 [12:59:33]ProducePacketName [12:59:33]name=ofd_packets/00007666 [12:59:33]NVStorageDeleteData [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:01]accept exits with 9 [13:00:01]New connection [13:00:01]New thread 3067489636 created [13:00:01]Thread 3067632996 joined [13:00:01]Waiting for new connection... [13:00:01] Sock 9.Parse request [13:00:01]Sock 9.Check first char [13:00:01]Sock 9.First char is OK [13:00:01]request: POST /json_proto HTTP/1.0 [13:00:01]Method: POST [13:00:01]URL: /json_proto [13:00:01]Method is POST - this is cgi request [13:00:01]url: /json_proto [13:00:01]query_string will be loaded in cgi processing [13:00:01]execute_cgi json_proto POST (null) [13:00:01]execute_cgi path=json_proto method=POST [13:00:01]POST find Content-Length [13:00:01]Host: 172.17.47.195:8080 [13:00:01]Content-Length: 678 [13:00:01]Content-Type: application/json [13:00:01] [13:00:01]POST finish read [13:00:01]Found Content-Length = 678 [13:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871736", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:01]execute_script... [13:00:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871736", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:01]POST & json_proto [13:00:01]process_json_proto [13:00:01]json parsed OK: [13:00:01]protocol is kg_v1.0 [13:00:01]action value=close_receipt [13:00:01]process_action close_receipt [13:00:01]cmd_close_receipt [13:00:01]MH_GetDate [13:00:01]Write to MH i2c: F0 00 00 0A 05 FE [13:00:01]Write i2c OK [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: F0 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: F0 09 00 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: F0 09 00 0A 05 00 D2 14 F0 66 96 2E 95 66 02 [13:00:01]GetLastDocTimeStamp 1727009957 [13:00:01]current date 1727010002 [13:00:01]FM_GetShiftState [13:00:01]SAM_PROTO_GetShiftState [13:00:01]wFMCommunicate request_size=4 [13:00:01]MH_SAM_APDU [13:00:01]CAPDU: 80 13 01 00 [13:00:01]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [13:00:01]Write i2c OK [13:00:01]MH_I2C_Read... [13:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:01]Read from MH i2c: E2 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: E2 0E 00 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 50 [13:00:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:00:01]wFMCommunicate OK [13:00:01]SAM_PROTO_GetShiftState done [13:00:01]FM_GetShiftState done [13:00:01]opened in 1726964224 [13:00:01]opened+sec_in_day 1727050624 [13:00:01]quantity*price = 70037 [13:00:01]sum+1 = 70038 [13:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 65 22.09.2024 13:00 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7667 ФПД: 231558635842964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130002&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7667&fm=231558635842964&tin=02508201610067®Number=0000000000190446&sum=70000 [13:00:02]StoreToDocumentArchive [13:00:02]shift 70 fd 7667 [13:00:02]save to /storage/0070/doc_00007667 [13:00:02]save last doc name /storage/0070/doc_00007667 to /storage/kkm_last_doc_name [13:00:02]save OK [13:00:02]Clear old archive folders... [13:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:02]tlvbuf is 017DC0D0 [13:00:02]SAM_PROTO_ClearQueue [13:00:02]wFMCommunicate request_size=4 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 09 00 00 [13:00:02]Write to MH i2c: E2 08 00 18 05 80 09 00 00 00 00 00 00 8F [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [13:00:02]RAPDU: 90 00 [13:00:02]wFMCommunicate OK [13:00:02]SAM_PROTO_ClearQueue done [13:00:02]KKMCreateOFDPacket [13:00:02]OFDProtocolAddRootSTLVToBuf [13:00:02]FM_MakeSignedData [13:00:02]FM_MakeSignedData [13:00:02]SAM_PROTO_SignData [13:00:02]wFMCommunicate request_size=4 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 0D 01 02 [13:00:02]Write to MH i2c: E2 08 00 19 05 80 0D 01 02 00 00 00 00 97 [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [13:00:02]RAPDU: 90 00 [13:00:02]wFMCommunicate OK [13:00:02]wFMCommunicate request_size=255 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D2 14 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F3 1D 00 00 35 04 06 00 D2 [13:00:02]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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D2 14 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F3 1D 00 00 35 04 06 00 D2 00 00 9F [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [13:00:02]RAPDU: 90 00 [13:00:02]wFMCommunicate OK [13:00:02]wFMCommunicate request_size=10 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 0D 02 02 05 99 F2 3B ED 94 [13:00:02]Write to MH i2c: E2 0D 00 1B 05 80 0D 02 02 05 00 99 F2 3B ED 94 00 00 EB [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [13:00:02]RAPDU: 90 00 [13:00:02]wFMCommunicate OK [13:00:02]wFMCommunicate request_size=4 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 0D 03 02 [13:00:02]Write to MH i2c: E2 08 00 1C 05 80 0D 03 02 00 00 00 00 9C [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 0B 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 0B 00 1C 05 00 45 D5 B6 F7 1F 66 BF 53 90 00 FB [13:00:02]RAPDU: 45 D5 B6 F7 1F 66 BF 53 90 00 [13:00:02]wFMCommunicate OK [13:00:02]SAM_PROTO_SignData done [13:00:02]FM_MakeSignedData done [13:00:02]CreateOFDProtocolMessage [13:00:02]wFMCommunicate request_size=4 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 11 00 00 [13:00:02]Write to MH i2c: E2 08 00 1D 05 80 11 00 00 00 00 00 00 9C [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 17 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 17 00 1D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 ED [13:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:00:02]wFMCommunicate OK [13:00:02]CreateOFDProtocolMessage done [13:00:02]OFDSenderStorePacket 7667 [13:00:02]StoreOFDPacket docnum=7667 [13:00:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 29 B5 07 01 4C 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D2 14 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F3 1D 00 00 35 04 06 00 D2 99 F2 3B ED 94 45 D5 B6 F7 1F 66 BF 53 [13:00:02]CheckFolder [13:00:02]dirname=/storage/ofd_packets [13:00:02]CheckFolder done [13:00:02]ProducePacketName [13:00:02]name=ofd_packets/00007667 [13:00:02]NVStorageSaveData ofd_packets/00007667 [13:00:02]File name is /storage/ofd_packets/00007667 [13:00:02]Write 301 bytes [13:00:02]NVStorageSaveData done [13:00:02]OFDSenderStorePacket done [13:00:02]KKMCreateOFDPacket done [13:00:02]NVStorageSaveData kkm_last_timestamp [13:00:02]File name is /storage/kkm_last_timestamp [13:00:02]Write 4 bytes [13:00:02]NVStorageSaveData done [13:00:02]OFD Sender: Processing packet 7667 [packets to send 51, broken 50] [13:00:02]ProducePacketName [13:00:02]name=ofd_packets/00007667 [13:00:02]OFD Sender: To server: pG, [13:00:02]CommunicateWithHost lk.salyk.kg:30040 [13:00:02]ConnectInit lk.salyk.kg [13:00:02]ExternCall_PrintAddStr [13:00:02]wPrintStart [13:00:02]Write to MH i2c: 01 00 00 1E 05 23 [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: 01 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: 01 07 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: 01 07 00 1E 05 00 00 00 00 00 FF 0F 38 [13:00:02]RasterBufferAndPrint [13:00:02]line Счет N : (1)871736 [13:00:02]line ИНН: 02508201610067 [13:00:02]line Контрольно-Кассовый Чек [13:00:02]line ПРОДАЖА [13:00:02]line ТРК (МРК, ГНК) : 53 [13:00:02]line Товар: 2710124130 [13:00:02]line Аи-92-К-5 [13:00:02]line 10.330 * 67.80 [13:00:02]line = 700.37 [13:00:02]line НДС 12% НСП 1% [13:00:02]line > о реализуемом товаре [13:00:02]line ОКРУГЛЕНИЕ: -0.37 [13:00:02]line ИТОГО: 700.00 [13:00:02]line Внесено: 700.00 [13:00:02]line СДАЧА: 0.00 [13:00:02]line НСП 1% : 6.20 [13:00:02]line НДС 12% : 74.38 [13:00:02]line Наличными: 700.00 [13:00:02]line Безнал.: 0.00 [13:00:02]line Место: АЗС № 137 "Партнер Нефть" [13:00:02]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [13:00:02]line СНО: Общий режим [13:00:02]line Чек 65 22.09.2024 13:00 [13:00:02]line Смена: 70 ФФД: 1.0 [13:00:02]line ЗНМ: 0300000041 [13:00:02]line РНМ: 0000000000190446 [13:00:02]line Версия ККМ: v1.0 [13:00:02]line ФМ: 0000000002094258 [13:00:02]line ФД: 7667 [13:00:03]line ФПД: 231558635842964 [13:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130002&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7667&fm=231558635842964&tin=02508201610067®Number=0000000000190446&sum=70000 [13:00:03]written 0, free lines is 4095 [13:00:03]Write to MH i2c: 01 00 00 49 05 4E [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: 01 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: 01 07 00 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 F2 0C 53 [13:00:03]RasterBufferAndPrint [13:00:03]line [13:00:03]line [13:00:03]line [13:00:03]line [13:00:03]line [13:00:03]written 0, free lines is 3320 [13:00:03]MH_Cut [13:00:03]Write to MH i2c: D1 01 00 50 05 01 27 [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: D1 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: D1 01 00 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: D1 01 00 50 05 00 26 [13:00:03]Write to MH i2c: 01 00 00 51 05 56 [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:03]Connected sock=11 [13:00:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 29 B5 07 01 4C 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D2 14 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F3 1D 00 00 35 04 06 00 D2 99 F2 3B ED 94 45 D5 B6 F7 1F 66 BF 53 [13:00:04]*** Cut start [13:00:04]*** Purtial cut [13:00:04]*** Stage 1: CUTSNS_PIN = 1 [13:00:04]Read from MH i2c: 01 [13:00:04]MH_I2C_Read... [13:00:04]*** Stop cut motor [13:00:04]*** Cut end [13:00:04]Read from MH i2c: 01 07 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FF 0F 6B [13:00:04]process_action close_receipt done [13:00:04]requested_data is exist [13:00:04]produce_requested_data [13:00:04]requested_item fm.sn is exist - process it [13:00:04]wFMCommunicate request_size=4 [13:00:04]MH_SAM_APDU [13:00:04]CAPDU: 80 11 00 00 [13:00:04]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [13:00:04]Write i2c OK [13:00:04]MH_I2C_Read... [13:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:04]Read from MH i2c: E2 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 17 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 22 [13:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:00:04]wFMCommunicate OK [13:00:04]requested_item fd.num is exist - process it [13:00:04]SAM_PROTO_GetFieldsCounters [13:00:04]wFMCommunicate request_size=4 [13:00:04]MH_SAM_APDU [13:00:04]CAPDU: 80 13 00 00 [13:00:04]Write to MH i2c: E2 08 00 53 05 80 13 00 00 00 00 00 00 D4 [13:00:04]Write i2c OK [13:00:04]MH_I2C_Read... [13:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:04]Read from MH i2c: E2 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 62 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 62 00 53 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F3 1D 00 00 0E 04 04 00 46 00 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 0B [13:00:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F3 1D 00 00 0E 04 04 00 46 00 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 [13:00:04]wFMCommunicate OK [13:00:04]SAM_PROTO_GetFieldsCounters done [13:00:04]requested_item shift.num is exist - process it [13:00:04]requested_item shift.opened is exist - process it [13:00:04]req_shift_opened [13:00:04]FM_GetShiftState [13:00:04]SAM_PROTO_GetShiftState [13:00:04]wFMCommunicate request_size=4 [13:00:04]MH_SAM_APDU [13:00:04]CAPDU: 80 13 01 00 [13:00:04]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [13:00:04]Write i2c OK [13:00:04]MH_I2C_Read... [13:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:04]Read from MH i2c: E2 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 0E 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 99 [13:00:04]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:00:04]wFMCommunicate OK [13:00:04]SAM_PROTO_GetShiftState done [13:00:04]FM_GetShiftState done [13:00:04]req_shift_opened done [13:00:04]requested_item shift.open_date is exist - process it [13:00:04]req_shift_open_date [13:00:04]req_shift_open_date done [13:00:04]produce_requested_data done [13:00:04]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7667,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [13:00:04]process_action_free close_receipt [13:00:04]json_value_free [13:00:04]json_value_free done [13:00:04]process_json_proto returns [13:00:04]Send response to host [13:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7667,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [13:00:04]free response buf [13:00:04]execute_script done [13:00:04]execute_script returns [13:00:04]free content buf [13:00:04]Sock 9.Close socket [13:00:04]Sock 9.Thread stoped [13:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 1F B5 47 00 F3 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 32 30 39 34 32 35 38 10 04 04 00 F3 1D 00 00 F4 03 04 00 91 BF EF 66 B6 04 01 00 00 55 07 4D 9D 28 61 04 7A [13:00:05]CommunicateWithHost err = 0 [13:00:05]CheckOFDResponse [13:00:05]1017 (14) - 77093643461234 [13:00:05]1041 (16) - 0000000002094258 [13:00:05]1040 (4) - 7667 [13:00:05]1012 (4) - 22.09.2024 06:56 [13:00:05]1206 (1) - 0 [13:00:05]OFD Sender: Remove packet 7667 [13:00:05]ProducePacketName [13:00:05]name=ofd_packets/00007667 [13:00:05]NVStorageDeleteData [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:18]recv_with_timeout no data received [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [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:01:59]recv_with_timeout no data received [13:02:01]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [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]recv_with_timeout no data received [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:34]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:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:52]recv_with_timeout no data received [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]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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: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: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: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: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]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:51]OFD Sender: No OFD packet to send [13:08:52]recv_with_timeout no data received [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:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]recv_with_timeout no data received [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:47]accept exits with 8 [13:09:47]New connection [13:09:47]New thread 3067632996 created [13:09:47]Thread 3067489636 joined [13:09:47]Waiting for new connection... [13:09:47] Sock 8.Parse request [13:09:47]Sock 8.Check first char [13:09:47]Sock 8.First char is OK [13:09:47]request: POST /json_proto HTTP/1.0 [13:09:47]Method: POST [13:09:47]URL: /json_proto [13:09:47]Method is POST - this is cgi request [13:09:47]url: /json_proto [13:09:47]query_string will be loaded in cgi processing [13:09:47]execute_cgi json_proto POST (null) [13:09:47]execute_cgi path=json_proto method=POST [13:09:47]POST find Content-Length [13:09:47]Host: 172.17.47.195:8080 [13:09:47]Content-Length: 678 [13:09:47]Content-Type: application/json [13:09:47] [13:09:47]POST finish read [13:09:47]Found Content-Length = 678 [13:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:47]execute_script... [13:09: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)871742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:47]POST & json_proto [13:09:47]process_json_proto [13:09:47]json parsed OK: [13:09:47]protocol is kg_v1.0 [13:09:47]action value=close_receipt [13:09:47]process_action close_receipt [13:09:47]cmd_close_receipt [13:09:47]MH_GetDate [13:09:47]Write to MH i2c: F0 00 00 55 05 49 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 09 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 09 00 55 05 00 1C 17 F0 66 96 2E 95 66 9A [13:09:47]GetLastDocTimeStamp 1727010002 [13:09:47]current date 1727010588 [13:09:47]FM_GetShiftState [13:09:47]SAM_PROTO_GetShiftState [13:09:47]wFMCommunicate request_size=4 [13:09:47]MH_SAM_APDU [13:09:47]CAPDU: 80 13 01 00 [13:09:47]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:47]Read from MH i2c: E2 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 0E 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 9B [13:09:47]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:09:47]wFMCommunicate OK [13:09:47]SAM_PROTO_GetShiftState done [13:09:47]FM_GetShiftState done [13:09:47]opened in 1726964224 [13:09:47]opened+sec_in_day 1727050624 [13:09:47]quantity*price = 70037 [13:09:47]sum+1 = 70038 [13:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 66 22.09.2024 13:09 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7668 ФПД: 193116749908365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130948&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7668&fm=193116749908365&tin=02508201610067®Number=0000000000190446&sum=70000 [13:09:48]StoreToDocumentArchive [13:09:48]shift 70 fd 7668 [13:09:48]save to /storage/0070/doc_00007668 [13:09:48]save last doc name /storage/0070/doc_00007668 to /storage/kkm_last_doc_name [13:09:48]save OK [13:09:48]Clear old archive folders... [13:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:48]tlvbuf is 01757F60 [13:09:48]SAM_PROTO_ClearQueue [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 09 00 00 [13:09:48]Write to MH i2c: E2 08 00 63 05 80 09 00 00 00 00 00 00 DA [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]SAM_PROTO_ClearQueue done [13:09:48]KKMCreateOFDPacket [13:09:48]OFDProtocolAddRootSTLVToBuf [13:09:48]FM_MakeSignedData [13:09:48]FM_MakeSignedData [13:09:48]SAM_PROTO_SignData [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 0D 01 02 [13:09:48]Write to MH i2c: E2 08 00 64 05 80 0D 01 02 00 00 00 00 E2 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]wFMCommunicate request_size=255 [13:09:48]MH_SAM_APDU [13:09: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 1C 17 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F4 1D 00 00 35 04 06 00 AF [13:09:48]Write to MH i2c: E2 02 01 65 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 1C 17 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F4 1D 00 00 35 04 06 00 AF 00 00 16 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]wFMCommunicate request_size=10 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 0D 02 02 05 A3 7F 47 49 8D [13:09:48]Write to MH i2c: E2 0D 00 66 05 80 0D 02 02 05 00 A3 7F 47 49 8D 00 00 2E [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 0D 03 02 [13:09:48]Write to MH i2c: E2 08 00 67 05 80 0D 03 02 00 00 00 00 E7 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 0B 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 0B 00 67 05 00 72 36 11 98 DF 2F A0 7B 90 00 62 [13:09:48]RAPDU: 72 36 11 98 DF 2F A0 7B 90 00 [13:09:48]wFMCommunicate OK [13:09:48]SAM_PROTO_SignData done [13:09:48]FM_MakeSignedData done [13:09:48]CreateOFDProtocolMessage [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 11 00 00 [13:09:48]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 17 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 38 [13:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:09:48]wFMCommunicate OK [13:09:48]CreateOFDProtocolMessage done [13:09:49]OFDSenderStorePacket 7668 [13:09:49]StoreOFDPacket docnum=7668 [13:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7668,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [13:09:51]free response buf [13:09:51]execute_script done [13:09:51]execute_script returns [13:09:51]free content buf [13:09:51]Sock 8.Close socket [13:09:51]Sock 8.Thread stoped [13:09:55]OFD Sender: No OFD packet to send [13:09:57]recv_with_timeout no data received [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:13]recv_with_timeout no data received [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:37]recv_with_timeout no data received [13:10:40]OFD Sender: No OFD packet to send [13:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 F7 D5 07 01 DC 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 1C 17 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F4 1D 00 00 35 04 06 00 AF A3 7F 47 49 8D 72 36 11 98 DF 2F A0 7B [13:09:49]CheckFolder [13:09:49]dirname=/storage/ofd_packets [13:09:49]CheckFolder done [13:09:49]ProducePacketName [13:09:49]name=ofd_packets/00007668 [13:09:49]NVStorageSaveData ofd_packets/00007668 [13:09:49]File name is /storage/ofd_packets/00007668 [13:09:49]Write 301 bytes [13:09:49]NVStorageSaveData done [13:09:49]OFDSenderStorePacket done [13:09:49]KKMCreateOFDPacket done [13:09:49]NVStorageSaveData kkm_last_timestamp [13:09:49]File name is /storage/kkm_last_timestamp [13:09:49]Write 4 bytes [13:09:49]NVStorageSaveData done [13:09:49]ExternCall_PrintAddStr [13:09:49]wPrintStart [13:09:49]Write to MH i2c: 01 00 00 69 05 6E [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [13:09:49]RasterBufferAndPrint [13:09:49]line Счет N : (1)871742 [13:09:49]line ИНН: 02508201610067 [13:09:49]line Контрольно-Кассовый Чек [13:09:49]line ПРОДАЖА [13:09:49]line ТРК (МРК, ГНК) : 33 [13:09:49]line Товар: 2710124130 [13:09:49]line Аи-92-К-5 [13:09:49]line 10.330 * 67.80 [13:09:49]line = 700.37 [13:09:49]line НДС 12% НСП 1% [13:09:49]line > о реализуемом товаре [13:09:49]line ОКРУГЛЕНИЕ: -0.37 [13:09:49]line ИТОГО: 700.00 [13:09:49]line Внесено: 700.00 [13:09:49]line СДАЧА: 0.00 [13:09:49]line НСП 1% : 6.20 [13:09:49]line НДС 12% : 74.38 [13:09:49]line Наличными: 700.00 [13:09:49]line Безнал.: 0.00 [13:09:49]line Место: АЗС № 137 "Партнер Нефть" [13:09:49]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [13:09:49]line СНО: Общий режим [13:09:49]line Чек 66 22.09.2024 13:09 [13:09:49]line Смена: 70 ФФД: 1.0 [13:09:49]line ЗНМ: 0300000041 [13:09:49]line РНМ: 0000000000190446 [13:09:49]line Версия ККМ: v1.0 [13:09:49]line ФМ: 0000000002094258 [13:09:49]line ФД: 7668 [13:09:49]line ФПД: 193116749908365 [13:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130948&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7668&fm=193116749908365&tin=02508201610067®Number=0000000000190446&sum=70000 [13:09:49]OFD Sender: Processing packet 7668 [packets to send 51, broken 50] [13:09:49]ProducePacketName [13:09:49]name=ofd_packets/00007668 [13:09:49]OFD Sender: To server: pG, [13:09:49]CommunicateWithHost lk.salyk.kg:30040 [13:09:49]ConnectInit lk.salyk.kg [13:09:49]written 0, free lines is 4095 [13:09:49]Write to MH i2c: 01 00 00 94 05 99 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 F2 0C 9E [13:09:49]RasterBufferAndPrint [13:09:49]line [13:09:49]line [13:09:49]line [13:09:49]line [13:09:49]line [13:09:49]written 0, free lines is 3320 [13:09:49]MH_Cut [13:09:49]Write to MH i2c: D1 01 00 9B 05 01 72 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: D1 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: D1 01 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: D1 01 00 9B 05 00 71 [13:09:49]Write to MH i2c: 01 00 00 9C 05 A1 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Connected sock=9 [13:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 F7 D5 07 01 DC 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 1C 17 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F4 1D 00 00 35 04 06 00 AF A3 7F 47 49 8D 72 36 11 98 DF 2F A0 7B [13:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 AA 87 47 00 A3 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 32 30 39 34 32 35 38 10 04 04 00 F4 1D 00 00 F4 03 04 00 DB C1 EF 66 B6 04 01 00 00 E5 DB 1B B0 7F 7E 51 36 [13:09:50]CommunicateWithHost err = 0 [13:09:50]CheckOFDResponse [13:09:50]1017 (14) - 77093643461234 [13:09:50]1041 (16) - 0000000002094258 [13:09:50]1040 (4) - 7668 [13:09:50]1012 (4) - 22.09.2024 07:06 [13:09:50]1206 (1) - 0 [13:09:50]OFD Sender: Remove packet 7668 [13:09:50]ProducePacketName [13:09:50]name=ofd_packets/00007668 [13:09:50]NVStorageDeleteData [13:09:50]*** Cut start [13:09:50]*** Purtial cut [13:09:50]*** Stage 1: CUTSNS_PIN = 1 [13:09:50]Read from MH i2c: 01 [13:09:50]MH_I2C_Read... [13:09:50]*** Stop cut motor [13:09:50]*** Cut end [13:09:50]Read from MH i2c: 01 07 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [13:09:50]process_action close_receipt done [13:09:50]requested_data is exist [13:09:50]produce_requested_data [13:09:50]requested_item fm.sn is exist - process it [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 11 00 00 [13:09:50]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 17 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 6D [13:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:09:50]wFMCommunicate OK [13:09:50]requested_item fd.num is exist - process it [13:09:50]SAM_PROTO_GetFieldsCounters [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 13 00 00 [13:09:50]Write to MH i2c: E2 08 00 9E 05 80 13 00 00 00 00 00 00 1F [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]OFD Sender: No OFD packet to send [13:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 62 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 62 00 9E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F4 1D 00 00 0E 04 04 00 46 00 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 5A [13:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F4 1D 00 00 0E 04 04 00 46 00 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 [13:09:50]wFMCommunicate OK [13:09:50]SAM_PROTO_GetFieldsCounters done [13:09:50]requested_item shift.num is exist - process it [13:09:50]requested_item shift.opened is exist - process it [13:09:50]req_shift_opened [13:09:50]FM_GetShiftState [13:09:50]SAM_PROTO_GetShiftState [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 13 01 00 [13:09:50]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 0E 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E4 [13:09:51]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:09:51]wFMCommunicate OK [13:09:51]SAM_PROTO_GetShiftState done [13:09:51]FM_GetShiftState done [13:09:51]req_shift_opened done [13:09:51]requested_item shift.open_date is exist - process it [13:09:51]req_shift_open_date [13:09:51]req_shift_open_date done [13:09:51]produce_requested_data done [13:09:51]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7668,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [13:09:51]process_action_free close_receipt [13:09:51]json_value_free [13:09:51]json_value_free done [13:09:51]process_json_proto returns [13:09:51]Send response to host [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]recv_with_timeout no data received [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:12]recv_with_timeout no data received [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:35]accept exits with 10 [13:21:35]New connection [13:21:35]New thread 3067489636 created [13:21:35]Thread 3067632996 joined [13:21:35]Waiting for new connection... [13:21:35] Sock 10.Parse request [13:21:35]Sock 10.Check first char [13:21:35]Sock 10.First char is OK [13:21:35]request: POST /json_proto HTTP/1.0 [13:21:35]Method: POST [13:21:35]URL: /json_proto [13:21:35]Method is POST - this is cgi request [13:21:35]url: /json_proto [13:21:35]query_string will be loaded in cgi processing [13:21:35]execute_cgi json_proto POST (null) [13:21:35]execute_cgi path=json_proto method=POST [13:21:35]POST find Content-Length [13:21:35]Host: 172.17.47.195:8080 [13:21:35]Content-Length: 687 [13:21:35]Content-Type: application/json [13:21:35] [13:21:35]POST finish read [13:21:35]Found Content-Length = 687 [13:21:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:35]execute_script... [13:21:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:35]POST & json_proto [13:21:35]process_json_proto [13:21:35]json parsed OK: [13:21:35]protocol is kg_v1.0 [13:21:35]action value=close_receipt [13:21:35]process_action close_receipt [13:21:35]cmd_close_receipt [13:21:35]MH_GetDate [13:21:35]Write to MH i2c: F0 00 00 A0 05 94 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: F0 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: F0 09 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: F0 09 00 A0 05 00 E0 19 F0 66 96 2E 95 66 AB [13:21:35]GetLastDocTimeStamp 1727010588 [13:21:35]current date 1727011296 [13:21:35]FM_GetShiftState [13:21:35]SAM_PROTO_GetShiftState [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 13 01 00 [13:21:35]Write to MH i2c: E2 08 00 A1 05 80 13 01 00 00 00 00 00 23 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 0E 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 0E 00 A1 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E6 [13:21:35]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:21:35]wFMCommunicate OK [13:21:35]SAM_PROTO_GetShiftState done [13:21:35]FM_GetShiftState done [13:21:35]opened in 1726964224 [13:21:35]opened+sec_in_day 1727050624 [13:21:35]quantity*price = 110032 [13:21:35]sum+1 = 110034 [13:21:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 67 22.09.2024 13:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7669 ФПД: 80859578793080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132136&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7669&fm=80859578793080&tin=02508201610067®Number=0000000000190446&sum=110000 [13:21:36]StoreToDocumentArchive [13:21:36]shift 70 fd 7669 [13:21:36]save to /storage/0070/doc_00007669 [13:21:36]save last doc name /storage/0070/doc_00007669 to /storage/kkm_last_doc_name [13:21:36]save OK [13:21:36]Clear old archive folders... [13:21:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:21:36]tlvbuf is 017E7080 [13:21:36]SAM_PROTO_ClearQueue [13:21:36]wFMCommunicate request_size=4 [13:21:36]MH_SAM_APDU [13:21:36]CAPDU: 80 09 00 00 [13:21:36]Write to MH i2c: E2 08 00 AE 05 80 09 00 00 00 00 00 00 25 [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:36]Read from MH i2c: E2 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 03 00 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [13:21:36]RAPDU: 90 00 [13:21:36]wFMCommunicate OK [13:21:36]SAM_PROTO_ClearQueue done [13:21:36]KKMCreateOFDPacket [13:21:36]OFDProtocolAddRootSTLVToBuf [13:21:36]FM_MakeSignedData [13:21:36]FM_MakeSignedData [13:21:36]SAM_PROTO_SignData [13:21:36]wFMCommunicate request_size=4 [13:21:36]MH_SAM_APDU [13:21:36]CAPDU: 80 0D 01 02 [13:21:36]Write to MH i2c: E2 08 00 AF 05 80 0D 01 02 00 00 00 00 2D [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:36]Read from MH i2c: E2 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 03 00 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [13:21:36]RAPDU: 90 00 [13:21:36]wFMCommunicate OK [13:21:36]wFMCommunicate request_size=255 [13:21:36]MH_SAM_APDU [13:21:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E0 19 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F5 1D 00 00 35 04 06 00 [13:21:36]Write to MH i2c: E2 02 01 B0 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E0 19 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F5 1D 00 00 35 04 06 00 00 00 B7 [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [13:21:37]RAPDU: 90 00 [13:21:37]wFMCommunicate OK [13:21:37]wFMCommunicate request_size=11 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 0D 02 02 06 49 8A 96 78 7C 78 [13:21:37]Write to MH i2c: E2 0E 00 B1 05 80 0D 02 02 06 00 49 8A 96 78 7C 78 00 00 11 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [13:21:37]RAPDU: 90 00 [13:21:37]wFMCommunicate OK [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 0D 03 02 [13:21:37]Write to MH i2c: E2 08 00 B2 05 80 0D 03 02 00 00 00 00 32 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 0B 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 0B 00 B2 05 00 8B 3B B1 E8 12 63 D9 17 90 00 F7 [13:21:37]RAPDU: 8B 3B B1 E8 12 63 D9 17 90 00 [13:21:37]wFMCommunicate OK [13:21:37]SAM_PROTO_SignData done [13:21:37]FM_MakeSignedData done [13:21:37]CreateOFDProtocolMessage [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 11 00 00 [13:21:37]Write to MH i2c: E2 08 00 B3 05 80 11 00 00 00 00 00 00 32 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 17 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 17 00 B3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 83 [13:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:21:37]wFMCommunicate OK [13:21:37]CreateOFDProtocolMessage done [13:21:37]OFDSenderStorePacket 7669 [13:21:37]StoreOFDPacket docnum=7669 [13:21:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 FE 9C 08 01 39 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E0 19 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F5 1D 00 00 35 04 06 00 49 8A 96 78 7C 78 8B 3B B1 E8 12 63 D9 17 [13:21:37]CheckFolder [13:21:37]dirname=/storage/ofd_packets [13:21:37]CheckFolder done [13:21:37]ProducePacketName [13:21:37]name=ofd_packets/00007669 [13:21:37]NVStorageSaveData ofd_packets/00007669 [13:21:37]File name is /storage/ofd_packets/00007669 [13:21:37]Write 302 bytes [13:21:37]NVStorageSaveData done [13:21:37]OFDSenderStorePacket done [13:21:37]KKMCreateOFDPacket done [13:21:37]NVStorageSaveData kkm_last_timestamp [13:21:37]File name is /storage/kkm_last_timestamp [13:21:37]Write 4 bytes [13:21:37]NVStorageSaveData done [13:21:37]ExternCall_PrintAddStr [13:21:37]wPrintStart [13:21:37]Write to MH i2c: 01 00 00 B4 05 B9 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: 01 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: 01 07 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: 01 07 00 B4 05 00 00 00 00 00 FF 0F CE [13:21:37]RasterBufferAndPrint [13:21:37]line Счет N : (1)871751 [13:21:37]line ИНН: 02508201610067 [13:21:37]line Контрольно-Кассовый Чек [13:21:37]line ПРОДАЖА [13:21:37]line ТРК (МРК, ГНК) : 34 [13:21:37]line Товар: 2710194210 [13:21:37]line ДТ(л)-К-4 [13:21:37]line 14.440 * 76.20 [13:21:37]line = 1100.33 [13:21:37]line НДС 12% НСП 1% [13:21:37]line > о реализуемом товаре [13:21:37]line ОКРУГЛЕНИЕ: -0.33 [13:21:37]line ИТОГО: 1100.00 [13:21:37]line Внесено: 1100.00 [13:21:37]line СДАЧА: 0.00 [13:21:37]line НСП 1% : 9.74 [13:21:37]line НДС 12% : 116.85 [13:21:37]line Наличными: 1100.00 [13:21:37]line Безнал.: 0.00 [13:21:37]line Место: АЗС № 137 "Партнер Нефть" [13:21:37]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [13:21:37]line СНО: Общий режим [13:21:37]line Чек 67 22.09.2024 13:21 [13:21:37]line Смена: 70 ФФД: 1.0 [13:21:37]line ЗНМ: 0300000041 [13:21:37]line РНМ: 0000000000190446 [13:21:37]line Версия ККМ: v1.0 [13:21:37]line ФМ: 0000000002094258 [13:21:37]line ФД: 7669 [13:21:37]line ФПД: 80859578793080 [13:21:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132136&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7669&fm=80859578793080&tin=02508201610067®Number=0000000000190446&sum=110000 [13:21:37]OFD Sender: Processing packet 7669 [packets to send 51, broken 50] [13:21:37]ProducePacketName [13:21:37]name=ofd_packets/00007669 [13:21:37]OFD Sender: To server: pG, [13:21:37]CommunicateWithHost lk.salyk.kg:30040 [13:21:37]ConnectInit lk.salyk.kg [13:21:37]written 0, free lines is 4095 [13:21:38]Write to MH i2c: 01 00 00 DF 05 E4 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 07 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 EA 0C E1 [13:21:38]RasterBufferAndPrint [13:21:38]line [13:21:38]line [13:21:38]line [13:21:38]line [13:21:38]line [13:21:38]written 0, free lines is 3312 [13:21:38]MH_Cut [13:21:38]Write to MH i2c: D1 01 00 E6 05 01 BD [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: D1 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: D1 01 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: D1 01 00 E6 05 00 BC [13:21:38]Write to MH i2c: 01 00 00 E7 05 EC [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]*** Cut start [13:21:38]*** Purtial cut [13:21:38]*** Stage 1: CUTSNS_PIN = 1 [13:21:38]Connected sock=11 [13:21:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 FE 9C 08 01 39 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E0 19 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F5 1D 00 00 35 04 06 00 49 8A 96 78 7C 78 8B 3B B1 E8 12 63 D9 17 [13:21:38]Read from MH i2c: 01 [13:21:38]MH_I2C_Read... [13:21:38]*** Stop cut motor [13:21:38]*** Cut end [13:21:38]Read from MH i2c: 01 07 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 FF 0F 01 [13:21:38]process_action close_receipt done [13:21:38]requested_data is exist [13:21:38]produce_requested_data [13:21:38]requested_item fm.sn is exist - process it [13:21:38]wFMCommunicate request_size=4 [13:21:38]MH_SAM_APDU [13:21:38]CAPDU: 80 11 00 00 [13:21:38]Write to MH i2c: E2 08 00 E8 05 80 11 00 00 00 00 00 00 67 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:39]Read from MH i2c: E2 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: E2 17 00 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: E2 17 00 E8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 B8 [13:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:21:39]wFMCommunicate OK [13:21:39]requested_item fd.num is exist - process it [13:21:39]SAM_PROTO_GetFieldsCounters [13:21:39]wFMCommunicate request_size=4 [13:21:39]MH_SAM_APDU [13:21:39]CAPDU: 80 13 00 00 [13:21:39]Write to MH i2c: E2 08 00 E9 05 80 13 00 00 00 00 00 00 6A [13:21:39]Write i2c OK [13:21:39]MH_I2C_Read... [13:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:39]Read from MH i2c: E2 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: E2 62 00 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: E2 62 00 E9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F5 1D 00 00 0E 04 04 00 46 00 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 A9 [13:21:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F5 1D 00 00 0E 04 04 00 46 00 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 [13:21:39]wFMCommunicate OK [13:21:39]SAM_PROTO_GetFieldsCounters done [13:21:39]requested_item shift.num is exist - process it [13:21:39]requested_item shift.opened is exist - process it [13:21:39]req_shift_opened [13:21:39]FM_GetShiftState [13:21:39]SAM_PROTO_GetShiftState [13:21:39]wFMCommunicate request_size=4 [13:21:39]MH_SAM_APDU [13:21:39]CAPDU: 80 13 01 00 [13:21:39]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [13:21:39]Write i2c OK [13:21:39]MH_I2C_Read... [13:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:39]Read from MH i2c: E2 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: E2 0E 00 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 2F [13:21:39]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:21:39]wFMCommunicate OK [13:21:39]SAM_PROTO_GetShiftState done [13:21:39]FM_GetShiftState done [13:21:39]req_shift_opened done [13:21:39]requested_item shift.open_date is exist - process it [13:21:39]req_shift_open_date [13:21:39]req_shift_open_date done [13:21:39]produce_requested_data done [13:21:39]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7669,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [13:21:39]process_action_free close_receipt [13:21:39]json_value_free [13:21:39]json_value_free done [13:21:39]process_json_proto returns [13:21:39]Send response to host [13:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7669,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [13:21:39]free response buf [13:21:39]execute_script done [13:21:39]execute_script returns [13:21:39]free content buf [13:21:39]Sock 10.Close socket [13:21:39]Sock 10.Thread stoped [13:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 79 73 47 00 7D 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F5 1D 00 00 F4 03 04 00 A0 C4 EF 66 B6 04 01 00 00 C3 09 6B 00 1A 22 10 54 [13:21:39]CommunicateWithHost err = 0 [13:21:39]CheckOFDResponse [13:21:39]1017 (14) - 77093643461234 [13:21:39]1041 (16) - 0000000002094258 [13:21:39]1040 (4) - 7669 [13:21:39]1012 (4) - 22.09.2024 07:17 [13:21:39]1206 (1) - 0 [13:21:39]OFD Sender: Remove packet 7669 [13:21:39]ProducePacketName [13:21:39]name=ofd_packets/00007669 [13:21:39]NVStorageDeleteData [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:48]recv_with_timeout no data received [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]recv_with_timeout no data received [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:15]recv_with_timeout no data received [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:41]recv_with_timeout no data received [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:36]recv_with_timeout no data received [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:26:58]recv_with_timeout no data received [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:04]accept exits with 9 [13:29:04]New connection [13:29:04]New thread 3067632996 created [13:29:04]Thread 3067489636 joined [13:29:04]Waiting for new connection... [13:29:04] Sock 9.Parse request [13:29:04]Sock 9.Check first char [13:29:04]Sock 9.First char is OK [13:29:04]request: POST /json_proto HTTP/1.0 [13:29:04]Method: POST [13:29:04]URL: /json_proto [13:29:04]Method is POST - this is cgi request [13:29:04]url: /json_proto [13:29:04]query_string will be loaded in cgi processing [13:29:04]execute_cgi json_proto POST (null) [13:29:04]execute_cgi path=json_proto method=POST [13:29:04]POST find Content-Length [13:29:04]Host: 172.17.47.195:8080 [13:29:04]Content-Length: 687 [13:29:04]Content-Type: application/json [13:29:04] [13:29:04]POST finish read [13:29:04]Found Content-Length = 687 [13:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:04]execute_script... [13:29: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)871758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:04]POST & json_proto [13:29:04]process_json_proto [13:29:04]json parsed OK: [13:29:04]protocol is kg_v1.0 [13:29:04]action value=close_receipt [13:29:04]process_action close_receipt [13:29:04]cmd_close_receipt [13:29:04]MH_GetDate [13:29:04]Write to MH i2c: F0 00 00 EB 05 DF [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: F0 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: F0 09 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: F0 09 00 EB 05 00 A2 1B F0 66 96 2E 95 66 BA [13:29:04]GetLastDocTimeStamp 1727011296 [13:29:04]current date 1727011746 [13:29:04]FM_GetShiftState [13:29:04]SAM_PROTO_GetShiftState [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 01 00 [13:29:04]Write to MH i2c: E2 08 00 EC 05 80 13 01 00 00 00 00 00 6E [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 EC 05 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 31 [13:29:04]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetShiftState done [13:29:04]FM_GetShiftState done [13:29:04]opened in 1726964224 [13:29:04]opened+sec_in_day 1727050624 [13:29:04]quantity*price = 170002 [13:29:04]sum+1 = 170003 [13:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 68 22.09.2024 13:29 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7670 ФПД: 229808462347136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132906&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7670&fm=229808462347136&tin=02508201610067®Number=0000000000190446&sum=170000 [13:29:06]StoreToDocumentArchive [13:29:06]shift 70 fd 7670 [13:29:06]save to /storage/0070/doc_00007670 [13:29:06]save last doc name /storage/0070/doc_00007670 to /storage/kkm_last_doc_name [13:29:06]save OK [13:29:06]Clear old archive folders... [13:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:29:06]tlvbuf is 01754D10 [13:29:06]SAM_PROTO_ClearQueue [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 09 00 00 [13:29:06]Write to MH i2c: E2 08 00 F9 05 80 09 00 00 00 00 00 00 70 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [13:29:06]RAPDU: 90 00 [13:29:06]wFMCommunicate OK [13:29:06]SAM_PROTO_ClearQueue done [13:29:06]KKMCreateOFDPacket [13:29:06]OFDProtocolAddRootSTLVToBuf [13:29:06]FM_MakeSignedData [13:29:06]FM_MakeSignedData [13:29:06]SAM_PROTO_SignData [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 0D 01 02 [13:29:06]Write to MH i2c: E2 08 00 FA 05 80 0D 01 02 00 00 00 00 78 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [13:29:06]RAPDU: 90 00 [13:29:06]wFMCommunicate OK [13:29:06]wFMCommunicate request_size=255 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A2 1B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F6 1D 00 00 35 04 06 00 [13:29:06]Write to MH i2c: E2 02 01 FB 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A2 1B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F6 1D 00 00 35 04 06 00 00 00 77 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [13:29:06]RAPDU: 90 00 [13:29:06]wFMCommunicate OK [13:29:06]wFMCommunicate request_size=11 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 0D 02 02 06 D1 02 73 C3 BB 80 [13:29:06]Write to MH i2c: E2 0E 00 FC 05 80 0D 02 02 06 00 D1 02 73 C3 BB 80 00 00 CB [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [13:29:06]RAPDU: 90 00 [13:29:06]wFMCommunicate OK [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 0D 03 02 [13:29:06]Write to MH i2c: E2 08 00 FD 05 80 0D 03 02 00 00 00 00 7D [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 0B 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 0B 00 FD 05 00 40 43 02 B0 6F 92 F9 32 90 00 DF [13:29:06]RAPDU: 40 43 02 B0 6F 92 F9 32 90 00 [13:29:06]wFMCommunicate OK [13:29:06]SAM_PROTO_SignData done [13:29:06]FM_MakeSignedData done [13:29:06]CreateOFDProtocolMessage [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 11 00 00 [13:29:06]Write to MH i2c: E2 08 00 FE 05 80 11 00 00 00 00 00 00 7D [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 17 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 17 00 FE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 CE [13:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:29:06]wFMCommunicate OK [13:29:06]CreateOFDProtocolMessage done [13:29:06]OFDSenderStorePacket 7670 [13:29:06]StoreOFDPacket docnum=7670 [13:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 35 2C 08 01 11 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A2 1B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F6 1D 00 00 35 04 06 00 D1 02 73 C3 BB 80 40 43 02 B0 6F 92 F9 32 [13:29:06]CheckFolder [13:29:06]dirname=/storage/ofd_packets [13:29:06]CheckFolder done [13:29:06]ProducePacketName [13:29:06]name=ofd_packets/00007670 [13:29:06]NVStorageSaveData ofd_packets/00007670 [13:29:06]File name is /storage/ofd_packets/00007670 [13:29:06]Write 302 bytes [13:29:06]NVStorageSaveData done [13:29:06]OFDSenderStorePacket done [13:29:06]KKMCreateOFDPacket done [13:29:06]NVStorageSaveData kkm_last_timestamp [13:29:06]File name is /storage/kkm_last_timestamp [13:29:06]Write 4 bytes [13:29:06]NVStorageSaveData done [13:29:06]ExternCall_PrintAddStr [13:29:06]wPrintStart [13:29:06]Write to MH i2c: 01 00 00 FF 05 04 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: 01 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: 01 07 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: 01 07 00 FF 05 00 00 00 00 00 FF 0F 19 [13:29:06]RasterBufferAndPrint [13:29:06]line Счет N : (1)871758 [13:29:06]line ИНН: 02508201610067 [13:29:06]line Контрольно-Кассовый Чек [13:29:06]line ПРОДАЖА [13:29:06]line ТРК (МРК, ГНК) : 11 [13:29:06]line Товар: 2710194210 [13:29:06]line ДТ(л)-К-4 [13:29:06]line 22.310 * 76.20 [13:29:06]line = 1700.02 [13:29:06]line НДС 12% НСП 1% [13:29:06]line > о реализуемом товаре [13:29:06]line ОКРУГЛЕНИЕ: -0.02 [13:29:06]line ИТОГО: 1700.00 [13:29:06]line Внесено: 1700.00 [13:29:06]line СДАЧА: 0.00 [13:29:06]line НСП 1% : 15.04 [13:29:06]line НДС 12% : 180.53 [13:29:06]line Наличными: 1700.00 [13:29:06]line Безнал.: 0.00 [13:29:06]line Место: АЗС № 137 "Партнер Нефть" [13:29:06]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [13:29:06]line СНО: Общий режим [13:29:06]line Чек 68 22.09.2024 13:29 [13:29:06]line Смена: 70 ФФД: 1.0 [13:29:06]line ЗНМ: 0300000041 [13:29:06]line РНМ: 0000000000190446 [13:29:06]line Версия ККМ: v1.0 [13:29:06]line ФМ: 0000000002094258 [13:29:06]line ФД: 7670 [13:29:06]line ФПД: 229808462347136 [13:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132906&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7670&fm=229808462347136&tin=02508201610067®Number=0000000000190446&sum=170000 [13:29:06]OFD Sender: Processing packet 7670 [packets to send 51, broken 50] [13:29:06]ProducePacketName [13:29:06]name=ofd_packets/00007670 [13:29:06]OFD Sender: To server: pG, [13:29:06]CommunicateWithHost lk.salyk.kg:30040 [13:29:06]ConnectInit lk.salyk.kg [13:29:06]written 0, free lines is 4095 [13:29:07]Write to MH i2c: 01 00 00 2A 06 30 [13:29:07]Write i2c OK [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 07 00 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FB 0C 3E [13:29:07]RasterBufferAndPrint [13:29:07]line [13:29:07]line [13:29:07]line [13:29:07]line [13:29:07]line [13:29:07]written 0, free lines is 3329 [13:29:07]MH_Cut [13:29:07]Write to MH i2c: D1 01 00 31 06 01 09 [13:29:07]Write i2c OK [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: D1 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: D1 01 00 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: D1 01 00 31 06 00 08 [13:29:07]Write to MH i2c: 01 00 00 32 06 38 [13:29:07]Write i2c OK [13:29:07]MH_I2C_Read... [13:29:07]Connected sock=11 [13:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 35 2C 08 01 11 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A2 1B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F6 1D 00 00 35 04 06 00 D1 02 73 C3 BB 80 40 43 02 B0 6F 92 F9 32 [13:29:08]*** Cut start [13:29:08]*** Purtial cut [13:29:08]*** Stage 1: CUTSNS_PIN = 1 [13:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 97 D9 47 00 07 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 32 30 39 34 32 35 38 10 04 04 00 F6 1D 00 00 F4 03 04 00 61 C6 EF 66 B6 04 01 00 00 7C 15 B7 CC E7 9C 08 73 [13:29:08]CommunicateWithHost err = 0 [13:29:08]CheckOFDResponse [13:29:08]1017 (14) - 77093643461234 [13:29:08]1041 (16) - 0000000002094258 [13:29:08]1040 (4) - 7670 [13:29:08]1012 (4) - 22.09.2024 07:25 [13:29:08]1206 (1) - 0 [13:29:08]OFD Sender: Remove packet 7670 [13:29:08]ProducePacketName [13:29:08]name=ofd_packets/00007670 [13:29:08]NVStorageDeleteData [13:29:08]Read from MH i2c: 01 [13:29:08]MH_I2C_Read... [13:29:08]*** Stop cut motor [13:29:08]*** Cut end [13:29:08]Read from MH i2c: 01 07 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 FF 0F 4D [13:29:08]process_action close_receipt done [13:29:08]requested_data is exist [13:29:08]produce_requested_data [13:29:08]requested_item fm.sn is exist - process it [13:29:08]wFMCommunicate request_size=4 [13:29:08]MH_SAM_APDU [13:29:08]CAPDU: 80 11 00 00 [13:29:08]Write to MH i2c: E2 08 00 33 06 80 11 00 00 00 00 00 00 B3 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:08]Read from MH i2c: E2 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 17 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 17 00 33 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 04 [13:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:29:08]wFMCommunicate OK [13:29:08]requested_item fd.num is exist - process it [13:29:08]SAM_PROTO_GetFieldsCounters [13:29:08]wFMCommunicate request_size=4 [13:29:08]MH_SAM_APDU [13:29:08]CAPDU: 80 13 00 00 [13:29:08]Write to MH i2c: E2 08 00 34 06 80 13 00 00 00 00 00 00 B6 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:08]Read from MH i2c: E2 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 62 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 62 00 34 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F6 1D 00 00 0E 04 04 00 46 00 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 F9 [13:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F6 1D 00 00 0E 04 04 00 46 00 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 [13:29:08]wFMCommunicate OK [13:29:08]SAM_PROTO_GetFieldsCounters done [13:29:08]requested_item shift.num is exist - process it [13:29:08]requested_item shift.opened is exist - process it [13:29:08]req_shift_opened [13:29:08]FM_GetShiftState [13:29:08]SAM_PROTO_GetShiftState [13:29:08]wFMCommunicate request_size=4 [13:29:08]MH_SAM_APDU [13:29:08]CAPDU: 80 13 01 00 [13:29:08]Write to MH i2c: E2 08 00 35 06 80 13 01 00 00 00 00 00 B8 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:08]Read from MH i2c: E2 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 0E 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 0E 00 35 06 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 7B [13:29:08]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:29:08]wFMCommunicate OK [13:29:08]SAM_PROTO_GetShiftState done [13:29:08]FM_GetShiftState done [13:29:08]req_shift_opened done [13:29:08]requested_item shift.open_date is exist - process it [13:29:08]req_shift_open_date [13:29:08]req_shift_open_date done [13:29:08]produce_requested_data done [13:29:08]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7670,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [13:29:08]process_action_free close_receipt [13:29:08]json_value_free [13:29:08]json_value_free done [13:29:08]process_json_proto returns [13:29:08]Send response to host [13:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7670,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [13:29:08]free response buf [13:29:08]execute_script done [13:29:08]execute_script returns [13:29:08]free content buf [13:29:08]Sock 9.Close socket [13:29:08]Sock 9.Thread stoped [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:36]recv_with_timeout no data received [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]recv_with_timeout no data received [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:01]accept exits with 10 [13:33:01]New connection [13:33:01]New thread 3067489636 created [13:33:01]Thread 3067632996 joined [13:33:01]Waiting for new connection... [13:33:01] Sock 10.Parse request [13:33:01]Sock 10.Check first char [13:33:01]Sock 10.First char is OK [13:33:01]request: POST /json_proto HTTP/1.0 [13:33:01]Method: POST [13:33:01]URL: /json_proto [13:33:01]Method is POST - this is cgi request [13:33:01]url: /json_proto [13:33:01]query_string will be loaded in cgi processing [13:33:01]execute_cgi json_proto POST (null) [13:33:01]execute_cgi path=json_proto method=POST [13:33:01]POST find Content-Length [13:33:01]Host: 172.17.47.195:8080 [13:33:01]Content-Length: 677 [13:33:01]Content-Type: application/json [13:33:01] [13:33:01]POST finish read [13:33:01]Found Content-Length = 677 [13:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871764", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:01]execute_script... [13:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871764", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:01]POST & json_proto [13:33:01]process_json_proto [13:33:01]json parsed OK: [13:33:01]protocol is kg_v1.0 [13:33:01]action value=close_receipt [13:33:01]process_action close_receipt [13:33:01]cmd_close_receipt [13:33:01]MH_GetDate [13:33:01]Write to MH i2c: F0 00 00 36 06 2B [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: F0 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: F0 09 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: F0 09 00 36 06 00 8F 1C F0 66 96 2E 95 66 F4 [13:33:01]GetLastDocTimeStamp 1727011746 [13:33:01]current date 1727011983 [13:33:01]FM_GetShiftState [13:33:01]SAM_PROTO_GetShiftState [13:33:01]wFMCommunicate request_size=4 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 13 01 00 [13:33:01]Write to MH i2c: E2 08 00 37 06 80 13 01 00 00 00 00 00 BA [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 0E 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 0E 00 37 06 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 7D [13:33:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:33:01]wFMCommunicate OK [13:33:01]SAM_PROTO_GetShiftState done [13:33:01]FM_GetShiftState done [13:33:01]opened in 1726964224 [13:33:01]opened+sec_in_day 1727050624 [13:33:01]quantity*price = 50036 [13:33:01]sum+1 = 50037 [13:33:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 69 22.09.2024 13:33 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7671 ФПД: 74778780298295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133303&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7671&fm=74778780298295&tin=02508201610067®Number=0000000000190446&sum=50000 [13:33:02]StoreToDocumentArchive [13:33:02]shift 70 fd 7671 [13:33:02]save to /storage/0070/doc_00007671 [13:33:02]save last doc name /storage/0070/doc_00007671 to /storage/kkm_last_doc_name [13:33:02]save OK [13:33:02]Clear old archive folders... [13:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:02]tlvbuf is 0177F970 [13:33:02]SAM_PROTO_ClearQueue [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 09 00 00 [13:33:02]Write to MH i2c: E2 08 00 44 06 80 09 00 00 00 00 00 00 BC [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 03 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [13:33:02]RAPDU: 90 00 [13:33:02]wFMCommunicate OK [13:33:02]SAM_PROTO_ClearQueue done [13:33:02]KKMCreateOFDPacket [13:33:02]OFDProtocolAddRootSTLVToBuf [13:33:02]FM_MakeSignedData [13:33:02]FM_MakeSignedData [13:33:02]SAM_PROTO_SignData [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 0D 01 02 [13:33:02]Write to MH i2c: E2 08 00 45 06 80 0D 01 02 00 00 00 00 C4 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 03 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [13:33:02]RAPDU: 90 00 [13:33:02]wFMCommunicate OK [13:33:02]wFMCommunicate request_size=255 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F7 1D 00 00 35 04 06 00 44 [13:33:02]Write to MH i2c: E2 02 01 46 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F7 1D 00 00 35 04 06 00 44 00 00 24 [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:03]Read from MH i2c: E2 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 03 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [13:33:03]RAPDU: 90 00 [13:33:03]wFMCommunicate OK [13:33:03]wFMCommunicate request_size=10 [13:33:03]MH_SAM_APDU [13:33:03]CAPDU: 80 0D 02 02 05 02 CA A2 EC 37 [13:33:03]Write to MH i2c: E2 0D 00 47 06 80 0D 02 02 05 00 02 CA A2 EC 37 00 00 62 [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:03]Read from MH i2c: E2 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 03 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [13:33:03]RAPDU: 90 00 [13:33:03]wFMCommunicate OK [13:33:03]wFMCommunicate request_size=4 [13:33:03]MH_SAM_APDU [13:33:03]CAPDU: 80 0D 03 02 [13:33:03]Write to MH i2c: E2 08 00 48 06 80 0D 03 02 00 00 00 00 C9 [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:03]Read from MH i2c: E2 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 0B 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 0B 00 48 06 00 F3 D6 CF 30 47 46 BD 92 90 00 6E [13:33:03]RAPDU: F3 D6 CF 30 47 46 BD 92 90 00 [13:33:03]wFMCommunicate OK [13:33:03]SAM_PROTO_SignData done [13:33:03]FM_MakeSignedData done [13:33:03]CreateOFDProtocolMessage [13:33:03]wFMCommunicate request_size=4 [13:33:03]MH_SAM_APDU [13:33:03]CAPDU: 80 11 00 00 [13:33:03]Write to MH i2c: E2 08 00 49 06 80 11 00 00 00 00 00 00 C9 [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:03]Read from MH i2c: E2 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 17 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 17 00 49 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 1A [13:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:33:03]wFMCommunicate OK [13:33:03]CreateOFDProtocolMessage done [13:33:03]OFDSenderStorePacket 7671 [13:33:03]StoreOFDPacket docnum=7671 [13:33:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 73 BC 07 01 D3 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8F 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F7 1D 00 00 35 04 06 00 44 02 CA A2 EC 37 F3 D6 CF 30 47 46 BD 92 [13:33:03]CheckFolder [13:33:03]dirname=/storage/ofd_packets [13:33:03]CheckFolder done [13:33:03]ProducePacketName [13:33:03]name=ofd_packets/00007671 [13:33:03]NVStorageSaveData ofd_packets/00007671 [13:33:03]File name is /storage/ofd_packets/00007671 [13:33:03]Write 301 bytes [13:33:03]NVStorageSaveData done [13:33:03]OFDSenderStorePacket done [13:33:03]KKMCreateOFDPacket done [13:33:03]NVStorageSaveData kkm_last_timestamp [13:33:03]File name is /storage/kkm_last_timestamp [13:33:03]Write 4 bytes [13:33:03]NVStorageSaveData done [13:33:03]ExternCall_PrintAddStr [13:33:03]wPrintStart [13:33:03]Write to MH i2c: 01 00 00 4A 06 50 [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: 01 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: 01 07 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 FF 0F 65 [13:33:03]RasterBufferAndPrint [13:33:03]line Счет N : (1)871764 [13:33:03]line ИНН: 02508201610067 [13:33:03]line Контрольно-Кассовый Чек [13:33:03]line ПРОДАЖА [13:33:03]line ТРК (МРК, ГНК) : 63 [13:33:03]line Товар: 2710124130 [13:33:03]line Аи-92-К-5 [13:33:03]line 7.380 * 67.80 [13:33:03]line = 500.36 [13:33:03]line НДС 12% НСП 1% [13:33:03]line > о реализуемом товаре [13:33:03]line ОКРУГЛЕНИЕ: -0.36 [13:33:03]line ИТОГО: 500.00 [13:33:03]line Внесено: 500.00 [13:33:03]line СДАЧА: 0.00 [13:33:03]line НСП 1% : 4.43 [13:33:03]line НДС 12% : 53.14 [13:33:03]line Наличными: 500.00 [13:33:03]line Безнал.: 0.00 [13:33:03]line Место: АЗС № 137 "Партнер Нефть" [13:33:03]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [13:33:03]line СНО: Общий режим [13:33:03]line Чек 69 22.09.2024 13:33 [13:33:03]line Смена: 70 ФФД: 1.0 [13:33:03]line ЗНМ: 0300000041 [13:33:03]line РНМ: 0000000000190446 [13:33:03]line Версия ККМ: v1.0 [13:33:03]line ФМ: 0000000002094258 [13:33:03]line ФД: 7671 [13:33:03]line ФПД: 74778780298295 [13:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133303&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7671&fm=74778780298295&tin=02508201610067®Number=0000000000190446&sum=50000 [13:33:03]OFD Sender: Processing packet 7671 [packets to send 51, broken 50] [13:33:03]ProducePacketName [13:33:03]name=ofd_packets/00007671 [13:33:03]OFD Sender: To server: pG, [13:33:03]CommunicateWithHost lk.salyk.kg:30040 [13:33:03]ConnectInit lk.salyk.kg [13:33:03]written 0, free lines is 4095 [13:33:04]Write to MH i2c: 01 00 00 75 06 7B [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: 01 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: 01 07 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 EF 0C 7D [13:33:04]RasterBufferAndPrint [13:33:04]line [13:33:04]line [13:33:04]line [13:33:04]line [13:33:04]line [13:33:04]written 0, free lines is 3317 [13:33:04]MH_Cut [13:33:04]Write to MH i2c: D1 01 00 7C 06 01 54 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: D1 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: D1 01 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: D1 01 00 7C 06 00 53 [13:33:04]Write to MH i2c: 01 00 00 7D 06 83 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** Cut start [13:33:04]*** Purtial cut [13:33:04]*** Stage 1: CUTSNS_PIN = 1 [13:33:05]Read from MH i2c: 01 [13:33:05]MH_I2C_Read... [13:33:05]*** Stop cut motor [13:33:05]*** Cut end [13:33:05]Read from MH i2c: 01 07 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 07 00 7D 06 00 00 00 00 00 FF 0F 98 [13:33:05]process_action close_receipt done [13:33:05]requested_data is exist [13:33:05]produce_requested_data [13:33:05]requested_item fm.sn is exist - process it [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 11 00 00 [13:33:05]Write to MH i2c: E2 08 00 7E 06 80 11 00 00 00 00 00 00 FE [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 17 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 17 00 7E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 4F [13:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:33:05]wFMCommunicate OK [13:33:05]requested_item fd.num is exist - process it [13:33:05]SAM_PROTO_GetFieldsCounters [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 13 00 00 [13:33:05]Write to MH i2c: E2 08 00 7F 06 80 13 00 00 00 00 00 00 01 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 62 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 62 00 7F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F7 1D 00 00 0E 04 04 00 46 00 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 48 [13:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F7 1D 00 00 0E 04 04 00 46 00 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 [13:33:05]wFMCommunicate OK [13:33:05]SAM_PROTO_GetFieldsCounters done [13:33:05]requested_item shift.num is exist - process it [13:33:05]requested_item shift.opened is exist - process it [13:33:05]req_shift_opened [13:33:05]FM_GetShiftState [13:33:05]SAM_PROTO_GetShiftState [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 13 01 00 [13:33:05]Write to MH i2c: E2 08 00 80 06 80 13 01 00 00 00 00 00 03 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 0E 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 0E 00 80 06 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 C6 [13:33:05]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:33:05]wFMCommunicate OK [13:33:05]SAM_PROTO_GetShiftState done [13:33:05]FM_GetShiftState done [13:33:05]req_shift_opened done [13:33:05]requested_item shift.open_date is exist - process it [13:33:05]req_shift_open_date [13:33:05]req_shift_open_date done [13:33:05]produce_requested_data done [13:33:05]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7671,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [13:33:05]process_action_free close_receipt [13:33:05]json_value_free [13:33:05]json_value_free done [13:33:05]process_json_proto returns [13:33:05]Send response to host [13:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7671,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [13:33:05]free response buf [13:33:05]execute_script done [13:33:05]execute_script returns [13:33:05]free content buf [13:33:05]Sock 10.Close socket [13:33:05]Sock 10.Thread stoped [13:33:08]ConnectInit Can't take IP for lk.salyk.kg [13:33:08]CommunicateWithHost connect error [13:33:08]CommunicateWithHost err = -1 [13:33:08]OFD Sender: Server communicate error [13:33:13]OFD Sender: Processing packet 7671 [packets to send 51, broken 50] [13:33:13]ProducePacketName [13:33:13]name=ofd_packets/00007671 [13:33:13]OFD Sender: To server: pG, [13:33:13]CommunicateWithHost lk.salyk.kg:30040 [13:33:13]ConnectInit lk.salyk.kg [13:33:22]recv_with_timeout no data received [13:33:44]Connected sock=10 [13:33:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 73 BC 07 01 D3 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8F 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F7 1D 00 00 35 04 06 00 44 02 CA A2 EC 37 F3 D6 CF 30 47 46 BD 92 [13:33:49]recv_with_timeout no data received [13:33:49]CommunicateWithHost answer receiving error [13:33:49]CommunicateWithHost err = -3 [13:33:49]OFD Sender: Server communicate error [13:33:51]recv_with_timeout no data received [13:33:54]OFD Sender: Processing packet 7671 [packets to send 51, broken 50] [13:33:54]ProducePacketName [13:33:54]name=ofd_packets/00007671 [13:33:54]OFD Sender: To server: pG, [13:33:54]CommunicateWithHost lk.salyk.kg:30040 [13:33:54]ConnectInit lk.salyk.kg [13:33:59]ConnectInit Can't take IP for lk.salyk.kg [13:33:59]CommunicateWithHost connect error [13:33:59]CommunicateWithHost err = -1 [13:33:59]OFD Sender: Server communicate error [13:34:04]OFD Sender: Processing packet 7671 [packets to send 51, broken 50] [13:34:04]ProducePacketName [13:34:04]name=ofd_packets/00007671 [13:34:04]OFD Sender: To server: pG, [13:34:04]CommunicateWithHost lk.salyk.kg:30040 [13:34:04]ConnectInit lk.salyk.kg [13:34:05]recv_with_timeout no data received [13:34:06]Connected sock=8 [13:34:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 73 BC 07 01 D3 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8F 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F7 1D 00 00 35 04 06 00 44 02 CA A2 EC 37 F3 D6 CF 30 47 46 BD 92 [13:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 39 1D 47 00 68 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F7 1D 00 00 F4 03 04 00 8D C7 EF 66 B6 04 01 00 00 A4 03 42 4E 06 AF 6E 9C [13:34:07]CommunicateWithHost err = 0 [13:34:07]CheckOFDResponse [13:34:07]1017 (14) - 77093643461234 [13:34:07]1041 (16) - 0000000002094258 [13:34:07]1040 (4) - 7671 [13:34:07]1012 (4) - 22.09.2024 07:30 [13:34:07]1206 (1) - 0 [13:34:07]OFD Sender: Remove packet 7671 [13:34:07]ProducePacketName [13:34:07]name=ofd_packets/00007671 [13:34:07]NVStorageDeleteData [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:18]accept exits with 9 [13:34:18]New connection [13:34:18]New thread 3067632996 created [13:34:18]Thread 3067489636 joined [13:34:18]Waiting for new connection... [13:34:18] Sock 9.Parse request [13:34:18]Sock 9.Check first char [13:34:18]Sock 9.First char is OK [13:34:18]request: POST /json_proto HTTP/1.0 [13:34:18]Method: POST [13:34:18]URL: /json_proto [13:34:18]Method is POST - this is cgi request [13:34:18]url: /json_proto [13:34:18]query_string will be loaded in cgi processing [13:34:18]execute_cgi json_proto POST (null) [13:34:18]execute_cgi path=json_proto method=POST [13:34:18]POST find Content-Length [13:34:18]Host: 172.17.47.195:8080 [13:34:18]Content-Length: 677 [13:34:18]Content-Type: application/json [13:34:18] [13:34:18]POST finish read [13:34:18]Found Content-Length = 677 [13:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:18]execute_script... [13:34:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:18]POST & json_proto [13:34:18]process_json_proto [13:34:18]json parsed OK: [13:34:18]protocol is kg_v1.0 [13:34:18]action value=close_receipt [13:34:18]process_action close_receipt [13:34:18]cmd_close_receipt [13:34:18]MH_GetDate [13:34:18]Write to MH i2c: F0 00 00 81 06 76 [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: F0 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: F0 09 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: F0 09 00 81 06 00 DC 1C F0 66 96 2E 95 66 8C [13:34:18]GetLastDocTimeStamp 1727011983 [13:34:18]current date 1727012060 [13:34:18]FM_GetShiftState [13:34:18]SAM_PROTO_GetShiftState [13:34:18]wFMCommunicate request_size=4 [13:34:18]MH_SAM_APDU [13:34:18]CAPDU: 80 13 01 00 [13:34:18]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:18]Read from MH i2c: E2 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 0E 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 C8 [13:34:18]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:34:18]wFMCommunicate OK [13:34:18]SAM_PROTO_GetShiftState done [13:34:18]FM_GetShiftState done [13:34:18]opened in 1726964224 [13:34:18]opened+sec_in_day 1727050624 [13:34:18]quantity*price = 40002 [13:34:18]sum+1 = 40003 [13:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 70 22.09.2024 13:34 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7672 ФПД: 154948596529598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133420&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7672&fm=154948596529598&tin=02508201610067®Number=0000000000190446&sum=40000 [13:34:19]StoreToDocumentArchive [13:34:19]shift 70 fd 7672 [13:34:19]save to /storage/0070/doc_00007672 [13:34:19]save last doc name /storage/0070/doc_00007672 to /storage/kkm_last_doc_name [13:34:19]save OK [13:34:19]Clear old archive folders... [13:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:19]tlvbuf is 017E6F10 [13:34:19]SAM_PROTO_ClearQueue [13:34:19]wFMCommunicate request_size=4 [13:34:19]MH_SAM_APDU [13:34:19]CAPDU: 80 09 00 00 [13:34:19]Write to MH i2c: E2 08 00 8F 06 80 09 00 00 00 00 00 00 07 [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]SAM_PROTO_ClearQueue done [13:34:20]KKMCreateOFDPacket [13:34:20]OFDProtocolAddRootSTLVToBuf [13:34:20]FM_MakeSignedData [13:34:20]FM_MakeSignedData [13:34:20]SAM_PROTO_SignData [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 01 02 [13:34:20]Write to MH i2c: E2 08 00 90 06 80 0D 01 02 00 00 00 00 0F [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]wFMCommunicate request_size=255 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 DC 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F8 1D 00 00 35 04 06 00 8C [13:34:20]Write to MH i2c: E2 02 01 91 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 DC 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F8 1D 00 00 35 04 06 00 8C 00 00 EB [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]wFMCommunicate request_size=10 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 02 02 05 EC C8 0D F9 BE [13:34:20]Write to MH i2c: E2 0D 00 92 06 80 0D 02 02 05 00 EC C8 0D F9 BE 00 00 94 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 03 02 [13:34:20]Write to MH i2c: E2 08 00 93 06 80 0D 03 02 00 00 00 00 14 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 0B 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 0B 00 93 06 00 9A 36 53 88 56 8D CD A6 90 00 16 [13:34:20]RAPDU: 9A 36 53 88 56 8D CD A6 90 00 [13:34:20]wFMCommunicate OK [13:34:20]SAM_PROTO_SignData done [13:34:20]FM_MakeSignedData done [13:34:20]CreateOFDProtocolMessage [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 11 00 00 [13:34:20]Write to MH i2c: E2 08 00 94 06 80 11 00 00 00 00 00 00 14 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 17 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 17 00 94 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 65 [13:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:34:20]wFMCommunicate OK [13:34:20]CreateOFDProtocolMessage done [13:34:20]OFDSenderStorePacket 7672 [13:34:20]StoreOFDPacket docnum=7672 [13:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 AA A3 07 01 DD C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 DC 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F8 1D 00 00 35 04 06 00 8C EC C8 0D F9 BE 9A 36 53 88 56 8D CD A6 [13:34:20]CheckFolder [13:34:20]dirname=/storage/ofd_packets [13:34:20]CheckFolder done [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00007672 [13:34:20]NVStorageSaveData ofd_packets/00007672 [13:34:20]File name is /storage/ofd_packets/00007672 [13:34:20]Write 301 bytes [13:34:20]NVStorageSaveData done [13:34:20]OFDSenderStorePacket done [13:34:20]KKMCreateOFDPacket done [13:34:20]NVStorageSaveData kkm_last_timestamp [13:34:20]File name is /storage/kkm_last_timestamp [13:34:20]Write 4 bytes [13:34:20]NVStorageSaveData done [13:34:20]ExternCall_PrintAddStr [13:34:20]wPrintStart [13:34:20]Write to MH i2c: 01 00 00 95 06 9B [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 07 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 07 00 95 06 00 00 00 00 00 FF 0F B0 [13:34:20]RasterBufferAndPrint [13:34:20]line Счет N : (1)871765 [13:34:20]line ИНН: 02508201610067 [13:34:20]line Контрольно-Кассовый Чек [13:34:20]line ПРОДАЖА [13:34:20]line ТРК (МРК, ГНК) : 33 [13:34:20]line Товар: 2710124130 [13:34:20]line Аи-92-К-5 [13:34:20]line 5.900 * 67.80 [13:34:20]line = 400.02 [13:34:20]line НДС 12% НСП 1% [13:34:20]line > о реализуемом товаре [13:34:20]line ОКРУГЛЕНИЕ: -0.02 [13:34:20]line ИТОГО: 400.00 [13:34:20]line Внесено: 400.00 [13:34:20]line СДАЧА: 0.00 [13:34:20]line НСП 1% : 3.54 [13:34:20]line НДС 12% : 42.48 [13:34:20]line Наличными: 400.00 [13:34:20]line Безнал.: 0.00 [13:34:20]line Место: АЗС № 137 "Партнер Нефть" [13:34:20]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [13:34:20]line СНО: Общий режим [13:34:20]line Чек 70 22.09.2024 13:34 [13:34:20]line Смена: 70 ФФД: 1.0 [13:34:20]line ЗНМ: 0300000041 [13:34:20]line РНМ: 0000000000190446 [13:34:20]line Версия ККМ: v1.0 [13:34:20]line ФМ: 0000000002094258 [13:34:20]line ФД: 7672 [13:34:20]line ФПД: 154948596529598 [13:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133420&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7672&fm=154948596529598&tin=02508201610067®Number=0000000000190446&sum=40000 [13:34:20]OFD Sender: Processing packet 7672 [packets to send 51, broken 50] [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00007672 [13:34:20]OFD Sender: To server: pG, [13:34:20]CommunicateWithHost lk.salyk.kg:30040 [13:34:20]ConnectInit lk.salyk.kg [13:34:20]written 0, free lines is 4095 [13:34:21]Write to MH i2c: 01 00 00 C0 06 C6 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 07 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 F0 0C C9 [13:34:21]RasterBufferAndPrint [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]written 0, free lines is 3318 [13:34:21]MH_Cut [13:34:21]Write to MH i2c: D1 01 00 C7 06 01 9F [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 01 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 01 00 C7 06 00 9E [13:34:21]Write to MH i2c: 01 00 00 C8 06 CE [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Connected sock=8 [13:34:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 AA A3 07 01 DD C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 DC 1C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 F8 1D 00 00 35 04 06 00 8C EC C8 0D F9 BE 9A 36 53 88 56 8D CD A6 [13:34:21]*** Cut start [13:34:21]*** Purtial cut [13:34:21]*** Stage 1: CUTSNS_PIN = 1 [13:34:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 1F BA 47 00 79 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 32 30 39 34 32 35 38 10 04 04 00 F8 1D 00 00 F4 03 04 00 9B C7 EF 66 B6 04 01 00 00 4A B6 53 A0 A6 57 03 E0 [13:34:22]CommunicateWithHost err = 0 [13:34:22]CheckOFDResponse [13:34:22]1017 (14) - 77093643461234 [13:34:22]1041 (16) - 0000000002094258 [13:34:22]1040 (4) - 7672 [13:34:22]1012 (4) - 22.09.2024 07:30 [13:34:22]1206 (1) - 0 [13:34:22]OFD Sender: Remove packet 7672 [13:34:22]ProducePacketName [13:34:22]name=ofd_packets/00007672 [13:34:22]NVStorageDeleteData [13:34:22]Read from MH i2c: 01 [13:34:22]MH_I2C_Read... [13:34:22]*** Stop cut motor [13:34:22]*** Cut end [13:34:22]Read from MH i2c: 01 07 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: 01 07 00 C8 06 00 00 00 00 00 FF 0F E3 [13:34:22]process_action close_receipt done [13:34:22]requested_data is exist [13:34:22]produce_requested_data [13:34:22]requested_item fm.sn is exist - process it [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 11 00 00 [13:34:22]Write to MH i2c: E2 08 00 C9 06 80 11 00 00 00 00 00 00 49 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 17 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 17 00 C9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 9A [13:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:34:22]wFMCommunicate OK [13:34:22]requested_item fd.num is exist - process it [13:34:22]SAM_PROTO_GetFieldsCounters [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 13 00 00 [13:34:22]Write to MH i2c: E2 08 00 CA 06 80 13 00 00 00 00 00 00 4C [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 62 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 62 00 CA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F8 1D 00 00 0E 04 04 00 46 00 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 97 [13:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 F8 1D 00 00 0E 04 04 00 46 00 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 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_GetFieldsCounters done [13:34:22]requested_item shift.num is exist - process it [13:34:22]requested_item shift.opened is exist - process it [13:34:22]req_shift_opened [13:34:22]FM_GetShiftState [13:34:22]SAM_PROTO_GetShiftState [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 13 01 00 [13:34:22]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0E 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 11 [13:34:22]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_GetShiftState done [13:34:22]FM_GetShiftState done [13:34:22]req_shift_opened done [13:34:22]requested_item shift.open_date is exist - process it [13:34:22]req_shift_open_date [13:34:22]req_shift_open_date done [13:34:22]produce_requested_data done [13:34:22]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7672,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [13:34:22]process_action_free close_receipt [13:34:22]json_value_free [13:34:22]json_value_free done [13:34:22]process_json_proto returns [13:34:22]Send response to host [13:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7672,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [13:34:22]free response buf [13:34:22]execute_script done [13:34:22]execute_script returns [13:34:22]free content buf [13:34:22]Sock 9.Close socket [13:34:22]Sock 9.Thread stoped [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:12]recv_with_timeout no data received [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:10]recv_with_timeout no data received [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:41]accept exits with 10 [13:37:41]New connection [13:37:41]New thread 3067489636 created [13:37:41]Thread 3067632996 joined [13:37:41]Waiting for new connection... [13:37:41] Sock 10.Parse request [13:37:41]Sock 10.Check first char [13:37:41]Sock 10.First char is OK [13:37:41]request: POST /json_proto HTTP/1.0 [13:37:41]Method: POST [13:37:41]URL: /json_proto [13:37:41]Method is POST - this is cgi request [13:37:41]url: /json_proto [13:37:41]query_string will be loaded in cgi processing [13:37:41]execute_cgi json_proto POST (null) [13:37:41]execute_cgi path=json_proto method=POST [13:37:41]POST find Content-Length [13:37:41]Host: 172.17.47.195:8080 [13:37:41]Content-Length: 687 [13:37:41]Content-Type: application/json [13:37:41] [13:37:41]POST finish read [13:37:41]Found Content-Length = 687 [13:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:41]execute_script... [13: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)871769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:41]POST & json_proto [13:37:41]process_json_proto [13:37:41]json parsed OK: [13:37:41]protocol is kg_v1.0 [13:37:41]action value=close_receipt [13:37:41]process_action close_receipt [13:37:41]cmd_close_receipt [13:37:41]MH_GetDate [13:37:41]Write to MH i2c: F0 00 00 CC 06 C1 [13:37:41]Write i2c OK [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: F0 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: F0 09 00 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: F0 09 00 CC 06 00 A7 1D F0 66 96 2E 95 66 A3 [13:37:41]GetLastDocTimeStamp 1727012060 [13:37:41]current date 1727012263 [13:37:41]FM_GetShiftState [13:37:41]SAM_PROTO_GetShiftState [13:37:41]wFMCommunicate request_size=4 [13:37:41]MH_SAM_APDU [13:37:41]CAPDU: 80 13 01 00 [13:37:41]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [13:37:41]Write i2c OK [13:37:41]MH_I2C_Read... [13:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:41]Read from MH i2c: E2 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 0E 00 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 13 [13:37:41]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:37:41]wFMCommunicate OK [13:37:41]SAM_PROTO_GetShiftState done [13:37:41]FM_GetShiftState done [13:37:41]opened in 1726964224 [13:37:41]opened+sec_in_day 1727050624 [13:37:41]quantity*price = 100050 [13:37:41]sum+1 = 100052 [13:37:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 72 22.09.2024 13:58 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7674 ФПД: 232434645495295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135807&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7674&fm=232434645495295&tin=02508201610067®Number=0000000000190446&sum=100000 [13:58:06]StoreToDocumentArchive [13:58:06]shift 70 fd 7674 [13:58:06]save to /storage/0070/doc_00007674 [13:58:06]save last doc name /storage/0070/doc_00007674 to /storage/kkm_last_doc_name [13:58:06]save OK [13:58:06]Clear old archive folders... [13:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:58:07]tlvbuf is 017E7A90 [13:58:07]SAM_PROTO_ClearQueue [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 09 00 00 [13:58:07]Write to MH i2c: E2 08 00 25 07 80 09 00 00 00 00 00 00 9E [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_ClearQueue done [13:58:07]KKMCreateOFDPacket [13:58:07]OFDProtocolAddRootSTLVToBuf [13:58:07]FM_MakeSignedData [13:58:07]FM_MakeSignedData [13:58:07]SAM_PROTO_SignData [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 01 02 [13:58:07]Write to MH i2c: E2 08 00 26 07 80 0D 01 02 00 00 00 00 A6 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=255 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 6F 22 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FA 1D 00 00 35 04 06 00 [13:58:07]Write to MH i2c: E2 02 01 27 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6F 22 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FA 1D 00 00 35 04 06 00 00 00 9B [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]OFD Sender: No OFD packet to send [13:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=11 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 02 02 06 D3 65 E8 7A 6D FF [13:58:07]Write to MH i2c: E2 0E 00 28 07 80 0D 02 02 06 00 D3 65 E8 7A 6D FF 00 00 BB [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 03 02 [13:58:07]Write to MH i2c: E2 08 00 29 07 80 0D 03 02 00 00 00 00 AB [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 29 07 00 E5 99 1F 74 F9 73 9B 20 90 00 E4 [13:58:07]RAPDU: E5 99 1F 74 F9 73 9B 20 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_SignData done [13:58:07]FM_MakeSignedData done [13:58:07]CreateOFDProtocolMessage [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 11 00 00 [13:58:07]Write to MH i2c: E2 08 00 2A 07 80 11 00 00 00 00 00 00 AB [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 17 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 17 00 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FC [13:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:58:07]wFMCommunicate OK [13:58:07]CreateOFDProtocolMessage done [13:58:07]OFDSenderStorePacket 7674 [13:58:07]StoreOFDPacket docnum=7674 [13:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 F3 54 08 01 05 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 6F 22 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FA 1D 00 00 35 04 06 00 D3 65 E8 7A 6D FF E5 99 1F 74 F9 73 9B 20 [13:58:07]CheckFolder [13:58:07]dirname=/storage/ofd_packets [13:58:07]CheckFolder done [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00007674 [13:58:07]NVStorageSaveData ofd_packets/00007674 [13:58:07]File name is /storage/ofd_packets/00007674 [13:58:07]Write 302 bytes [13:58:07]NVStorageSaveData done [13:58:07]OFDSenderStorePacket done [13:58:07]KKMCreateOFDPacket done [13:58:07]NVStorageSaveData kkm_last_timestamp [13:58:07]File name is /storage/kkm_last_timestamp [13:58:07]Write 4 bytes [13:58:07]NVStorageSaveData done [13:58:07]ExternCall_PrintAddStr [13:58:07]wPrintStart [13:58:07]Write to MH i2c: 01 00 00 2B 07 32 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 2B 07 00 00 00 00 00 FF 0F 47 [13:58:07]RasterBufferAndPrint [13:58:07]line Счет N : (1)871779 [13:58:07]line ИНН: 02508201610067 [13:58:07]line Контрольно-Кассовый Чек [13:58:07]line ПРОДАЖА [13:58:07]line ТРК (МРК, ГНК) : 11 [13:58:07]line Товар: 2710194210 [13:58:07]line ДТ(л)-К-4 [13:58:07]line 13.130 * 76.20 [13:58:07]line = 1000.51 [13:58:07]line НДС 12% НСП 1% [13:58:07]line > о реализуемом товаре [13:58:07]line ОКРУГЛЕНИЕ: -0.51 [13:58:07]line ИТОГО: 1000.00 [13:58:07]line Внесено: 1000.00 [13:58:07]line СДАЧА: 0.00 [13:58:07]line НСП 1% : 8.85 [13:58:07]line НДС 12% : 106.25 [13:58:07]line Наличными: 1000.00 [13:58:07]line Безнал.: 0.00 [13:58:07]line Место: АЗС № 137 "Партнер Нефть" [13:58:07]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [13:58:07]line СНО: Общий режим [13:58:07]line Чек 72 22.09.2024 13:58 [13:58:07]line Смена: 70 ФФД: 1.0 [13:58:07]line ЗНМ: 0300000041 [13:58:07]line РНМ: 0000000000190446 [13:58:07]line Версия ККМ: v1.0 [13:58:07]line ФМ: 0000000002094258 [13:58:07]line ФД: 7674 [13:58:07]line ФПД: 232434645495295 [13:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135807&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7674&fm=232434645495295&tin=02508201610067®Number=0000000000190446&sum=100000 [13:58:07]OFD Sender: Processing packet 7674 [packets to send 51, broken 50] [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00007674 [13:58:07]OFD Sender: To server: pG, [13:58:07]CommunicateWithHost lk.salyk.kg:30040 [13:58:07]ConnectInit lk.salyk.kg [13:58:07]written 0, free lines is 4095 [13:58:08]Write to MH i2c: 01 00 00 56 07 5D [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 56 07 00 00 00 00 00 F3 0C 63 [13:58:08]RasterBufferAndPrint [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]written 0, free lines is 3321 [13:58:08]MH_Cut [13:58:08]Write to MH i2c: D1 01 00 5D 07 01 36 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 01 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 01 00 5D 07 00 35 [13:58:08]Write to MH i2c: 01 00 00 5E 07 65 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** Cut start [13:58:08]*** Purtial cut [13:58:08]*** Stage 1: CUTSNS_PIN = 1 [13:58:09]Connected sock=8 [13:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 F3 54 08 01 05 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 6F 22 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FA 1D 00 00 35 04 06 00 D3 65 E8 7A 6D FF E5 99 1F 74 F9 73 9B 20 [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]*** Stop cut motor [13:58:09]*** Cut end [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 FF 0F 7A [13:58:09]process_action close_receipt done [13:58:09]requested_data is exist [13:58:09]produce_requested_data [13:58:09]requested_item fm.sn is exist - process it [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 11 00 00 [13:58:09]Write to MH i2c: E2 08 00 5F 07 80 11 00 00 00 00 00 00 E0 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 5F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 31 [13:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [13:58:09]wFMCommunicate OK [13:58:09]requested_item fd.num is exist - process it [13:58:09]SAM_PROTO_GetFieldsCounters [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 00 00 [13:58:09]Write to MH i2c: E2 08 00 60 07 80 13 00 00 00 00 00 00 E3 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 62 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 62 00 60 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FA 1D 00 00 0E 04 04 00 46 00 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 36 [13:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FA 1D 00 00 0E 04 04 00 46 00 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 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_GetFieldsCounters done [13:58:09]requested_item shift.num is exist - process it [13:58:09]requested_item shift.opened is exist - process it [13:58:09]req_shift_opened [13:58:09]FM_GetShiftState [13:58:09]SAM_PROTO_GetShiftState [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 01 00 [13:58:09]Write to MH i2c: E2 08 00 61 07 80 13 01 00 00 00 00 00 E5 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0E 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0E 00 61 07 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A8 [13:58:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_GetShiftState done [13:58:09]FM_GetShiftState done [13:58:09]req_shift_opened done [13:58:09]requested_item shift.open_date is exist - process it [13:58:09]req_shift_open_date [13:58:09]req_shift_open_date done [13:58:09]produce_requested_data done [13:58:09]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7674,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [13:58:09]process_action_free close_receipt [13:58:09]json_value_free [13:58:09]json_value_free done [13:58:09]process_json_proto returns [13:58:09]Send response to host [13:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7674,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [13:58:09]free response buf [13:58:09]execute_script done [13:58:09]execute_script returns [13:58:09]free content buf [13:58:09]Sock 9.Close socket [13:58:09]Sock 9.Thread stoped [13:58:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 2E 33 47 00 25 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FA 1D 00 00 F4 03 04 00 2F CD EF 66 B6 04 01 00 00 97 50 67 45 2E 71 4F 7F [13:58:10]CommunicateWithHost err = 0 [13:58:10]CheckOFDResponse [13:58:10]1017 (14) - 77093643461234 [13:58:10]1041 (16) - 0000000002094258 [13:58:10]1040 (4) - 7674 [13:58:10]1012 (4) - 22.09.2024 07:54 [13:58:10]1206 (1) - 0 [13:58:10]OFD Sender: Remove packet 7674 [13:58:10]ProducePacketName [13:58:10]name=ofd_packets/00007674 [13:58:10]NVStorageDeleteData [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:53]recv_with_timeout no data received [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [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:03]recv_with_timeout no data received [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:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:20]recv_with_timeout no data received [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:38]recv_with_timeout no data received [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:29]recv_with_timeout no data received [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:51]recv_with_timeout no data received [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:03]accept exits with 10 [14:03:03]New connection [14:03:03]New thread 3067489636 created [14:03:03]Thread 3067632996 joined [14:03:03]Waiting for new connection... [14:03:03] Sock 10.Parse request [14:03:03]Sock 10.Check first char [14:03:03]Sock 10.First char is OK [14:03:03]request: POST /json_proto HTTP/1.0 [14:03:03]Method: POST [14:03:03]URL: /json_proto [14:03:03]Method is POST - this is cgi request [14:03:03]url: /json_proto [14:03:03]query_string will be loaded in cgi processing [14:03:03]execute_cgi json_proto POST (null) [14:03:03]execute_cgi path=json_proto method=POST [14:03:03]POST find Content-Length [14:03:03]Host: 172.17.47.195:8080 [14:03:03]Content-Length: 687 [14:03:03]Content-Type: application/json [14:03:03] [14:03:03]POST finish read [14:03:03]Found Content-Length = 687 [14:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:03]execute_script... [14:03: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)871780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:03]POST & json_proto [14:03:03]process_json_proto [14:03:03]json parsed OK: [14:03:03]protocol is kg_v1.0 [14:03:03]action value=close_receipt [14:03:03]process_action close_receipt [14:03:03]cmd_close_receipt [14:03:03]MH_GetDate [14:03:03]Write to MH i2c: F0 00 00 62 07 58 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 09 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 09 00 62 07 00 98 23 F0 66 96 2E 95 66 31 [14:03:03]GetLastDocTimeStamp 1727013487 [14:03:03]current date 1727013784 [14:03:03]FM_GetShiftState [14:03:03]SAM_PROTO_GetShiftState [14:03:03]wFMCommunicate request_size=4 [14:03:03]MH_SAM_APDU [14:03:03]CAPDU: 80 13 01 00 [14:03:03]Write to MH i2c: E2 08 00 63 07 80 13 01 00 00 00 00 00 E7 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 63 07 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 AA [14:03:03]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:03:03]wFMCommunicate OK [14:03:03]SAM_PROTO_GetShiftState done [14:03:03]FM_GetShiftState done [14:03:03]opened in 1726964224 [14:03:03]opened+sec_in_day 1727050624 [14:03:03]quantity*price = 260070 [14:03:03]sum+1 = 260072 [14:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2600.00 Внесено: 2600.00 СДАЧА: 0.00 НСП 1% : 23.01 НДС 12% : 276.18 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 73 22.09.2024 14:03 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7675 ФПД: 202182349390732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140304&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7675&fm=202182349390732&tin=02508201610067®Number=0000000000190446&sum=260000 [14:03:04]StoreToDocumentArchive [14:03:04]shift 70 fd 7675 [14:03:04]save to /storage/0070/doc_00007675 [14:03:04]save last doc name /storage/0070/doc_00007675 to /storage/kkm_last_doc_name [14:03:04]save OK [14:03:04]Clear old archive folders... [14:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:03:04]tlvbuf is 017E2380 [14:03:04]SAM_PROTO_ClearQueue [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 09 00 00 [14:03:04]Write to MH i2c: E2 08 00 70 07 80 09 00 00 00 00 00 00 E9 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]SAM_PROTO_ClearQueue done [14:03:04]KKMCreateOFDPacket [14:03:04]OFDProtocolAddRootSTLVToBuf [14:03:04]FM_MakeSignedData [14:03:04]FM_MakeSignedData [14:03:04]SAM_PROTO_SignData [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 0D 01 02 [14:03:04]Write to MH i2c: E2 08 00 71 07 80 0D 01 02 00 00 00 00 F1 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]wFMCommunicate request_size=255 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 98 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FB 1D 00 00 35 04 06 00 [14:03:04]Write to MH i2c: E2 02 01 72 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 34 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 98 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FB 1D 00 00 35 04 06 00 00 00 09 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]wFMCommunicate request_size=11 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 0D 02 02 06 B7 E2 3F 1D 83 8C [14:03:04]Write to MH i2c: E2 0E 00 73 07 80 0D 02 02 06 00 B7 E2 3F 1D 83 8C 00 00 04 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 0D 03 02 [14:03:04]Write to MH i2c: E2 08 00 74 07 80 0D 03 02 00 00 00 00 F6 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 0B 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 0B 00 74 07 00 64 ED 07 4D A5 81 05 65 90 00 2C [14:03:04]RAPDU: 64 ED 07 4D A5 81 05 65 90 00 [14:03:04]wFMCommunicate OK [14:03:04]SAM_PROTO_SignData done [14:03:04]FM_MakeSignedData done [14:03:04]CreateOFDProtocolMessage [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 11 00 00 [14:03:04]Write to MH i2c: E2 08 00 75 07 80 11 00 00 00 00 00 00 F6 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 17 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 17 00 75 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 47 [14:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:03:04]wFMCommunicate OK [14:03:04]CreateOFDProtocolMessage done [14:03:04]OFDSenderStorePacket 7675 [14:03:04]StoreOFDPacket docnum=7675 [14:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 26 8B 08 01 F4 E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 98 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FB 1D 00 00 35 04 06 00 B7 E2 3F 1D 83 8C 64 ED 07 4D A5 81 05 65 [14:03:04]CheckFolder [14:03:04]dirname=/storage/ofd_packets [14:03:04]CheckFolder done [14:03:04]ProducePacketName [14:03:04]name=ofd_packets/00007675 [14:03:04]NVStorageSaveData ofd_packets/00007675 [14:03:04]File name is /storage/ofd_packets/00007675 [14:03:04]Write 302 bytes [14:03:04]NVStorageSaveData done [14:03:04]OFDSenderStorePacket done [14:03:04]KKMCreateOFDPacket done [14:03:04]NVStorageSaveData kkm_last_timestamp [14:03:04]File name is /storage/kkm_last_timestamp [14:03:04]Write 4 bytes [14:03:04]NVStorageSaveData done [14:03:04]ExternCall_PrintAddStr [14:03:04]wPrintStart [14:03:04]Write to MH i2c: 01 00 00 76 07 7D [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 07 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 07 00 76 07 00 00 00 00 00 FF 0F 92 [14:03:04]RasterBufferAndPrint [14:03:04]line Счет N : (1)871780 [14:03:04]line ИНН: 02508201610067 [14:03:04]line Контрольно-Кассовый Чек [14:03:04]line ПРОДАЖА [14:03:04]line ТРК (МРК, ГНК) : 54 [14:03:04]line Товар: 2710194210 [14:03:04]line ДТ(л)-К-4 [14:03:04]line 34.130 * 76.20 [14:03:04]line = 2600.71 [14:03:04]line НДС 12% НСП 1% [14:03:04]line > о реализуемом товаре [14:03:04]line ОКРУГЛЕНИЕ: -0.71 [14:03:04]line ИТОГО: 2600.00 [14:03:04]line Внесено: 2600.00 [14:03:04]line СДАЧА: 0.00 [14:03:04]line НСП 1% : 23.01 [14:03:04]line НДС 12% : 276.18 [14:03:04]line Наличными: 2600.00 [14:03:04]line Безнал.: 0.00 [14:03:04]line Место: АЗС № 137 "Партнер Нефть" [14:03:04]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:03:04]line СНО: Общий режим [14:03:04]line Чек 73 22.09.2024 14:03 [14:03:04]line Смена: 70 ФФД: 1.0 [14:03:04]line ЗНМ: 0300000041 [14:03:04]line РНМ: 0000000000190446 [14:03:04]line Версия ККМ: v1.0 [14:03:04]line ФМ: 0000000002094258 [14:03:04]line ФД: 7675 [14:03:04]line ФПД: 202182349390732 [14:03:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140304&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7675&fm=202182349390732&tin=02508201610067®Number=0000000000190446&sum=260000 [14:03:05]OFD Sender: Processing packet 7675 [packets to send 51, broken 50] [14:03:05]ProducePacketName [14:03:05]name=ofd_packets/00007675 [14:03:05]OFD Sender: To server: pG, [14:03:05]CommunicateWithHost lk.salyk.kg:30040 [14:03:05]ConnectInit lk.salyk.kg [14:03:05]written 0, free lines is 4095 [14:03:05]Connected sock=8 [14:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 26 8B 08 01 F4 E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 98 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FB 1D 00 00 35 04 06 00 B7 E2 3F 1D 83 8C 64 ED 07 4D A5 81 05 65 [14:03:05]Write to MH i2c: 01 00 00 A1 07 A8 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 00 0D BC [14:03:05]RasterBufferAndPrint [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]written 0, free lines is 3334 [14:03:05]MH_Cut [14:03:05]Write to MH i2c: D1 01 00 A8 07 01 81 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 01 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 01 00 A8 07 00 80 [14:03:05]Write to MH i2c: 01 00 00 A9 07 B0 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F1 1F 47 00 CF 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 32 30 39 34 32 35 38 10 04 04 00 FB 1D 00 00 F4 03 04 00 57 CE EF 66 B6 04 01 00 00 A1 01 9A 77 5B 38 9C 9E [14:03:06]CommunicateWithHost err = 0 [14:03:06]CheckOFDResponse [14:03:06]1017 (14) - 77093643461234 [14:03:06]1041 (16) - 0000000002094258 [14:03:06]1040 (4) - 7675 [14:03:06]1012 (4) - 22.09.2024 07:59 [14:03:06]1206 (1) - 0 [14:03:06]OFD Sender: Remove packet 7675 [14:03:06]ProducePacketName [14:03:06]name=ofd_packets/00007675 [14:03:06]NVStorageDeleteData [14:03:06]*** Cut start [14:03:06]*** Purtial cut [14:03:06]*** Stage 1: CUTSNS_PIN = 1 [14:03:06]OFD Sender: No OFD packet to send [14:03:06]Read from MH i2c: 01 [14:03:06]MH_I2C_Read... [14:03:06]*** Stop cut motor [14:03:06]*** Cut end [14:03:06]Read from MH i2c: 01 07 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [14:03:06]process_action close_receipt done [14:03:06]requested_data is exist [14:03:06]produce_requested_data [14:03:06]requested_item fm.sn is exist - process it [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 11 00 00 [14:03:06]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7C [14:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:03:06]wFMCommunicate OK [14:03:06]requested_item fd.num is exist - process it [14:03:06]SAM_PROTO_GetFieldsCounters [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 13 00 00 [14:03:06]Write to MH i2c: E2 08 00 AB 07 80 13 00 00 00 00 00 00 2E [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 62 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 62 00 AB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FB 1D 00 00 0E 04 04 00 46 00 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 85 [14:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FB 1D 00 00 0E 04 04 00 46 00 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 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_GetFieldsCounters done [14:03:06]requested_item shift.num is exist - process it [14:03:06]requested_item shift.opened is exist - process it [14:03:06]req_shift_opened [14:03:06]FM_GetShiftState [14:03:06]SAM_PROTO_GetShiftState [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 13 01 00 [14:03:06]Write to MH i2c: E2 08 00 AC 07 80 13 01 00 00 00 00 00 30 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0E 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0E 00 AC 07 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F3 [14:03:06]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_GetShiftState done [14:03:06]FM_GetShiftState done [14:03:06]req_shift_opened done [14:03:06]requested_item shift.open_date is exist - process it [14:03:06]req_shift_open_date [14:03:06]req_shift_open_date done [14:03:06]produce_requested_data done [14:03:06]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7675,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:03:06]process_action_free close_receipt [14:03:06]json_value_free [14:03:06]json_value_free done [14:03:06]process_json_proto returns [14:03:06]Send response to host [14:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7675,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:03:06]free response buf [14:03:06]execute_script done [14:03:06]execute_script returns [14:03:06]free content buf [14:03:06]Sock 10.Close socket [14:03:06]Sock 10.Thread stoped [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:08]accept exits with 9 [14:04:08]New connection [14:04:08]New thread 3067632996 created [14:04:08]Thread 3067489636 joined [14:04:08]Waiting for new connection... [14:04:08] Sock 9.Parse request [14:04:08]Sock 9.Check first char [14:04:08]Sock 9.First char is OK [14:04:08]request: POST /json_proto HTTP/1.0 [14:04:08]Method: POST [14:04:08]URL: /json_proto [14:04:08]Method is POST - this is cgi request [14:04:08]url: /json_proto [14:04:08]query_string will be loaded in cgi processing [14:04:08]execute_cgi json_proto POST (null) [14:04:08]execute_cgi path=json_proto method=POST [14:04:08]POST find Content-Length [14:04:08]Host: 172.17.47.195:8080 [14:04:08]Content-Length: 687 [14:04:08]Content-Type: application/json [14:04:08] [14:04:08]POST finish read [14:04:08]Found Content-Length = 687 [14:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:08]execute_script... [14: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)871781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:08]POST & json_proto [14:04:08]process_json_proto [14:04:08]json parsed OK: [14:04:08]protocol is kg_v1.0 [14:04:08]action value=close_receipt [14:04:08]process_action close_receipt [14:04:08]cmd_close_receipt [14:04:08]MH_GetDate [14:04:08]Write to MH i2c: F0 00 00 AD 07 A3 [14:04:08]Write i2c OK [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: F0 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: F0 09 00 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: F0 09 00 AD 07 00 D9 23 F0 66 96 2E 95 66 BD [14:04:08]GetLastDocTimeStamp 1727013784 [14:04:08]current date 1727013849 [14:04:08]FM_GetShiftState [14:04:08]SAM_PROTO_GetShiftState [14:04:08]wFMCommunicate request_size=4 [14:04:08]MH_SAM_APDU [14:04:08]CAPDU: 80 13 01 00 [14:04:08]Write to MH i2c: E2 08 00 AE 07 80 13 01 00 00 00 00 00 32 [14:04:08]Write i2c OK [14:04:08]MH_I2C_Read... [14:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:08]Read from MH i2c: E2 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: E2 0E 00 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: E2 0E 00 AE 07 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F5 [14:04:08]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:04:08]wFMCommunicate OK [14:04:08]SAM_PROTO_GetShiftState done [14:04:08]FM_GetShiftState done [14:04:08]opened in 1726964224 [14:04:08]opened+sec_in_day 1727050624 [14:04:08]quantity*price = 100050 [14:04:08]sum+1 = 100052 [14:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 74 22.09.2024 14:04 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7676 ФПД: 42155840017524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140409&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7676&fm=42155840017524&tin=02508201610067®Number=0000000000190446&sum=100000 [14:04:09]StoreToDocumentArchive [14:04:09]shift 70 fd 7676 [14:04:09]save to /storage/0070/doc_00007676 [14:04:09]save last doc name /storage/0070/doc_00007676 to /storage/kkm_last_doc_name [14:04:09]save OK [14:04:09]Clear old archive folders... [14:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:04:09]tlvbuf is 0178E7D0 [14:04:09]SAM_PROTO_ClearQueue [14:04:09]wFMCommunicate request_size=4 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 09 00 00 [14:04:09]Write to MH i2c: E2 08 00 BB 07 80 09 00 00 00 00 00 00 34 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [14:04:09]RAPDU: 90 00 [14:04:09]wFMCommunicate OK [14:04:09]SAM_PROTO_ClearQueue done [14:04:09]KKMCreateOFDPacket [14:04:09]OFDProtocolAddRootSTLVToBuf [14:04:09]FM_MakeSignedData [14:04:09]FM_MakeSignedData [14:04:09]SAM_PROTO_SignData [14:04:09]wFMCommunicate request_size=4 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 0D 01 02 [14:04:09]Write to MH i2c: E2 08 00 BC 07 80 0D 01 02 00 00 00 00 3C [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 BC 07 00 90 00 37 [14:04:09]RAPDU: 90 00 [14:04:09]wFMCommunicate OK [14:04:09]wFMCommunicate request_size=255 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 D9 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FC 1D 00 00 35 04 06 00 [14:04:09]Write to MH i2c: E2 02 01 BD 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D9 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FC 1D 00 00 35 04 06 00 00 00 A0 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [14:04:09]RAPDU: 90 00 [14:04:09]wFMCommunicate OK [14:04:09]wFMCommunicate request_size=11 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 0D 02 02 06 26 57 2B DE 94 74 [14:04:09]Write to MH i2c: E2 0E 00 BE 07 80 0D 02 02 06 00 26 57 2B DE 94 74 00 00 D9 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [14:04:09]RAPDU: 90 00 [14:04:09]wFMCommunicate OK [14:04:09]wFMCommunicate request_size=4 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 0D 03 02 [14:04:09]Write to MH i2c: E2 08 00 BF 07 80 0D 03 02 00 00 00 00 41 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 0B 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 0B 00 BF 07 00 F4 D4 3D EE A3 FD 84 EA 90 00 43 [14:04:09]RAPDU: F4 D4 3D EE A3 FD 84 EA 90 00 [14:04:09]wFMCommunicate OK [14:04:09]SAM_PROTO_SignData done [14:04:09]FM_MakeSignedData done [14:04:09]CreateOFDProtocolMessage [14:04:09]wFMCommunicate request_size=4 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 11 00 00 [14:04:09]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 17 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 92 [14:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:04:09]wFMCommunicate OK [14:04:09]CreateOFDProtocolMessage done [14:04:09]OFDSenderStorePacket 7676 [14:04:09]StoreOFDPacket docnum=7676 [14:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 5C 38 08 01 3A AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D9 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FC 1D 00 00 35 04 06 00 26 57 2B DE 94 74 F4 D4 3D EE A3 FD 84 EA [14:04:09]CheckFolder [14:04:09]dirname=/storage/ofd_packets [14:04:09]CheckFolder done [14:04:09]ProducePacketName [14:04:09]name=ofd_packets/00007676 [14:04:09]NVStorageSaveData ofd_packets/00007676 [14:04:09]File name is /storage/ofd_packets/00007676 [14:04:09]Write 302 bytes [14:04:09]NVStorageSaveData done [14:04:09]OFDSenderStorePacket done [14:04:09]KKMCreateOFDPacket done [14:04:09]NVStorageSaveData kkm_last_timestamp [14:04:09]File name is /storage/kkm_last_timestamp [14:04:09]Write 4 bytes [14:04:09]NVStorageSaveData done [14:04:09]ExternCall_PrintAddStr [14:04:09]wPrintStart [14:04:09]Write to MH i2c: 01 00 00 C1 07 C8 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: 01 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: 01 07 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: 01 07 00 C1 07 00 00 00 00 00 FF 0F DD [14:04:09]RasterBufferAndPrint [14:04:09]line Счет N : (1)871781 [14:04:09]line ИНН: 02508201610067 [14:04:09]line Контрольно-Кассовый Чек [14:04:09]line ПРОДАЖА [14:04:09]line ТРК (МРК, ГНК) : 34 [14:04:09]line Товар: 2710194210 [14:04:09]line ДТ(л)-К-4 [14:04:09]line 13.130 * 76.20 [14:04:09]line = 1000.51 [14:04:09]line НДС 12% НСП 1% [14:04:09]line > о реализуемом товаре [14:04:09]line ОКРУГЛЕНИЕ: -0.51 [14:04:09]line ИТОГО: 1000.00 [14:04:09]line Внесено: 1000.00 [14:04:09]line СДАЧА: 0.00 [14:04:09]line НСП 1% : 8.85 [14:04:09]line НДС 12% : 106.25 [14:04:09]line Наличными: 1000.00 [14:04:09]line Безнал.: 0.00 [14:04:09]line Место: АЗС № 137 "Партнер Нефть" [14:04:09]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:04:09]line СНО: Общий режим [14:04:09]line Чек 74 22.09.2024 14:04 [14:04:09]line Смена: 70 ФФД: 1.0 [14:04:09]line ЗНМ: 0300000041 [14:04:09]line РНМ: 0000000000190446 [14:04:09]line Версия ККМ: v1.0 [14:04:09]line ФМ: 0000000002094258 [14:04:09]line ФД: 7676 [14:04:09]line ФПД: 42155840017524 [14:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140409&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7676&fm=42155840017524&tin=02508201610067®Number=0000000000190446&sum=100000 [14:04:10]OFD Sender: Processing packet 7676 [packets to send 51, broken 50] [14:04:10]ProducePacketName [14:04:10]name=ofd_packets/00007676 [14:04:10]OFD Sender: To server: pG, [14:04:10]CommunicateWithHost lk.salyk.kg:30040 [14:04:10]ConnectInit lk.salyk.kg [14:04:10]written 0, free lines is 4095 [14:04:10]Connected sock=10 [14:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 5C 38 08 01 3A AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D9 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FC 1D 00 00 35 04 06 00 26 57 2B DE 94 74 F4 D4 3D EE A3 FD 84 EA [14:04:10]Write to MH i2c: 01 00 00 EC 07 F3 [14:04:10]Write i2c OK [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: 01 [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: 01 07 00 [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: 01 07 00 EC 07 00 00 00 00 00 E7 0C ED [14:04:10]RasterBufferAndPrint [14:04:10]line [14:04:10]line [14:04:10]line [14:04:10]line [14:04:10]line [14:04:10]written 0, free lines is 3309 [14:04:10]MH_Cut [14:04:10]Write to MH i2c: D1 01 00 F3 07 01 CC [14:04:10]Write i2c OK [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: D1 [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: D1 01 00 [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: D1 01 00 F3 07 00 CB [14:04:10]Write to MH i2c: 01 00 00 F4 07 FB [14:04:10]Write i2c OK [14:04:10]MH_I2C_Read... [14:04:11]*** Cut start [14:04:11]*** Purtial cut [14:04:11]*** Stage 1: CUTSNS_PIN = 1 [14:04:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 A3 3A 47 00 F9 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FC 1D 00 00 F4 03 04 00 98 CE EF 66 B6 04 01 00 00 52 3E C4 1B 34 30 C9 FA [14:04:11]CommunicateWithHost err = 0 [14:04:11]CheckOFDResponse [14:04:11]1017 (14) - 77093643461234 [14:04:11]1041 (16) - 0000000002094258 [14:04:11]1040 (4) - 7676 [14:04:11]1012 (4) - 22.09.2024 08:00 [14:04:11]1206 (1) - 0 [14:04:11]OFD Sender: Remove packet 7676 [14:04:11]ProducePacketName [14:04:11]name=ofd_packets/00007676 [14:04:11]NVStorageDeleteData [14:04:11]Read from MH i2c: 01 [14:04:11]MH_I2C_Read... [14:04:11]*** Stop cut motor [14:04:11]*** Cut end [14:04:11]Read from MH i2c: 01 07 00 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: 01 07 00 F4 07 00 00 00 00 00 FF 0F 10 [14:04:11]process_action close_receipt done [14:04:11]requested_data is exist [14:04:11]produce_requested_data [14:04:11]requested_item fm.sn is exist - process it [14:04:11]wFMCommunicate request_size=4 [14:04:11]MH_SAM_APDU [14:04:11]CAPDU: 80 11 00 00 [14:04:11]Write to MH i2c: E2 08 00 F5 07 80 11 00 00 00 00 00 00 76 [14:04:11]Write i2c OK [14:04:11]MH_I2C_Read... [14:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:11]Read from MH i2c: E2 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 17 00 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 17 00 F5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C7 [14:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:04:11]wFMCommunicate OK [14:04:11]requested_item fd.num is exist - process it [14:04:11]SAM_PROTO_GetFieldsCounters [14:04:11]wFMCommunicate request_size=4 [14:04:11]MH_SAM_APDU [14:04:11]CAPDU: 80 13 00 00 [14:04:11]Write to MH i2c: E2 08 00 F6 07 80 13 00 00 00 00 00 00 79 [14:04:11]Write i2c OK [14:04:11]MH_I2C_Read... [14:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:11]Read from MH i2c: E2 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 62 00 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 62 00 F6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FC 1D 00 00 0E 04 04 00 46 00 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 D4 [14:04:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FC 1D 00 00 0E 04 04 00 46 00 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 [14:04:11]wFMCommunicate OK [14:04:11]SAM_PROTO_GetFieldsCounters done [14:04:11]requested_item shift.num is exist - process it [14:04:11]requested_item shift.opened is exist - process it [14:04:11]req_shift_opened [14:04:11]FM_GetShiftState [14:04:11]SAM_PROTO_GetShiftState [14:04:11]wFMCommunicate request_size=4 [14:04:11]MH_SAM_APDU [14:04:11]CAPDU: 80 13 01 00 [14:04:11]Write to MH i2c: E2 08 00 F7 07 80 13 01 00 00 00 00 00 7B [14:04:11]Write i2c OK [14:04:11]MH_I2C_Read... [14:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:11]Read from MH i2c: E2 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 0E 00 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 0E 00 F7 07 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3E [14:04:11]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:04:11]wFMCommunicate OK [14:04:11]SAM_PROTO_GetShiftState done [14:04:11]FM_GetShiftState done [14:04:11]req_shift_opened done [14:04:11]requested_item shift.open_date is exist - process it [14:04:11]req_shift_open_date [14:04:11]req_shift_open_date done [14:04:11]produce_requested_data done [14:04:11]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7676,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:04:11]process_action_free close_receipt [14:04:11]json_value_free [14:04:11]json_value_free done [14:04:11]process_json_proto returns [14:04:11]Send response to host [14:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7676,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:04:11]free response buf [14:04:11]execute_script done [14:04:11]execute_script returns [14:04:11]free content buf [14:04:11]Sock 9.Close socket [14:04:11]Sock 9.Thread stoped [14:04:12]OFD Sender: No OFD packet to send [14:04:13]accept exits with 8 [14:04:13]New connection [14:04:13]New thread 3067489636 created [14:04:13]Thread 3067632996 joined [14:04:13]Waiting for new connection... [14:04:13] Sock 8.Parse request [14:04:13]Sock 8.Check first char [14:04:13]Sock 8.First char is OK [14:04:13]request: POST /json_proto HTTP/1.0 [14:04:13]Method: POST [14:04:13]URL: /json_proto [14:04:13]Method is POST - this is cgi request [14:04:13]url: /json_proto [14:04:13]query_string will be loaded in cgi processing [14:04:13]execute_cgi json_proto POST (null) [14:04:13]execute_cgi path=json_proto method=POST [14:04:13]POST find Content-Length [14:04:13]Host: 172.17.47.195:8080 [14:04:13]Content-Length: 687 [14:04:13]Content-Type: application/json [14:04:13] [14:04:13]POST finish read [14:04:13]Found Content-Length = 687 [14:04:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:13]execute_script... [14:04:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:13]POST & json_proto [14:04:13]process_json_proto [14:04:13]json parsed OK: [14:04:13]protocol is kg_v1.0 [14:04:13]action value=close_receipt [14:04:13]process_action close_receipt [14:04:13]cmd_close_receipt [14:04:13]MH_GetDate [14:04:13]Write to MH i2c: F0 00 00 F8 07 EE [14:04:13]Write i2c OK [14:04:13]MH_I2C_Read... [14:04:13]Read from MH i2c: F0 [14:04:13]MH_I2C_Read... [14:04:13]Read from MH i2c: F0 09 00 [14:04:13]MH_I2C_Read... [14:04:13]Read from MH i2c: F0 09 00 F8 07 00 DF 23 F0 66 96 2E 95 66 0E [14:04:13]GetLastDocTimeStamp 1727013849 [14:04:13]current date 1727013855 [14:04:13]FM_GetShiftState [14:04:13]SAM_PROTO_GetShiftState [14:04:13]wFMCommunicate request_size=4 [14:04:13]MH_SAM_APDU [14:04:13]CAPDU: 80 13 01 00 [14:04:13]Write to MH i2c: E2 08 00 F9 07 80 13 01 00 00 00 00 00 7D [14:04:13]Write i2c OK [14:04:13]MH_I2C_Read... [14:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:13]Read from MH i2c: E2 [14:04:13]MH_I2C_Read... [14:04:13]Read from MH i2c: E2 0E 00 [14:04:13]MH_I2C_Read... [14:04:13]Read from MH i2c: E2 0E 00 F9 07 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 40 [14:04:13]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:04:13]wFMCommunicate OK [14:04:13]SAM_PROTO_GetShiftState done [14:04:13]FM_GetShiftState done [14:04:13]opened in 1726964224 [14:04:13]opened+sec_in_day 1727050624 [14:04:13]quantity*price = 150037 [14:04:13]sum+1 = 150039 [14:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 75 22.09.2024 14:04 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7677 ФПД: 26774061497337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140415&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7677&fm=26774061497337&tin=02508201610067®Number=0000000000190446&sum=150000 [14:04:14]StoreToDocumentArchive [14:04:14]shift 70 fd 7677 [14:04:14]save to /storage/0070/doc_00007677 [14:04:14]save last doc name /storage/0070/doc_00007677 to /storage/kkm_last_doc_name [14:04:14]save OK [14:04:14]Clear old archive folders... [14:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:04:14]tlvbuf is 0175D8E0 [14:04:14]SAM_PROTO_ClearQueue [14:04:14]wFMCommunicate request_size=4 [14:04:14]MH_SAM_APDU [14:04:14]CAPDU: 80 09 00 00 [14:04:14]Write to MH i2c: E2 08 00 06 08 80 09 00 00 00 00 00 00 80 [14:04:14]Write i2c OK [14:04:14]MH_I2C_Read... [14:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:14]Read from MH i2c: E2 [14:04:14]MH_I2C_Read... [14:04:14]Read from MH i2c: E2 03 00 [14:04:14]MH_I2C_Read... [14:04:14]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [14:04:14]RAPDU: 90 00 [14:04:14]wFMCommunicate OK [14:04:14]SAM_PROTO_ClearQueue done [14:04:14]KKMCreateOFDPacket [14:04:14]OFDProtocolAddRootSTLVToBuf [14:04:14]FM_MakeSignedData [14:04:14]FM_MakeSignedData [14:04:14]SAM_PROTO_SignData [14:04:14]wFMCommunicate request_size=4 [14:04:14]MH_SAM_APDU [14:04:14]CAPDU: 80 0D 01 02 [14:04:14]Write to MH i2c: E2 08 00 07 08 80 0D 01 02 00 00 00 00 88 [14:04:14]Write i2c OK [14:04:14]MH_I2C_Read... [14:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:15]Read from MH i2c: E2 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 03 00 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [14:04:15]RAPDU: 90 00 [14:04:15]wFMCommunicate OK [14:04:15]wFMCommunicate request_size=255 [14:04:15]MH_SAM_APDU [14:04:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FD 1D 00 00 35 04 06 00 [14:04:15]Write to MH i2c: E2 02 01 08 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 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FD 1D 00 00 35 04 06 00 00 00 6B [14:04:15]Write i2c OK [14:04:15]MH_I2C_Read... [14:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:15]Read from MH i2c: E2 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 03 00 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [14:04:15]RAPDU: 90 00 [14:04:15]wFMCommunicate OK [14:04:15]wFMCommunicate request_size=11 [14:04:15]MH_SAM_APDU [14:04:15]CAPDU: 80 0D 02 02 06 18 59 D2 6C BB F9 [14:04:15]Write to MH i2c: E2 0E 00 09 08 80 0D 02 02 06 00 18 59 D2 6C BB F9 00 00 FA [14:04:15]Write i2c OK [14:04:15]MH_I2C_Read... [14:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:15]Read from MH i2c: E2 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 03 00 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 03 00 09 08 00 90 00 85 [14:04:15]RAPDU: 90 00 [14:04:15]wFMCommunicate OK [14:04:15]wFMCommunicate request_size=4 [14:04:15]MH_SAM_APDU [14:04:15]CAPDU: 80 0D 03 02 [14:04:15]Write to MH i2c: E2 08 00 0A 08 80 0D 03 02 00 00 00 00 8D [14:04:15]Write i2c OK [14:04:15]MH_I2C_Read... [14:04:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:15]Read from MH i2c: E2 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 0B 00 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 0B 00 0A 08 00 BC 70 22 DF FC 3D 44 BC 90 00 F4 [14:04:15]RAPDU: BC 70 22 DF FC 3D 44 BC 90 00 [14:04:15]wFMCommunicate OK [14:04:15]SAM_PROTO_SignData done [14:04:15]FM_MakeSignedData done [14:04:15]CreateOFDProtocolMessage [14:04:15]wFMCommunicate request_size=4 [14:04:15]MH_SAM_APDU [14:04:15]CAPDU: 80 11 00 00 [14:04:15]Write to MH i2c: E2 08 00 0B 08 80 11 00 00 00 00 00 00 8D [14:04:15]Write i2c OK [14:04:15]MH_I2C_Read... [14:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:15]Read from MH i2c: E2 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 17 00 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: E2 17 00 0B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DE [14:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:04:15]wFMCommunicate OK [14:04:15]CreateOFDProtocolMessage done [14:04:15]OFDSenderStorePacket 7677 [14:04:15]StoreOFDPacket docnum=7677 [14:04:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 5A 61 08 01 04 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FD 1D 00 00 35 04 06 00 18 59 D2 6C BB F9 BC 70 22 DF FC 3D 44 BC [14:04:15]CheckFolder [14:04:15]dirname=/storage/ofd_packets [14:04:15]CheckFolder done [14:04:15]ProducePacketName [14:04:15]name=ofd_packets/00007677 [14:04:15]NVStorageSaveData ofd_packets/00007677 [14:04:15]File name is /storage/ofd_packets/00007677 [14:04:15]Write 302 bytes [14:04:15]NVStorageSaveData done [14:04:15]OFDSenderStorePacket done [14:04:15]KKMCreateOFDPacket done [14:04:15]NVStorageSaveData kkm_last_timestamp [14:04:15]File name is /storage/kkm_last_timestamp [14:04:15]Write 4 bytes [14:04:15]NVStorageSaveData done [14:04:15]ExternCall_PrintAddStr [14:04:15]wPrintStart [14:04:15]Write to MH i2c: 01 00 00 0C 08 14 [14:04:15]Write i2c OK [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: 01 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: 01 07 00 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: 01 07 00 0C 08 00 00 00 00 00 FF 0F 29 [14:04:15]RasterBufferAndPrint [14:04:15]line Счет N : (1)871782 [14:04:15]line ИНН: 02508201610067 [14:04:15]line Контрольно-Кассовый Чек [14:04:15]line ПРОДАЖА [14:04:15]line ТРК (МРК, ГНК) : 11 [14:04:15]line Товар: 2710194210 [14:04:15]line ДТ(л)-К-4 [14:04:15]line 19.690 * 76.20 [14:04:15]line = 1500.38 [14:04:15]line НДС 12% НСП 1% [14:04:15]line > о реализуемом товаре [14:04:15]line ОКРУГЛЕНИЕ: -0.38 [14:04:15]line ИТОГО: 1500.00 [14:04:15]line Внесено: 1500.00 [14:04:15]line СДАЧА: 0.00 [14:04:15]line НСП 1% : 13.28 [14:04:15]line НДС 12% : 159.33 [14:04:15]line Наличными: 1500.00 [14:04:15]line Безнал.: 0.00 [14:04:15]line Место: АЗС № 137 "Партнер Нефть" [14:04:15]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:04:15]line СНО: Общий режим [14:04:15]line Чек 75 22.09.2024 14:04 [14:04:15]line Смена: 70 ФФД: 1.0 [14:04:15]line ЗНМ: 0300000041 [14:04:15]line РНМ: 0000000000190446 [14:04:15]line Версия ККМ: v1.0 [14:04:15]line ФМ: 0000000002094258 [14:04:15]line ФД: 7677 [14:04:15]line ФПД: 26774061497337 [14:04:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140415&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7677&fm=26774061497337&tin=02508201610067®Number=0000000000190446&sum=150000 [14:04:15]written 0, free lines is 4095 [14:04:15]OFD Sender: Processing packet 7677 [packets to send 51, broken 50] [14:04:15]ProducePacketName [14:04:15]name=ofd_packets/00007677 [14:04:15]OFD Sender: To server: pG, [14:04:15]CommunicateWithHost lk.salyk.kg:30040 [14:04:15]ConnectInit lk.salyk.kg [14:04:15]Write to MH i2c: 01 00 00 37 08 3F [14:04:15]Write i2c OK [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: 01 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: 01 07 00 [14:04:15]MH_I2C_Read... [14:04:15]Read from MH i2c: 01 07 00 37 08 00 00 00 00 00 EC 0C 3E [14:04:15]RasterBufferAndPrint [14:04:15]line [14:04:15]line [14:04:15]line [14:04:15]line [14:04:15]line [14:04:15]written 0, free lines is 3320 [14:04:16]MH_Cut [14:04:16]Write to MH i2c: D1 01 00 3E 08 01 18 [14:04:16]Write i2c OK [14:04:16]MH_I2C_Read... [14:04:16]Read from MH i2c: D1 [14:04:16]MH_I2C_Read... [14:04:16]Read from MH i2c: D1 01 00 [14:04:16]MH_I2C_Read... [14:04:16]Read from MH i2c: D1 01 00 3E 08 00 17 [14:04:16]Write to MH i2c: 01 00 00 3F 08 47 [14:04:16]Write i2c OK [14:04:16]MH_I2C_Read... [14:04:16]*** Cut start [14:04:16]*** Purtial cut [14:04:16]*** Stage 1: CUTSNS_PIN = 1 [14:04:16]Read from MH i2c: 01 [14:04:16]MH_I2C_Read... [14:04:16]*** Stop cut motor [14:04:16]*** Cut end [14:04:16]Read from MH i2c: 01 07 00 [14:04:16]MH_I2C_Read... [14:04:16]Read from MH i2c: 01 07 00 3F 08 00 00 00 00 00 FF 0F 5C [14:04:16]process_action close_receipt done [14:04:16]requested_data is exist [14:04:16]produce_requested_data [14:04:16]requested_item fm.sn is exist - process it [14:04:16]wFMCommunicate request_size=4 [14:04:16]MH_SAM_APDU [14:04:16]CAPDU: 80 11 00 00 [14:04:16]Write to MH i2c: E2 08 00 40 08 80 11 00 00 00 00 00 00 C2 [14:04:16]Write i2c OK [14:04:16]MH_I2C_Read... [14:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:16]Read from MH i2c: E2 [14:04:16]MH_I2C_Read... [14:04:16]Read from MH i2c: E2 17 00 [14:04:16]MH_I2C_Read... [14:04:16]Read from MH i2c: E2 17 00 40 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 13 [14:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:04:16]wFMCommunicate OK [14:04:16]requested_item fd.num is exist - process it [14:04:16]SAM_PROTO_GetFieldsCounters [14:04:16]wFMCommunicate request_size=4 [14:04:16]MH_SAM_APDU [14:04:16]CAPDU: 80 13 00 00 [14:04:16]Write to MH i2c: E2 08 00 41 08 80 13 00 00 00 00 00 00 C5 [14:04:16]Write i2c OK [14:04:16]MH_I2C_Read... [14:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:17]Read from MH i2c: E2 [14:04:17]MH_I2C_Read... [14:04:17]Read from MH i2c: E2 62 00 [14:04:17]MH_I2C_Read... [14:04:17]Read from MH i2c: E2 62 00 41 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FD 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [14:04:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FD 1D 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:17]wFMCommunicate OK [14:04:17]SAM_PROTO_GetFieldsCounters done [14:04:17]requested_item shift.num is exist - process it [14:04:17]requested_item shift.opened is exist - process it [14:04:17]req_shift_opened [14:04:17]FM_GetShiftState [14:04:17]SAM_PROTO_GetShiftState [14:04:17]wFMCommunicate request_size=4 [14:04:17]MH_SAM_APDU [14:04:17]CAPDU: 80 13 01 00 [14:04:17]Write to MH i2c: E2 08 00 42 08 80 13 01 00 00 00 00 00 C7 [14:04:17]Write i2c OK [14:04:17]MH_I2C_Read... [14:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:17]Read from MH i2c: E2 [14:04:17]MH_I2C_Read... [14:04:17]Read from MH i2c: E2 0E 00 [14:04:17]MH_I2C_Read... [14:04:17]Read from MH i2c: E2 0E 00 42 08 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8A [14:04:17]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:04:17]wFMCommunicate OK [14:04:17]SAM_PROTO_GetShiftState done [14:04:17]FM_GetShiftState done [14:04:17]req_shift_opened done [14:04:17]requested_item shift.open_date is exist - process it [14:04:17]req_shift_open_date [14:04:17]req_shift_open_date done [14:04:17]produce_requested_data done [14:04:17]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7677,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:04:17]process_action_free close_receipt [14:04:17]json_value_free [14:04:17]json_value_free done [14:04:17]process_json_proto returns [14:04:17]Send response to host [14:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7677,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:04:17]free response buf [14:04:17]execute_script done [14:04:17]execute_script returns [14:04:17]free content buf [14:04:17]Sock 8.Close socket [14:04:17]Sock 8.Thread stoped [14:04:17]Connected sock=9 [14:04:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 5A 61 08 01 04 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FD 1D 00 00 35 04 06 00 18 59 D2 6C BB F9 BC 70 22 DF FC 3D 44 BC [14:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 72 9C 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 32 30 39 34 32 35 38 10 04 04 00 FD 1D 00 00 F4 03 04 00 9F CE EF 66 B6 04 01 00 00 39 1B 78 32 74 FF 30 EF [14:04:20]CommunicateWithHost err = 0 [14:04:20]CheckOFDResponse [14:04:20]1017 (14) - 77093643461234 [14:04:20]1041 (16) - 0000000002094258 [14:04:20]1040 (4) - 7677 [14:04:20]1012 (4) - 22.09.2024 08:00 [14:04:20]1206 (1) - 0 [14:04:20]OFD Sender: Remove packet 7677 [14:04:20]ProducePacketName [14:04:20]name=ofd_packets/00007677 [14:04:20]NVStorageDeleteData [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:34]accept exits with 10 [14:04:34]New connection [14:04:34]New thread 3067632996 created [14:04:34]Thread 3067489636 joined [14:04:34]Waiting for new connection... [14:04:34] Sock 10.Parse request [14:04:34]Sock 10.Check first char [14:04:34]Sock 10.First char is OK [14:04:34]request: POST /json_proto HTTP/1.0 [14:04:34]Method: POST [14:04:34]URL: /json_proto [14:04:34]Method is POST - this is cgi request [14:04:34]url: /json_proto [14:04:34]query_string will be loaded in cgi processing [14:04:34]execute_cgi json_proto POST (null) [14:04:34]execute_cgi path=json_proto method=POST [14:04:34]POST find Content-Length [14:04:34]Host: 172.17.47.195:8080 [14:04:34]Content-Length: 677 [14:04:34]Content-Type: application/json [14:04:34] [14:04:34]POST finish read [14:04:34]Found Content-Length = 677 [14:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:34]execute_script... [14:04:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:34]POST & json_proto [14:04:34]process_json_proto [14:04:34]json parsed OK: [14:04:34]protocol is kg_v1.0 [14:04:34]action value=close_receipt [14:04:34]process_action close_receipt [14:04:34]cmd_close_receipt [14:04:34]MH_GetDate [14:04:34]Write to MH i2c: F0 00 00 43 08 3A [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: F0 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: F0 09 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: F0 09 00 43 08 00 F3 23 F0 66 96 2E 95 66 6E [14:04:34]GetLastDocTimeStamp 1727013855 [14:04:34]current date 1727013875 [14:04:34]FM_GetShiftState [14:04:34]SAM_PROTO_GetShiftState [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 13 01 00 [14:04:34]Write to MH i2c: E2 08 00 44 08 80 13 01 00 00 00 00 00 C9 [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0E 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0E 00 44 08 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8C [14:04:34]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:04:34]wFMCommunicate OK [14:04:34]SAM_PROTO_GetShiftState done [14:04:34]FM_GetShiftState done [14:04:34]opened in 1726964224 [14:04:34]opened+sec_in_day 1727050624 [14:04:34]quantity*price = 40002 [14:04:34]sum+1 = 40003 [14:04:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 76 22.09.2024 14:04 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7678 ФПД: 237958571803478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140435&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7678&fm=237958571803478&tin=02508201610067®Number=0000000000190446&sum=40000 [14:04:35]StoreToDocumentArchive [14:04:35]shift 70 fd 7678 [14:04:35]save to /storage/0070/doc_00007678 [14:04:35]save last doc name /storage/0070/doc_00007678 to /storage/kkm_last_doc_name [14:04:35]save OK [14:04:35]Clear old archive folders... [14:04:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:35]tlvbuf is 017867C0 [14:04:35]SAM_PROTO_ClearQueue [14:04:35]wFMCommunicate request_size=4 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 09 00 00 [14:04:35]Write to MH i2c: E2 08 00 51 08 80 09 00 00 00 00 00 00 CB [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 03 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [14:04:35]RAPDU: 90 00 [14:04:35]wFMCommunicate OK [14:04:35]SAM_PROTO_ClearQueue done [14:04:35]KKMCreateOFDPacket [14:04:35]OFDProtocolAddRootSTLVToBuf [14:04:35]FM_MakeSignedData [14:04:35]FM_MakeSignedData [14:04:35]SAM_PROTO_SignData [14:04:35]wFMCommunicate request_size=4 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 0D 01 02 [14:04:35]Write to MH i2c: E2 08 00 52 08 80 0D 01 02 00 00 00 00 D3 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 03 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 03 00 52 08 00 90 00 CE [14:04:35]RAPDU: 90 00 [14:04:35]wFMCommunicate OK [14:04:35]wFMCommunicate request_size=255 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F3 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FE 1D 00 00 35 04 06 00 D8 [14:04:35]Write to MH i2c: E2 02 01 53 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F3 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FE 1D 00 00 35 04 06 00 D8 00 00 25 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 03 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [14:04:35]RAPDU: 90 00 [14:04:35]wFMCommunicate OK [14:04:35]wFMCommunicate request_size=10 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 0D 02 02 05 6C 0C 24 C3 56 [14:04:35]Write to MH i2c: E2 0D 00 54 08 80 0D 02 02 05 00 6C 0C 24 C3 56 00 00 95 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 03 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [14:04:35]RAPDU: 90 00 [14:04:35]wFMCommunicate OK [14:04:35]wFMCommunicate request_size=4 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 0D 03 02 [14:04:35]Write to MH i2c: E2 08 00 55 08 80 0D 03 02 00 00 00 00 D8 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 0B 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 0B 00 55 08 00 DC 95 70 6A 1C 06 27 78 90 00 E5 [14:04:35]RAPDU: DC 95 70 6A 1C 06 27 78 90 00 [14:04:35]wFMCommunicate OK [14:04:35]SAM_PROTO_SignData done [14:04:35]FM_MakeSignedData done [14:04:35]CreateOFDProtocolMessage [14:04:35]wFMCommunicate request_size=4 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 11 00 00 [14:04:35]Write to MH i2c: E2 08 00 56 08 80 11 00 00 00 00 00 00 D8 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 17 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 17 00 56 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 29 [14:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:04:35]wFMCommunicate OK [14:04:35]CreateOFDProtocolMessage done [14:04:35]OFDSenderStorePacket 7678 [14:04:35]StoreOFDPacket docnum=7678 [14:04:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 AB B5 07 01 05 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F3 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FE 1D 00 00 35 04 06 00 D8 6C 0C 24 C3 56 DC 95 70 6A 1C 06 27 78 [14:04:35]CheckFolder [14:04:35]dirname=/storage/ofd_packets [14:04:35]CheckFolder done [14:04:35]ProducePacketName [14:04:35]name=ofd_packets/00007678 [14:04:35]NVStorageSaveData ofd_packets/00007678 [14:04:35]File name is /storage/ofd_packets/00007678 [14:04:35]Write 301 bytes [14:04:35]NVStorageSaveData done [14:04:35]OFDSenderStorePacket done [14:04:35]KKMCreateOFDPacket done [14:04:35]NVStorageSaveData kkm_last_timestamp [14:04:35]File name is /storage/kkm_last_timestamp [14:04:35]Write 4 bytes [14:04:35]NVStorageSaveData done [14:04:35]ExternCall_PrintAddStr [14:04:35]wPrintStart [14:04:35]Write to MH i2c: 01 00 00 57 08 5F [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: 01 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: 01 07 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: 01 07 00 57 08 00 00 00 00 00 FF 0F 74 [14:04:35]RasterBufferAndPrint [14:04:35]line Счет N : (1)871783 [14:04:35]line ИНН: 02508201610067 [14:04:35]line Контрольно-Кассовый Чек [14:04:35]line ПРОДАЖА [14:04:35]line ТРК (МРК, ГНК) : 43 [14:04:35]line Товар: 2710124130 [14:04:35]line Аи-92-К-5 [14:04:35]line 5.900 * 67.80 [14:04:35]line = 400.02 [14:04:35]line НДС 12% НСП 1% [14:04:35]line > о реализуемом товаре [14:04:35]line ОКРУГЛЕНИЕ: -0.02 [14:04:35]line ИТОГО: 400.00 [14:04:35]line Внесено: 400.00 [14:04:35]line СДАЧА: 0.00 [14:04:35]line НСП 1% : 3.54 [14:04:35]line НДС 12% : 42.48 [14:04:35]line Наличными: 400.00 [14:04:35]line Безнал.: 0.00 [14:04:35]line Место: АЗС № 137 "Партнер Нефть" [14:04:35]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:04:35]line СНО: Общий режим [14:04:35]line Чек 76 22.09.2024 14:04 [14:04:35]line Смена: 70 ФФД: 1.0 [14:04:35]line ЗНМ: 0300000041 [14:04:35]line РНМ: 0000000000190446 [14:04:35]line Версия ККМ: v1.0 [14:04:35]line ФМ: 0000000002094258 [14:04:35]line ФД: 7678 [14:04:35]line ФПД: 237958571803478 [14:04:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140435&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7678&fm=237958571803478&tin=02508201610067®Number=0000000000190446&sum=40000 [14:04:35]OFD Sender: Processing packet 7678 [packets to send 51, broken 50] [14:04:35]ProducePacketName [14:04:35]name=ofd_packets/00007678 [14:04:35]OFD Sender: To server: pG, [14:04:35]CommunicateWithHost lk.salyk.kg:30040 [14:04:35]ConnectInit lk.salyk.kg [14:04:35]written 0, free lines is 4095 [14:04:36]Write to MH i2c: 01 00 00 82 08 8A [14:04:36]Write i2c OK [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: 01 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: 01 07 00 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: 01 07 00 82 08 00 00 00 00 00 ED 0C 8A [14:04:36]RasterBufferAndPrint [14:04:36]line [14:04:36]line [14:04:36]line [14:04:36]line [14:04:36]line [14:04:36]written 0, free lines is 3321 [14:04:36]MH_Cut [14:04:36]Write to MH i2c: D1 01 00 89 08 01 63 [14:04:36]Write i2c OK [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: D1 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: D1 01 00 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: D1 01 00 89 08 00 62 [14:04:36]Write to MH i2c: 01 00 00 8A 08 92 [14:04:36]Write i2c OK [14:04:36]MH_I2C_Read... [14:04:36]Connected sock=11 [14:04:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 AB B5 07 01 05 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F3 23 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FE 1D 00 00 35 04 06 00 D8 6C 0C 24 C3 56 DC 95 70 6A 1C 06 27 78 [14:04:37]*** Cut start [14:04:37]*** Purtial cut [14:04:37]*** Stage 1: CUTSNS_PIN = 1 [14:04:37]Read from MH i2c: 01 [14:04:37]MH_I2C_Read... [14:04:37]*** Stop cut motor [14:04:37]*** Cut end [14:04:37]Read from MH i2c: 01 07 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 FF 0F A7 [14:04:37]process_action close_receipt done [14:04:37]requested_data is exist [14:04:37]produce_requested_data [14:04:37]requested_item fm.sn is exist - process it [14:04:37]wFMCommunicate request_size=4 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 11 00 00 [14:04:37]Write to MH i2c: E2 08 00 8B 08 80 11 00 00 00 00 00 00 0D [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 17 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 17 00 8B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5E [14:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:04:37]wFMCommunicate OK [14:04:37]requested_item fd.num is exist - process it [14:04:37]SAM_PROTO_GetFieldsCounters [14:04:37]wFMCommunicate request_size=4 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 13 00 00 [14:04:37]Write to MH i2c: E2 08 00 8C 08 80 13 00 00 00 00 00 00 10 [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 62 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 62 00 8C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FE 1D 00 00 0E 04 04 00 46 00 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 73 [14:04:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FE 1D 00 00 0E 04 04 00 46 00 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 [14:04:37]wFMCommunicate OK [14:04:37]SAM_PROTO_GetFieldsCounters done [14:04:37]requested_item shift.num is exist - process it [14:04:37]requested_item shift.opened is exist - process it [14:04:37]req_shift_opened [14:04:37]FM_GetShiftState [14:04:37]SAM_PROTO_GetShiftState [14:04:37]wFMCommunicate request_size=4 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 13 01 00 [14:04:37]Write to MH i2c: E2 08 00 8D 08 80 13 01 00 00 00 00 00 12 [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 0E 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 0E 00 8D 08 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D5 [14:04:37]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:04:37]wFMCommunicate OK [14:04:37]SAM_PROTO_GetShiftState done [14:04:37]FM_GetShiftState done [14:04:37]req_shift_opened done [14:04:37]requested_item shift.open_date is exist - process it [14:04:37]req_shift_open_date [14:04:37]req_shift_open_date done [14:04:37]produce_requested_data done [14:04:37]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7678,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:04:37]process_action_free close_receipt [14:04:37]json_value_free [14:04:37]json_value_free done [14:04:37]process_json_proto returns [14:04:37]Send response to host [14:04:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7678,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:04:37]free response buf [14:04:37]execute_script done [14:04:37]execute_script returns [14:04:37]free content buf [14:04:37]Sock 10.Close socket [14:04:37]Sock 10.Thread stoped [14:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 C8 29 47 00 68 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FE 1D 00 00 F4 03 04 00 B3 CE EF 66 B6 04 01 00 00 F3 E7 51 18 2A 35 48 B8 [14:04:39]CommunicateWithHost err = 0 [14:04:39]CheckOFDResponse [14:04:39]1017 (14) - 77093643461234 [14:04:39]1041 (16) - 0000000002094258 [14:04:39]1040 (4) - 7678 [14:04:39]1012 (4) - 22.09.2024 08:00 [14:04:39]1206 (1) - 0 [14:04:39]OFD Sender: Remove packet 7678 [14:04:39]ProducePacketName [14:04:39]name=ofd_packets/00007678 [14:04:39]NVStorageDeleteData [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:04:58]recv_with_timeout no data received [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:09]recv_with_timeout no data received [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:05:59]accept exits with 8 [14:05:59]New connection [14:05:59]New thread 3067489636 created [14:05:59]Thread 3067632996 joined [14:05:59]Waiting for new connection... [14:05:59] Sock 8.Parse request [14:05:59]Sock 8.Check first char [14:05:59]Sock 8.First char is OK [14:05:59]request: POST /json_proto HTTP/1.0 [14:05:59]Method: POST [14:05:59]URL: /json_proto [14:05:59]Method is POST - this is cgi request [14:05:59]url: /json_proto [14:05:59]query_string will be loaded in cgi processing [14:05:59]execute_cgi json_proto POST (null) [14:05:59]execute_cgi path=json_proto method=POST [14:05:59]POST find Content-Length [14:05:59]Host: 172.17.47.195:8080 [14:05:59]Content-Length: 678 [14:05:59]Content-Type: application/json [14:05:59] [14:05:59]POST finish read [14:05:59]Found Content-Length = 678 [14:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871785", "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" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:59]execute_script... [14:05: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)871785", "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" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:59]POST & json_proto [14:05:59]process_json_proto [14:05:59]json parsed OK: [14:05:59]protocol is kg_v1.0 [14:05:59]action value=close_receipt [14:05:59]process_action close_receipt [14:05:59]cmd_close_receipt [14:05:59]MH_GetDate [14:05:59]Write to MH i2c: F0 00 00 8E 08 85 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: F0 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: F0 09 00 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: F0 09 00 8E 08 00 49 24 F0 66 96 2E 95 66 10 [14:05:59]GetLastDocTimeStamp 1727013875 [14:05:59]current date 1727013961 [14:05:59]FM_GetShiftState [14:05:59]SAM_PROTO_GetShiftState [14:05:59]wFMCommunicate request_size=4 [14:05:59]MH_SAM_APDU [14:05:59]CAPDU: 80 13 01 00 [14:05:59]Write to MH i2c: E2 08 00 8F 08 80 13 01 00 00 00 00 00 14 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:59]Read from MH i2c: E2 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 0E 00 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 0E 00 8F 08 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D7 [14:05:59]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:05:59]wFMCommunicate OK [14:05:59]SAM_PROTO_GetShiftState done [14:05:59]FM_GetShiftState done [14:05:59]opened in 1726964224 [14:05:59]opened+sec_in_day 1727050624 [14:05:59]quantity*price = 80004 [14:05:59]sum+1 = 80005 [14:05:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 77 22.09.2024 14:06 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7679 ФПД: 25913023750592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140601&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7679&fm=25913023750592&tin=02508201610067®Number=0000000000190446&sum=80000 [14:06:01]StoreToDocumentArchive [14:06:01]shift 70 fd 7679 [14:06:01]save to /storage/0070/doc_00007679 [14:06:01]save last doc name /storage/0070/doc_00007679 to /storage/kkm_last_doc_name [14:06:01]save OK [14:06:01]Clear old archive folders... [14:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:01]tlvbuf is 0178A010 [14:06:01]SAM_PROTO_ClearQueue [14:06:01]wFMCommunicate request_size=4 [14:06:01]MH_SAM_APDU [14:06:01]CAPDU: 80 09 00 00 [14:06:01]Write to MH i2c: E2 08 00 9C 08 80 09 00 00 00 00 00 00 16 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:01]Read from MH i2c: E2 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [14:06:01]RAPDU: 90 00 [14:06:01]wFMCommunicate OK [14:06:01]SAM_PROTO_ClearQueue done [14:06:01]KKMCreateOFDPacket [14:06:01]OFDProtocolAddRootSTLVToBuf [14:06:01]FM_MakeSignedData [14:06:01]FM_MakeSignedData [14:06:01]SAM_PROTO_SignData [14:06:01]wFMCommunicate request_size=4 [14:06:01]MH_SAM_APDU [14:06:01]CAPDU: 80 0D 01 02 [14:06:01]Write to MH i2c: E2 08 00 9D 08 80 0D 01 02 00 00 00 00 1E [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:01]Read from MH i2c: E2 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [14:06:01]RAPDU: 90 00 [14:06:01]wFMCommunicate OK [14:06:01]wFMCommunicate request_size=255 [14:06:01]MH_SAM_APDU [14:06: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 49 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FF 1D 00 00 35 04 06 00 17 [14:06:01]Write to MH i2c: E2 02 01 9E 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 49 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FF 1D 00 00 35 04 06 00 17 00 00 D0 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:01]Read from MH i2c: E2 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [14:06:01]RAPDU: 90 00 [14:06:01]wFMCommunicate OK [14:06:01]wFMCommunicate request_size=10 [14:06:01]MH_SAM_APDU [14:06:01]CAPDU: 80 0D 02 02 05 91 58 93 61 C0 [14:06:01]Write to MH i2c: E2 0D 00 9F 08 80 0D 02 02 05 00 91 58 93 61 C0 00 00 C8 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:01]Read from MH i2c: E2 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 9F 08 00 90 00 1B [14:06:01]RAPDU: 90 00 [14:06:01]wFMCommunicate OK [14:06:01]wFMCommunicate request_size=4 [14:06:01]MH_SAM_APDU [14:06:01]CAPDU: 80 0D 03 02 [14:06:01]Write to MH i2c: E2 08 00 A0 08 80 0D 03 02 00 00 00 00 23 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:01]Read from MH i2c: E2 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 0B 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 0B 00 A0 08 00 DD 48 1D 65 31 C0 53 6E 90 00 7D [14:06:01]RAPDU: DD 48 1D 65 31 C0 53 6E 90 00 [14:06:01]wFMCommunicate OK [14:06:01]SAM_PROTO_SignData done [14:06:01]FM_MakeSignedData done [14:06:01]CreateOFDProtocolMessage [14:06:01]wFMCommunicate request_size=4 [14:06:01]MH_SAM_APDU [14:06:01]CAPDU: 80 11 00 00 [14:06:01]Write to MH i2c: E2 08 00 A1 08 80 11 00 00 00 00 00 00 23 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:01]Read from MH i2c: E2 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 17 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 17 00 A1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 74 [14:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:06:01]wFMCommunicate OK [14:06:01]CreateOFDProtocolMessage done [14:06:01]OFDSenderStorePacket 7679 [14:06:01]StoreOFDPacket docnum=7679 [14:06:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 26 FB 07 01 67 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 49 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FF 1D 00 00 35 04 06 00 17 91 58 93 61 C0 DD 48 1D 65 31 C0 53 6E [14:06:01]CheckFolder [14:06:01]dirname=/storage/ofd_packets [14:06:01]CheckFolder done [14:06:01]ProducePacketName [14:06:01]name=ofd_packets/00007679 [14:06:01]NVStorageSaveData ofd_packets/00007679 [14:06:01]File name is /storage/ofd_packets/00007679 [14:06:01]Write 301 bytes [14:06:01]NVStorageSaveData done [14:06:01]OFDSenderStorePacket done [14:06:01]KKMCreateOFDPacket done [14:06:01]NVStorageSaveData kkm_last_timestamp [14:06:01]File name is /storage/kkm_last_timestamp [14:06:01]Write 4 bytes [14:06:01]NVStorageSaveData done [14:06:01]ExternCall_PrintAddStr [14:06:01]wPrintStart [14:06:01]Write to MH i2c: 01 00 00 A2 08 AA [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 A2 08 00 00 00 00 00 FF 0F BF [14:06:01]RasterBufferAndPrint [14:06:01]line Счет N : (1)871785 [14:06:01]line ИНН: 02508201610067 [14:06:01]line Контрольно-Кассовый Чек [14:06:01]line ПРОДАЖА [14:06:01]line ТРК (МРК, ГНК) : 53 [14:06:01]line Товар: 2710124130 [14:06:01]line Аи-92-К-5 [14:06:01]line 11.800 * 67.80 [14:06:01]line = 800.04 [14:06:01]line НДС 12% НСП 1% [14:06:01]line > о реализуемом товаре [14:06:01]line ОКРУГЛЕНИЕ: -0.04 [14:06:01]line ИТОГО: 800.00 [14:06:01]line Внесено: 800.00 [14:06:01]line СДАЧА: 0.00 [14:06:01]line НСП 1% : 7.08 [14:06:01]line НДС 12% : 84.96 [14:06:01]line Наличными: 800.00 [14:06:01]line Безнал.: 0.00 [14:06:01]line Место: АЗС № 137 "Партнер Нефть" [14:06:01]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:06:01]line СНО: Общий режим [14:06:01]line Чек 77 22.09.2024 14:06 [14:06:01]line Смена: 70 ФФД: 1.0 [14:06:01]line ЗНМ: 0300000041 [14:06:01]line РНМ: 0000000000190446 [14:06:01]line Версия ККМ: v1.0 [14:06:01]line ФМ: 0000000002094258 [14:06:01]line ФД: 7679 [14:06:01]line ФПД: 25913023750592 [14:06:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140601&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7679&fm=25913023750592&tin=02508201610067®Number=0000000000190446&sum=80000 [14:06:01]OFD Sender: Processing packet 7679 [packets to send 51, broken 50] [14:06:01]ProducePacketName [14:06:01]name=ofd_packets/00007679 [14:06:01]OFD Sender: To server: pG, [14:06:01]CommunicateWithHost lk.salyk.kg:30040 [14:06:01]ConnectInit lk.salyk.kg [14:06:01]written 0, free lines is 4095 [14:06:02]Write to MH i2c: 01 00 00 CD 08 D5 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 E7 0C CF [14:06:02]RasterBufferAndPrint [14:06:02]line [14:06:02]line [14:06:02]line [14:06:02]line [14:06:02]line [14:06:02]written 0, free lines is 3309 [14:06:02]MH_Cut [14:06:02]Write to MH i2c: D1 01 00 D4 08 01 AE [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: D1 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: D1 01 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: D1 01 00 D4 08 00 AD [14:06:02]Write to MH i2c: 01 00 00 D5 08 DD [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:03]*** Cut start [14:06:03]*** Purtial cut [14:06:03]*** Stage 1: CUTSNS_PIN = 1 [14:06:03]Connected sock=10 [14:06:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 26 FB 07 01 67 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 49 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FF 1D 00 00 35 04 06 00 17 91 58 93 61 C0 DD 48 1D 65 31 C0 53 6E [14:06:03]Read from MH i2c: 01 [14:06:03]MH_I2C_Read... [14:06:03]*** Stop cut motor [14:06:03]*** Cut end [14:06:03]Read from MH i2c: 01 07 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 FF 0F F2 [14:06:03]process_action close_receipt done [14:06:03]requested_data is exist [14:06:03]produce_requested_data [14:06:03]requested_item fm.sn is exist - process it [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 11 00 00 [14:06:03]Write to MH i2c: E2 08 00 D6 08 80 11 00 00 00 00 00 00 58 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 D6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A9 [14:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:06:03]wFMCommunicate OK [14:06:03]requested_item fd.num is exist - process it [14:06:03]SAM_PROTO_GetFieldsCounters [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 13 00 00 [14:06:03]Write to MH i2c: E2 08 00 D7 08 80 13 00 00 00 00 00 00 5B [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 62 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 62 00 D7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FF 1D 00 00 0E 04 04 00 46 00 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 C2 [14:06:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 FF 1D 00 00 0E 04 04 00 46 00 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 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_GetFieldsCounters done [14:06:03]requested_item shift.num is exist - process it [14:06:03]requested_item shift.opened is exist - process it [14:06:03]req_shift_opened [14:06:03]FM_GetShiftState [14:06:03]SAM_PROTO_GetShiftState [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 13 01 00 [14:06:03]Write to MH i2c: E2 08 00 D8 08 80 13 01 00 00 00 00 00 5D [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 0E 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 0E 00 D8 08 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 20 [14:06:03]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_GetShiftState done [14:06:03]FM_GetShiftState done [14:06:03]req_shift_opened done [14:06:03]requested_item shift.open_date is exist - process it [14:06:03]req_shift_open_date [14:06:03]req_shift_open_date done [14:06:03]produce_requested_data done [14:06:03]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7679,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:06:03]process_action_free close_receipt [14:06:03]json_value_free [14:06:03]json_value_free done [14:06:03]process_json_proto returns [14:06:03]Send response to host [14:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7679,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:06:03]free response buf [14:06:03]execute_script done [14:06:03]execute_script returns [14:06:03]free content buf [14:06:03]Sock 8.Close socket [14:06:03]Sock 8.Thread stoped [14:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 A3 DB 47 00 71 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 FF 1D 00 00 F4 03 04 00 09 CF EF 66 B6 04 01 00 00 3B 47 81 13 B5 88 3C 08 [14:06:04]CommunicateWithHost err = 0 [14:06:04]CheckOFDResponse [14:06:04]1017 (14) - 77093643461234 [14:06:04]1041 (16) - 0000000002094258 [14:06:04]1040 (4) - 7679 [14:06:04]1012 (4) - 22.09.2024 08:02 [14:06:04]1206 (1) - 0 [14:06:04]OFD Sender: Remove packet 7679 [14:06:04]ProducePacketName [14:06:04]name=ofd_packets/00007679 [14:06:04]NVStorageDeleteData [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:15]recv_with_timeout no data received [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:26]recv_with_timeout no data received [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:43]recv_with_timeout no data received [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:06:57]recv_with_timeout no data received [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:13]recv_with_timeout no data received [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:26]accept exits with 9 [14:07:26]New connection [14:07:26]New thread 3067632996 created [14:07:26]Thread 3067489636 joined [14:07:26]Waiting for new connection... [14:07:26] Sock 9.Parse request [14:07:26]Sock 9.Check first char [14:07:26]Sock 9.First char is OK [14:07:26]request: POST /json_proto HTTP/1.0 [14:07:26]Method: POST [14:07:26]URL: /json_proto [14:07:26]Method is POST - this is cgi request [14:07:26]url: /json_proto [14:07:26]query_string will be loaded in cgi processing [14:07:26]execute_cgi json_proto POST (null) [14:07:26]execute_cgi path=json_proto method=POST [14:07:26]POST find Content-Length [14:07:26]Host: 172.17.47.195:8080 [14:07:26]Content-Length: 986 [14:07:26]Content-Type: application/json [14:07:26] [14:07:26]POST finish read [14:07:26]Found Content-Length = 986 [14:07:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:26]execute_script... [14:07:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:26]POST & json_proto [14:07:26]process_json_proto [14:07:26]json parsed OK: [14:07:26]protocol is kg_v1.0 [14:07:26]action value=close_receipt [14:07:26]process_action close_receipt [14:07:26]cmd_close_receipt [14:07:26]MH_GetDate [14:07:26]Write to MH i2c: F0 00 00 D9 08 D0 [14:07:26]Write i2c OK [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: F0 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: F0 09 00 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: F0 09 00 D9 08 00 A0 24 F0 66 96 2E 95 66 B2 [14:07:26]GetLastDocTimeStamp 1727013961 [14:07:26]current date 1727014048 [14:07:26]FM_GetShiftState [14:07:26]SAM_PROTO_GetShiftState [14:07:26]wFMCommunicate request_size=4 [14:07:26]MH_SAM_APDU [14:07:26]CAPDU: 80 13 01 00 [14:07:26]Write to MH i2c: E2 08 00 DA 08 80 13 01 00 00 00 00 00 5F [14:07:26]Write i2c OK [14:07:26]MH_I2C_Read... [14:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:26]Read from MH i2c: E2 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: E2 0E 00 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: E2 0E 00 DA 08 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 22 [14:07:26]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:07:26]wFMCommunicate OK [14:07:26]SAM_PROTO_GetShiftState done [14:07:26]FM_GetShiftState done [14:07:26]opened in 1726964224 [14:07:26]opened+sec_in_day 1727050624 [14:07:26]quantity*price = 600020 [14:07:26]sum+1 = 600022 [14:07:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.19 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 78 22.09.2024 14:07 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Дисконтная программа ДТ номер 137 сэкономлено 79.79 сом ФМ: 0000000002094258 ФД: 7680 ФПД: 25923550574258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140728&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7680&fm=25923550574258&tin=02508201610067®Number=0000000000190446&sum=600000 [14:07:27]StoreToDocumentArchive [14:07:27]shift 70 fd 7680 [14:07:27]save to /storage/0070/doc_00007680 [14:07:27]save last doc name /storage/0070/doc_00007680 to /storage/kkm_last_doc_name [14:07:27]save OK [14:07:27]Clear old archive folders... [14:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:07:27]tlvbuf is 017E69A0 [14:07:27]SAM_PROTO_ClearQueue [14:07:27]wFMCommunicate request_size=4 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 09 00 00 [14:07:27]Write to MH i2c: E2 08 00 E7 08 80 09 00 00 00 00 00 00 61 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [14:07:27]RAPDU: 90 00 [14:07:27]wFMCommunicate OK [14:07:27]SAM_PROTO_ClearQueue done [14:07:27]KKMCreateOFDPacket [14:07:27]OFDProtocolAddRootSTLVToBuf [14:07:27]FM_MakeSignedData [14:07:27]FM_MakeSignedData [14:07:27]SAM_PROTO_SignData [14:07:27]wFMCommunicate request_size=4 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 0D 01 02 [14:07:27]Write to MH i2c: E2 08 00 E8 08 80 0D 01 02 00 00 00 00 69 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [14:07:27]RAPDU: 90 00 [14:07:27]wFMCommunicate OK [14:07:27]wFMCommunicate request_size=255 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 A0 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 00 1E 00 00 35 04 06 00 [14:07:27]Write to MH i2c: E2 02 01 E9 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 34 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 A0 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 00 1E 00 00 35 04 06 00 00 00 6F [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 03 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [14:07:28]RAPDU: 90 00 [14:07:28]wFMCommunicate OK [14:07:28]wFMCommunicate request_size=11 [14:07:28]MH_SAM_APDU [14:07:28]CAPDU: 80 0D 02 02 06 17 93 CC 05 F6 B2 [14:07:28]Write to MH i2c: E2 0E 00 EA 08 80 0D 02 02 06 00 17 93 CC 05 F6 B2 00 00 9B [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 03 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [14:07:28]RAPDU: 90 00 [14:07:28]wFMCommunicate OK [14:07:28]wFMCommunicate request_size=4 [14:07:28]MH_SAM_APDU [14:07:28]CAPDU: 80 0D 03 02 [14:07:28]Write to MH i2c: E2 08 00 EB 08 80 0D 03 02 00 00 00 00 6E [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 0B 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 0B 00 EB 08 00 EA 56 BB 1B 4C 5D C7 12 90 00 07 [14:07:28]RAPDU: EA 56 BB 1B 4C 5D C7 12 90 00 [14:07:28]wFMCommunicate OK [14:07:28]SAM_PROTO_SignData done [14:07:28]FM_MakeSignedData done [14:07:28]CreateOFDProtocolMessage [14:07:28]wFMCommunicate request_size=4 [14:07:28]MH_SAM_APDU [14:07:28]CAPDU: 80 11 00 00 [14:07:28]Write to MH i2c: E2 08 00 EC 08 80 11 00 00 00 00 00 00 6E [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 17 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 17 00 EC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 BF [14:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:07:28]wFMCommunicate OK [14:07:28]CreateOFDProtocolMessage done [14:07:28]OFDSenderStorePacket 7680 [14:07:28]StoreOFDPacket docnum=7680 [14:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 35 0D 08 01 40 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 34 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 A0 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 00 1E 00 00 35 04 06 00 17 93 CC 05 F6 B2 EA 56 BB 1B 4C 5D C7 12 [14:07:28]CheckFolder [14:07:28]dirname=/storage/ofd_packets [14:07:28]CheckFolder done [14:07:28]ProducePacketName [14:07:28]name=ofd_packets/00007680 [14:07:28]NVStorageSaveData ofd_packets/00007680 [14:07:28]File name is /storage/ofd_packets/00007680 [14:07:28]Write 302 bytes [14:07:28]NVStorageSaveData done [14:07:28]OFDSenderStorePacket done [14:07:28]KKMCreateOFDPacket done [14:07:28]NVStorageSaveData kkm_last_timestamp [14:07:28]File name is /storage/kkm_last_timestamp [14:07:28]Write 4 bytes [14:07:28]NVStorageSaveData done [14:07:28]ExternCall_PrintAddStr [14:07:28]wPrintStart [14:07:28]Write to MH i2c: 01 00 00 ED 08 F5 [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 ED 08 00 00 00 00 00 FF 0F 0A [14:07:28]RasterBufferAndPrint [14:07:28]line Счет N : (1)871784 [14:07:28]line ИНН: 02508201610067 [14:07:28]line Контрольно-Кассовый Чек [14:07:28]line ПРОДАЖА [14:07:28]line ТРК (МРК, ГНК) : 21 [14:07:28]line Товар: 2710194210 [14:07:28]line ДТ(л)-К-4 [14:07:28]line 79.790 * 75.20 [14:07:28]line = 6000.21 [14:07:28]line НДС 12% НСП 1% [14:07:28]line > о реализуемом товаре [14:07:28]line ОКРУГЛЕНИЕ: -0.21 [14:07:28]line ИТОГО: 6000.00 [14:07:28]line Внесено: 6000.00 [14:07:28]line СДАЧА: 0.00 [14:07:28]line НСП 1% : 53.10 [14:07:28]line НДС 12% : 637.19 [14:07:28]line Наличными: 6000.00 [14:07:28]line Безнал.: 0.00 [14:07:28]line Место: АЗС № 137 "Партнер Нефть" [14:07:28]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:07:28]line СНО: Общий режим [14:07:28]line Чек 78 22.09.2024 14:07 [14:07:28]line Смена: 70 ФФД: 1.0 [14:07:28]line ЗНМ: 0300000041 [14:07:28]line РНМ: 0000000000190446 [14:07:28]line Версия ККМ: v1.0 [14:07:28]line [14:07:28]line Дисконтная программа [14:07:28]line ДТ [14:07:28]line номер 137 [14:07:28]line сэкономлено 79.79 сом [14:07:28]line ФМ: 0000000002094258 [14:07:28]line ФД: 7680 [14:07:28]line ФПД: 25923550574258 [14:07:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140728&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7680&fm=25923550574258&tin=02508201610067®Number=0000000000190446&sum=600000 [14:07:28]OFD Sender: Processing packet 7680 [packets to send 51, broken 50] [14:07:28]ProducePacketName [14:07:28]name=ofd_packets/00007680 [14:07:28]OFD Sender: To server: pG, [14:07:28]CommunicateWithHost lk.salyk.kg:30040 [14:07:28]ConnectInit lk.salyk.kg [14:07:28]written 0, free lines is 4095 [14:07:28]Write to MH i2c: 01 00 00 1D 09 26 [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 90 0C C9 [14:07:28]RasterBufferAndPrint [14:07:28]line [14:07:28]line [14:07:28]line [14:07:28]line [14:07:28]line [14:07:28]written 0, free lines is 3222 [14:07:29]MH_Cut [14:07:29]Write to MH i2c: D1 01 00 24 09 01 FF [14:07:29]Write i2c OK [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: D1 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: D1 01 00 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: D1 01 00 24 09 00 FE [14:07:29]Write to MH i2c: 01 00 00 25 09 2E [14:07:29]Write i2c OK [14:07:29]MH_I2C_Read... [14:07:29]*** Cut start [14:07:29]*** Purtial cut [14:07:29]*** Stage 1: CUTSNS_PIN = 1 [14:07:29]Read from MH i2c: 01 [14:07:29]MH_I2C_Read... [14:07:29]*** Stop cut motor [14:07:29]*** Cut end [14:07:29]Read from MH i2c: 01 07 00 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [14:07:29]process_action close_receipt done [14:07:29]requested_data is exist [14:07:29]produce_requested_data [14:07:29]requested_item fm.sn is exist - process it [14:07:29]wFMCommunicate request_size=4 [14:07:29]MH_SAM_APDU [14:07:29]CAPDU: 80 11 00 00 [14:07:29]Write to MH i2c: E2 08 00 26 09 80 11 00 00 00 00 00 00 A9 [14:07:29]Write i2c OK [14:07:29]MH_I2C_Read... [14:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:30]Read from MH i2c: E2 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: E2 17 00 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: E2 17 00 26 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FA [14:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:07:30]wFMCommunicate OK [14:07:30]requested_item fd.num is exist - process it [14:07:30]SAM_PROTO_GetFieldsCounters [14:07:30]wFMCommunicate request_size=4 [14:07:30]MH_SAM_APDU [14:07:30]CAPDU: 80 13 00 00 [14:07:30]Write to MH i2c: E2 08 00 27 09 80 13 00 00 00 00 00 00 AC [14:07:30]Write i2c OK [14:07:30]MH_I2C_Read... [14:07:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:30]Read from MH i2c: E2 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: E2 62 00 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: E2 62 00 27 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 00 1E 00 00 0E 04 04 00 46 00 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 18 [14:07:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 00 1E 00 00 0E 04 04 00 46 00 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 [14:07:30]wFMCommunicate OK [14:07:30]SAM_PROTO_GetFieldsCounters done [14:07:30]requested_item shift.num is exist - process it [14:07:30]requested_item shift.opened is exist - process it [14:07:30]req_shift_opened [14:07:30]FM_GetShiftState [14:07:30]SAM_PROTO_GetShiftState [14:07:30]wFMCommunicate request_size=4 [14:07:30]MH_SAM_APDU [14:07:30]CAPDU: 80 13 01 00 [14:07:30]Write to MH i2c: E2 08 00 28 09 80 13 01 00 00 00 00 00 AE [14:07:30]Write i2c OK [14:07:30]MH_I2C_Read... [14:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:30]Read from MH i2c: E2 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: E2 0E 00 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: E2 0E 00 28 09 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 71 [14:07:30]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:07:30]wFMCommunicate OK [14:07:30]SAM_PROTO_GetShiftState done [14:07:30]FM_GetShiftState done [14:07:30]req_shift_opened done [14:07:30]requested_item shift.open_date is exist - process it [14:07:30]req_shift_open_date [14:07:30]req_shift_open_date done [14:07:30]produce_requested_data done [14:07:30]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7680,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:07:30]process_action_free close_receipt [14:07:30]json_value_free [14:07:30]json_value_free done [14:07:30]process_json_proto returns [14:07:30]Send response to host [14:07:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7680,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:07:30]free response buf [14:07:30]execute_script done [14:07:30]execute_script returns [14:07:30]free content buf [14:07:30]Sock 9.Close socket [14:07:30]Sock 9.Thread stoped [14:07:33]ConnectInit Can't take IP for lk.salyk.kg [14:07:33]CommunicateWithHost connect error [14:07:33]CommunicateWithHost err = -1 [14:07:33]OFD Sender: Server communicate error [14:07:38]OFD Sender: Processing packet 7680 [packets to send 51, broken 50] [14:07:38]ProducePacketName [14:07:38]name=ofd_packets/00007680 [14:07:38]OFD Sender: To server: pG, [14:07:38]CommunicateWithHost lk.salyk.kg:30040 [14:07:38]ConnectInit lk.salyk.kg [14:07:47]Connected sock=8 [14:07:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 35 0D 08 01 40 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 34 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 A0 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 00 1E 00 00 35 04 06 00 17 93 CC 05 F6 B2 EA 56 BB 1B 4C 5D C7 12 [14:07:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 1A E0 47 00 F1 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 00 1E 00 00 F4 03 04 00 72 CF EF 66 B6 04 01 00 00 E0 04 31 BB ED 6E CA CC [14:07:50]CommunicateWithHost err = 0 [14:07:50]CheckOFDResponse [14:07:50]1017 (14) - 77093643461234 [14:07:50]1041 (16) - 0000000002094258 [14:07:50]1040 (4) - 7680 [14:07:50]1012 (4) - 22.09.2024 08:04 [14:07:50]1206 (1) - 0 [14:07:50]OFD Sender: Remove packet 7680 [14:07:50]ProducePacketName [14:07:50]name=ofd_packets/00007680 [14:07:50]NVStorageDeleteData [14:07:50]OFD Sender: No OFD packet to send [14:07:52]recv_with_timeout no data received [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:03]recv_with_timeout no data received [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:12]accept exits with 10 [14:08:12]New connection [14:08:12]New thread 3067489636 created [14:08:12]Thread 3067632996 joined [14:08:12]Waiting for new connection... [14:08:12] Sock 10.Parse request [14:08:12]Sock 10.Check first char [14:08:12]Sock 10.First char is OK [14:08:12]request: POST /json_proto HTTP/1.0 [14:08:12]Method: POST [14:08:12]URL: /json_proto [14:08:12]Method is POST - this is cgi request [14:08:12]url: /json_proto [14:08:12]query_string will be loaded in cgi processing [14:08:12]execute_cgi json_proto POST (null) [14:08:12]execute_cgi path=json_proto method=POST [14:08:12]POST find Content-Length [14:08:12]Host: 172.17.47.195:8080 [14:08:12]Content-Length: 687 [14:08:12]Content-Type: application/json [14:08:12] [14:08:12]POST finish read [14:08:12]Found Content-Length = 687 [14:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:12]execute_script... [14:08: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)871786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:12]POST & json_proto [14:08:12]process_json_proto [14:08:12]json parsed OK: [14:08:12]protocol is kg_v1.0 [14:08:12]action value=close_receipt [14:08:12]process_action close_receipt [14:08:12]cmd_close_receipt [14:08:12]MH_GetDate [14:08:12]Write to MH i2c: F0 00 00 29 09 21 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: F0 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: F0 09 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: F0 09 00 29 09 00 CE 24 F0 66 96 2E 95 66 31 [14:08:12]GetLastDocTimeStamp 1727014048 [14:08:12]current date 1727014094 [14:08:12]FM_GetShiftState [14:08:12]SAM_PROTO_GetShiftState [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 13 01 00 [14:08:12]Write to MH i2c: E2 08 00 2A 09 80 13 01 00 00 00 00 00 B0 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 0E 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 0E 00 2A 09 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 73 [14:08:12]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:08:12]wFMCommunicate OK [14:08:12]SAM_PROTO_GetShiftState done [14:08:12]FM_GetShiftState done [14:08:12]opened in 1726964224 [14:08:12]opened+sec_in_day 1727050624 [14:08:12]quantity*price = 150037 [14:08:12]sum+1 = 150039 [14:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 79 22.09.2024 14:08 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7681 ФПД: 125851753647444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140814&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7681&fm=125851753647444&tin=02508201610067®Number=0000000000190446&sum=150000 [14:08:13]StoreToDocumentArchive [14:08:13]shift 70 fd 7681 [14:08:13]save to /storage/0070/doc_00007681 [14:08:13]save last doc name /storage/0070/doc_00007681 to /storage/kkm_last_doc_name [14:08:13]save OK [14:08:13]Clear old archive folders... [14:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:08:13]tlvbuf is 0176A5C0 [14:08:13]SAM_PROTO_ClearQueue [14:08:13]wFMCommunicate request_size=4 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 09 00 00 [14:08:13]Write to MH i2c: E2 08 00 37 09 80 09 00 00 00 00 00 00 B2 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:13]Read from MH i2c: E2 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 03 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [14:08:13]RAPDU: 90 00 [14:08:13]wFMCommunicate OK [14:08:13]SAM_PROTO_ClearQueue done [14:08:13]KKMCreateOFDPacket [14:08:13]OFDProtocolAddRootSTLVToBuf [14:08:13]FM_MakeSignedData [14:08:13]FM_MakeSignedData [14:08:13]SAM_PROTO_SignData [14:08:13]wFMCommunicate request_size=4 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 0D 01 02 [14:08:13]Write to MH i2c: E2 08 00 38 09 80 0D 01 02 00 00 00 00 BA [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:13]Read from MH i2c: E2 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 03 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [14:08:13]RAPDU: 90 00 [14:08:13]wFMCommunicate OK [14:08:13]wFMCommunicate request_size=255 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CE 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 01 1E 00 00 35 04 06 00 [14:08:13]Write to MH i2c: E2 02 01 39 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CE 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 01 1E 00 00 35 04 06 00 00 00 96 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:13]Read from MH i2c: E2 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 03 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [14:08:13]RAPDU: 90 00 [14:08:13]wFMCommunicate OK [14:08:13]wFMCommunicate request_size=11 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 0D 02 02 06 72 76 25 12 0D 54 [14:08:13]Write to MH i2c: E2 0E 00 3A 09 80 0D 02 02 06 00 72 76 25 12 0D 54 00 00 49 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 03 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [14:08:14]RAPDU: 90 00 [14:08:14]wFMCommunicate OK [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 0D 03 02 [14:08:14]Write to MH i2c: E2 08 00 3B 09 80 0D 03 02 00 00 00 00 BF [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 0B 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 0B 00 3B 09 00 B3 C4 1B 75 01 7E 39 1D 90 00 9C [14:08:14]RAPDU: B3 C4 1B 75 01 7E 39 1D 90 00 [14:08:14]wFMCommunicate OK [14:08:14]SAM_PROTO_SignData done [14:08:14]FM_MakeSignedData done [14:08:14]CreateOFDProtocolMessage [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 11 00 00 [14:08:14]Write to MH i2c: E2 08 00 3C 09 80 11 00 00 00 00 00 00 BF [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 17 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 17 00 3C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 10 [14:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:08:14]wFMCommunicate OK [14:08:14]CreateOFDProtocolMessage done [14:08:14]OFDSenderStorePacket 7681 [14:08:14]StoreOFDPacket docnum=7681 [14:08:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 42 75 08 01 48 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CE 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 01 1E 00 00 35 04 06 00 72 76 25 12 0D 54 B3 C4 1B 75 01 7E 39 1D [14:08:14]CheckFolder [14:08:14]dirname=/storage/ofd_packets [14:08:14]CheckFolder done [14:08:14]ProducePacketName [14:08:14]name=ofd_packets/00007681 [14:08:14]NVStorageSaveData ofd_packets/00007681 [14:08:14]File name is /storage/ofd_packets/00007681 [14:08:14]Write 302 bytes [14:08:14]NVStorageSaveData done [14:08:14]OFDSenderStorePacket done [14:08:14]KKMCreateOFDPacket done [14:08:14]NVStorageSaveData kkm_last_timestamp [14:08:14]File name is /storage/kkm_last_timestamp [14:08:14]Write 4 bytes [14:08:14]NVStorageSaveData done [14:08:14]ExternCall_PrintAddStr [14:08:14]wPrintStart [14:08:14]Write to MH i2c: 01 00 00 3D 09 46 [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: 01 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: 01 07 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: 01 07 00 3D 09 00 00 00 00 00 FF 0F 5B [14:08:14]RasterBufferAndPrint [14:08:14]line Счет N : (1)871786 [14:08:14]line ИНН: 02508201610067 [14:08:14]line Контрольно-Кассовый Чек [14:08:14]line ПРОДАЖА [14:08:14]line ТРК (МРК, ГНК) : 34 [14:08:14]line Товар: 2710194210 [14:08:14]line ДТ(л)-К-4 [14:08:14]line 19.690 * 76.20 [14:08:14]line = 1500.38 [14:08:14]line НДС 12% НСП 1% [14:08:14]line > о реализуемом товаре [14:08:14]line ОКРУГЛЕНИЕ: -0.38 [14:08:14]line ИТОГО: 1500.00 [14:08:14]line Внесено: 1500.00 [14:08:14]line СДАЧА: 0.00 [14:08:14]line НСП 1% : 13.28 [14:08:14]line НДС 12% : 159.33 [14:08:14]line Наличными: 1500.00 [14:08:14]line Безнал.: 0.00 [14:08:14]line Место: АЗС № 137 "Партнер Нефть" [14:08:14]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:08:14]line СНО: Общий режим [14:08:14]line Чек 79 22.09.2024 14:08 [14:08:14]line Смена: 70 ФФД: 1.0 [14:08:14]line ЗНМ: 0300000041 [14:08:14]line РНМ: 0000000000190446 [14:08:14]line Версия ККМ: v1.0 [14:08:14]line ФМ: 0000000002094258 [14:08:14]line ФД: 7681 [14:08:14]line ФПД: 125851753647444 [14:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140814&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7681&fm=125851753647444&tin=02508201610067®Number=0000000000190446&sum=150000 [14:08:14]OFD Sender: Processing packet 7681 [packets to send 51, broken 50] [14:08:14]ProducePacketName [14:08:14]name=ofd_packets/00007681 [14:08:14]OFD Sender: To server: pG, [14:08:14]CommunicateWithHost lk.salyk.kg:30040 [14:08:14]ConnectInit lk.salyk.kg [14:08:14]written 0, free lines is 4095 [14:08:14]Write to MH i2c: 01 00 00 68 09 71 [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: 01 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: 01 07 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 EA 0C 6E [14:08:14]RasterBufferAndPrint [14:08:14]line [14:08:14]line [14:08:14]line [14:08:14]line [14:08:14]line [14:08:14]written 0, free lines is 3315 [14:08:14]MH_Cut [14:08:14]Write to MH i2c: D1 01 00 6F 09 01 4A [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: D1 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: D1 01 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: D1 01 00 6F 09 00 49 [14:08:14]Write to MH i2c: 01 00 00 70 09 79 [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:15]Connected sock=8 [14:08:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 42 75 08 01 48 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CE 24 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 01 1E 00 00 35 04 06 00 72 76 25 12 0D 54 B3 C4 1B 75 01 7E 39 1D [14:08:15]*** Cut start [14:08:15]*** Purtial cut [14:08:15]*** Stage 1: CUTSNS_PIN = 1 [14:08:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 07 68 47 00 80 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 32 30 39 34 32 35 38 10 04 04 00 01 1E 00 00 F4 03 04 00 8D CF EF 66 B6 04 01 00 00 34 FB 37 46 5A F7 26 6D [14:08:15]CommunicateWithHost err = 0 [14:08:15]CheckOFDResponse [14:08:15]1017 (14) - 77093643461234 [14:08:15]1041 (16) - 0000000002094258 [14:08:15]1040 (4) - 7681 [14:08:15]1012 (4) - 22.09.2024 08:04 [14:08:15]1206 (1) - 0 [14:08:15]OFD Sender: Remove packet 7681 [14:08:15]ProducePacketName [14:08:15]name=ofd_packets/00007681 [14:08:15]NVStorageDeleteData [14:08:15]Read from MH i2c: 01 [14:08:15]MH_I2C_Read... [14:08:15]*** Stop cut motor [14:08:15]*** Cut end [14:08:15]Read from MH i2c: 01 07 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 FF 0F 8E [14:08:15]process_action close_receipt done [14:08:15]requested_data is exist [14:08:15]produce_requested_data [14:08:15]requested_item fm.sn is exist - process it [14:08:15]wFMCommunicate request_size=4 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 11 00 00 [14:08:15]Write to MH i2c: E2 08 00 71 09 80 11 00 00 00 00 00 00 F4 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 17 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 17 00 71 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 45 [14:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:08:15]wFMCommunicate OK [14:08:15]requested_item fd.num is exist - process it [14:08:15]SAM_PROTO_GetFieldsCounters [14:08:15]wFMCommunicate request_size=4 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 13 00 00 [14:08:15]Write to MH i2c: E2 08 00 72 09 80 13 00 00 00 00 00 00 F7 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:16]Read from MH i2c: E2 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: E2 62 00 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: E2 62 00 72 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 01 1E 00 00 0E 04 04 00 46 00 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 67 [14:08:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 01 1E 00 00 0E 04 04 00 46 00 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 [14:08:16]wFMCommunicate OK [14:08:16]SAM_PROTO_GetFieldsCounters done [14:08:16]requested_item shift.num is exist - process it [14:08:16]requested_item shift.opened is exist - process it [14:08:16]req_shift_opened [14:08:16]FM_GetShiftState [14:08:16]SAM_PROTO_GetShiftState [14:08:16]wFMCommunicate request_size=4 [14:08:16]MH_SAM_APDU [14:08:16]CAPDU: 80 13 01 00 [14:08:16]Write to MH i2c: E2 08 00 73 09 80 13 01 00 00 00 00 00 F9 [14:08:16]Write i2c OK [14:08:16]MH_I2C_Read... [14:08:16]OFD Sender: No OFD packet to send [14:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:16]Read from MH i2c: E2 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: E2 0E 00 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: E2 0E 00 73 09 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 BC [14:08:16]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:08:16]wFMCommunicate OK [14:08:16]SAM_PROTO_GetShiftState done [14:08:16]FM_GetShiftState done [14:08:16]req_shift_opened done [14:08:16]requested_item shift.open_date is exist - process it [14:08:16]req_shift_open_date [14:08:16]req_shift_open_date done [14:08:16]produce_requested_data done [14:08:16]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7681,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:08:16]process_action_free close_receipt [14:08:16]json_value_free [14:08:16]json_value_free done [14:08:16]process_json_proto returns [14:08:16]Send response to host [14:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7681,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:08:16]free response buf [14:08:16]execute_script done [14:08:16]execute_script returns [14:08:16]free content buf [14:08:16]Sock 10.Close socket [14:08:16]Sock 10.Thread stoped [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:44]recv_with_timeout no data received [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:53]accept exits with 9 [14:09:53]New connection [14:09:53]New thread 3067632996 created [14:09:53]Thread 3067489636 joined [14:09:53]Waiting for new connection... [14:09:53] Sock 9.Parse request [14:09:53]Sock 9.Check first char [14:09:53]Sock 9.First char is OK [14:09:53]request: POST /json_proto HTTP/1.0 [14:09:53]Method: POST [14:09:53]URL: /json_proto [14:09:53]Method is POST - this is cgi request [14:09:53]url: /json_proto [14:09:53]query_string will be loaded in cgi processing [14:09:53]execute_cgi json_proto POST (null) [14:09:53]execute_cgi path=json_proto method=POST [14:09:53]POST find Content-Length [14:09:53]Host: 172.17.47.195:8080 [14:09:53]Content-Length: 682 [14:09:53]Content-Type: application/json [14:09:53] [14:09:53]POST finish read [14:09:53]Found Content-Length = 682 [14:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:53]execute_script... [14:09:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:53]POST & json_proto [14:09:53]process_json_proto [14:09:53]json parsed OK: [14:09:53]protocol is kg_v1.0 [14:09:53]action value=close_receipt [14:09:53]process_action close_receipt [14:09:53]cmd_close_receipt [14:09:53]MH_GetDate [14:09:53]Write to MH i2c: F0 00 00 74 09 6C [14:09:53]Write i2c OK [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: F0 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: F0 09 00 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: F0 09 00 74 09 00 32 25 F0 66 96 2E 95 66 E1 [14:09:53]GetLastDocTimeStamp 1727014094 [14:09:53]current date 1727014194 [14:09:53]FM_GetShiftState [14:09:53]SAM_PROTO_GetShiftState [14:09:53]wFMCommunicate request_size=4 [14:09:53]MH_SAM_APDU [14:09:53]CAPDU: 80 13 01 00 [14:09:53]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [14:09:53]Write i2c OK [14:09:53]MH_I2C_Read... [14:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:53]Read from MH i2c: E2 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: E2 0E 00 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 BE [14:09:53]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:09:53]wFMCommunicate OK [14:09:53]SAM_PROTO_GetShiftState done [14:09:53]FM_GetShiftState done [14:09:53]opened in 1726964224 [14:09:53]opened+sec_in_day 1727050624 [14:09:53]quantity*price = 50063 [14:09:53]sum+1 = 50064 [14:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 80 22.09.2024 14:09 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7682 ФПД: 259910621044034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140954&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7682&fm=259910621044034&tin=02508201610067®Number=0000000000190446&sum=50000 [14:09:54]StoreToDocumentArchive [14:09:54]shift 70 fd 7682 [14:09:54]save to /storage/0070/doc_00007682 [14:09:54]save last doc name /storage/0070/doc_00007682 to /storage/kkm_last_doc_name [14:09:54]save OK [14:09:54]Clear old archive folders... [14:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:09:54]tlvbuf is 017E7550 [14:09:54]SAM_PROTO_ClearQueue [14:09:54]wFMCommunicate request_size=4 [14:09:54]MH_SAM_APDU [14:09:54]CAPDU: 80 09 00 00 [14:09:54]Write to MH i2c: E2 08 00 82 09 80 09 00 00 00 00 00 00 FD [14:09:54]Write i2c OK [14:09:54]MH_I2C_Read... [14:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:54]Read from MH i2c: E2 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 03 00 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [14:09:54]RAPDU: 90 00 [14:09:54]wFMCommunicate OK [14:09:54]SAM_PROTO_ClearQueue done [14:09:54]KKMCreateOFDPacket [14:09:54]OFDProtocolAddRootSTLVToBuf [14:09:54]FM_MakeSignedData [14:09:54]FM_MakeSignedData [14:09:54]SAM_PROTO_SignData [14:09:54]wFMCommunicate request_size=4 [14:09:54]MH_SAM_APDU [14:09:54]CAPDU: 80 0D 01 02 [14:09:54]Write to MH i2c: E2 08 00 83 09 80 0D 01 02 00 00 00 00 05 [14:09:54]Write i2c OK [14:09:54]MH_I2C_Read... [14:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:54]Read from MH i2c: E2 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 03 00 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [14:09:54]RAPDU: 90 00 [14:09:54]wFMCommunicate OK [14:09:54]wFMCommunicate request_size=255 [14:09:54]MH_SAM_APDU [14:09:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 32 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 02 1E 00 00 35 04 06 00 [14:09:54]Write to MH i2c: E2 02 01 84 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 32 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 02 1E 00 00 35 04 06 00 00 00 59 [14:09:54]Write i2c OK [14:09:54]MH_I2C_Read... [14:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:54]Read from MH i2c: E2 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 03 00 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [14:09:54]RAPDU: 90 00 [14:09:54]wFMCommunicate OK [14:09:54]wFMCommunicate request_size=11 [14:09:54]MH_SAM_APDU [14:09:54]CAPDU: 80 0D 02 02 06 EC 63 28 3D 9D 42 [14:09:54]Write to MH i2c: E2 0E 00 85 09 80 0D 02 02 06 00 EC 63 28 3D 9D 42 00 00 A7 [14:09:54]Write i2c OK [14:09:54]MH_I2C_Read... [14:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:54]Read from MH i2c: E2 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 03 00 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [14:09:54]RAPDU: 90 00 [14:09:54]wFMCommunicate OK [14:09:54]wFMCommunicate request_size=4 [14:09:54]MH_SAM_APDU [14:09:54]CAPDU: 80 0D 03 02 [14:09:54]Write to MH i2c: E2 08 00 86 09 80 0D 03 02 00 00 00 00 0A [14:09:54]Write i2c OK [14:09:54]MH_I2C_Read... [14:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:54]Read from MH i2c: E2 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 0B 00 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 0B 00 86 09 00 06 A6 A9 26 1C B0 65 A9 90 00 60 [14:09:54]RAPDU: 06 A6 A9 26 1C B0 65 A9 90 00 [14:09:54]wFMCommunicate OK [14:09:54]SAM_PROTO_SignData done [14:09:54]FM_MakeSignedData done [14:09:54]CreateOFDProtocolMessage [14:09:54]wFMCommunicate request_size=4 [14:09:54]MH_SAM_APDU [14:09:54]CAPDU: 80 11 00 00 [14:09:54]Write to MH i2c: E2 08 00 87 09 80 11 00 00 00 00 00 00 0A [14:09:54]Write i2c OK [14:09:54]MH_I2C_Read... [14:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:54]Read from MH i2c: E2 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 17 00 [14:09:54]MH_I2C_Read... [14:09:54]Read from MH i2c: E2 17 00 87 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5B [14:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:09:54]wFMCommunicate OK [14:09:54]CreateOFDProtocolMessage done [14:09:54]OFDSenderStorePacket 7682 [14:09:54]StoreOFDPacket docnum=7682 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5961536+1721052822=1727014358 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 D6 25 F0 66 96 2E 95 66 0F [14:12:38]Current date/time: 22.09.2024 14:12 [14:12:38]FM_Init [14:12:38]wFMConnect [14:12:38]MH_SAM_On [14:12:38]Write to MH i2c: E0 00 00 08 00 E7 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]*** iso7816_init finished! [14:12:38]*** atr: [14:12:38]*** 0F 3B D5 18 FF 81 91 FE [14:12:38]*** 1F C3 80 73 C8 21 10 0A [14:12:38]*** 00 00 00 00 00 00 00 00 [14:12:38]*** 00 00 00 00 00 00 00 00 [14:12:38]*** 00 00 00 00 00 00 00 00 [14:12:38]*** 00 00 00 00 00 00 00 00 [14:12:38]*** 00 00 00 00 00 00 00 00 [14:12:38]*** 00 00 00 00 00 00 00 00 [14:12:38]Read from MH i2c: E0 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E0 10 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:12:38]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:12:38]wFMCommunicate request_size=10 [14:12:38]MH_SAM_APDU [14:12:38]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:12:38]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:12:38]Read from MH i2c: E2 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 03 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:12:38]RAPDU: 90 00 [14:12:38]wFMCommunicate OK [14:12:38]wFMCommunicate request_size=4 [14:12:38]MH_SAM_APDU [14:12:38]CAPDU: 80 11 00 00 [14:12:38]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:38]Read from MH i2c: E2 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 17 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [14:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:12:38]wFMCommunicate OK [14:12:38]Detected FM SN is 0000000002094258 [14:12:38]Stored FM SN is 0000000002094258 [14:12:38]wFMCommunicate request_size=9 [14:12:38]MH_SAM_APDU [14:12:38]CAPDU: 80 16 00 00 04 BC C2 00 00 [14:12:38]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:12:38]Read from MH i2c: E2 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 03 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:12:38]RAPDU: 90 00 [14:12:38]wFMCommunicate OK [14:12:38]FM PIN OK [14:12:38]wFMCommunicate request_size=8 [14:12:38]MH_SAM_APDU [14:12:38]CAPDU: 80 14 04 00 03 02 00 01 [14:12:38]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:12:38]Read from MH i2c: E2 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 03 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:12:38]RAPDU: 90 00 [14:12:38]wFMCommunicate OK [14:12:38]wFMCommunicate request_size=13 [14:12:38]MH_SAM_APDU [14:12:38]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:12:38]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:12:38]Read from MH i2c: E2 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 03 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:12:38]RAPDU: 90 00 [14:12:38]wFMCommunicate OK [14:12:38]wFMCommunicate request_size=4 [14:12:38]MH_SAM_APDU [14:12:38]CAPDU: 80 11 00 00 [14:12:38]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:38]Read from MH i2c: E2 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 17 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [14:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:12:38]wFMCommunicate OK [14:12:38]DocumentArchiveInit [14:12:38]Start Httpd... [14:12:38]Httpd thread 3067489636 created [14:12:38]Write to MH i2c: 01 00 00 0F 00 0F [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: 01 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: 01 07 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:12:38]MH Int Process started [14:12:38]Allocated Socket 8 [14:12:38]Bind OK [14:12:38]Listen OK [14:12:38]httpd running on port 8080 [14:12:38]Waiting for new connection... [14:12:38]OFD Sender: Processing packet 7682 [packets to send 51, broken 50] [14:12:38]ProducePacketName [14:12:38]name=ofd_packets/00007682 [14:12:38]OFD Sender: To server: pG, [14:12:38]CommunicateWithHost lk.salyk.kg:30040 [14:12:38]ConnectInit lk.salyk.kg [14:12:39]accept exits with 9 [14:12:39]New connection [14:12:39]New thread 3067202916 created [14:12:39]Waiting for new connection... [14:12:39] Sock 9.Parse request [14:12:39]Sock 9.Check first char [14:12:39]Sock 9.First char is OK [14:12:39]request: POST /json_proto HTTP/1.0 [14:12:39]Method: POST [14:12:39]URL: /json_proto [14:12:39]Method is POST - this is cgi request [14:12:39]url: /json_proto [14:12:39]query_string will be loaded in cgi processing [14:12:39]execute_cgi json_proto POST (null) [14:12:39]execute_cgi path=json_proto method=POST [14:12:39]POST find Content-Length [14:12:39]Host: 172.17.47.195:8080 [14:12:39]Content-Length: 215 [14:12:39]Content-Type: application/json [14:12:39] [14:12:39]POST finish read [14:12:39]Found Content-Length = 215 [14:12:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:39]execute_script... [14:12:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:39]POST & json_proto [14:12:39]process_json_proto [14:12:39]json parsed OK: [14:12:39]protocol is kg_v1.0 [14:12:39]action value=get_value [14:12:39]process_action get_value [14:12:39]cmd_get_value [14:12:39]process_action get_value done [14:12:39]requested_data is exist [14:12:39]produce_requested_data [14:12:39]requested_item kkm.sn is exist - process it [14:12:39]requested_item kkm.ver is exist - process it [14:12:39]requested_item fm.sn is exist - process it [14:12:39]wFMCommunicate request_size=4 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 11 00 00 [14:12:39]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:39]Read from MH i2c: E2 17 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [14:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:12:39]wFMCommunicate OK [14:12:39]requested_item fd.num is exist - process it [14:12:39]SAM_PROTO_GetFieldsCounters [14:12:39]wFMCommunicate request_size=4 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 13 00 00 [14:12:39]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 62 00 [14:12:39]MH_I2C_Read... [14:12:39]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 02 1E 00 00 0E 04 04 00 46 00 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 01 [14:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 02 1E 00 00 0E 04 04 00 46 00 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 [14:12:39]wFMCommunicate OK [14:12:39]SAM_PROTO_GetFieldsCounters done [14:12:39]requested_item shift.num is exist - process it [14:12:39]requested_item shift.opened is exist - process it [14:12:39]req_shift_opened [14:12:39]FM_GetShiftState [14:12:39]SAM_PROTO_GetShiftState [14:12:39]wFMCommunicate request_size=4 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 13 01 00 [14:12:39]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 0E 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [14:12:39]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:12:39]wFMCommunicate OK [14:12:39]SAM_PROTO_GetShiftState done [14:12:39]FM_GetShiftState done [14:12:39]req_shift_opened done [14:12:39]requested_item shift.open_date is exist - process it [14:12:39]req_shift_open_date [14:12:39]req_shift_open_date done [14:12:39]produce_requested_data done [14:12:39]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7682,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:12:39]process_action_free get_value [14:12:39]json_value_free [14:12:39]json_value_free done [14:12:39]process_json_proto returns [14:12:39]Send response to host [14:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7682,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:12:39]free response buf [14:12:39]execute_script done [14:12:39]execute_script returns [14:12:39]free content buf [14:12:39]Sock 9.Close socket [14:12:39]Sock 9.Thread stoped [14:12:39]accept exits with 10 [14:12:39]New connection [14:12:39]New thread 3067059556 created [14:12:39]Thread 3067202916 joined [14:12:39]Waiting for new connection... [14:12:39] Sock 10.Parse request [14:12:39]Sock 10.Check first char [14:12:39]Sock 10.First char is OK [14:12:39]request: POST /json_proto HTTP/1.0 [14:12:39]Method: POST [14:12:39]URL: /json_proto [14:12:39]Method is POST - this is cgi request [14:12:39]url: /json_proto [14:12:39]query_string will be loaded in cgi processing [14:12:39]execute_cgi json_proto POST (null) [14:12:39]execute_cgi path=json_proto method=POST [14:12:39]POST find Content-Length [14:12:39]Host: 172.17.47.195:8080 [14:12:39]Content-Length: 331 [14:12:39]Content-Type: application/json [14:12:39] [14:12:39]POST finish read [14:12:39]Found Content-Length = 331 [14:12:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:12:39]execute_script... [14:12:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:12:39]POST & json_proto [14:12:39]process_json_proto [14:12:39]json parsed OK: [14:12:39]protocol is kg_v1.0 [14:12:39]action value=get_value [14:12:39]process_action get_value [14:12:39]cmd_get_value [14:12:39]process_action get_value done [14:12:39]requested_data is exist [14:12:39]produce_requested_data [14:12:39]requested_item fm.sale.total is exist - process it [14:12:39]SAM_PROTO_GetFMData [14:12:39]wFMCommunicate request_size=4 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 13 03 00 [14:12:39]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]Connected sock=6 [14:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 4F B4 08 01 A5 1E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 32 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 02 1E 00 00 35 04 06 00 EC 63 28 3D 9D 42 06 A6 A9 26 1C B0 65 A9 [14:12:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 FD 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 76 1D 00 00 69 04 A0 00 6F 04 04 00 4A 1D 00 00 B1 04 04 00 A9 91 D8 30 70 04 04 00 34 AC F1 28 72 04 04 00 75 E5 E6 07 00 04 7C 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 73 37 30 05 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 D5 AE 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 E6 [14:12:40]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 76 1D 00 00 69 04 A0 00 6F 04 04 00 4A 1D 00 00 B1 04 04 00 A9 91 D8 30 70 04 04 00 34 AC F1 28 72 04 04 00 75 E5 E6 07 00 04 7C 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 73 37 30 05 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 D5 AE 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C 00 00 00 B1 04 04 00 D0 D7 65 01 70 04 04 00 D0 D7 65 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 00 26 EF 03 09 00 F6 03 01 90 00 [14:12:40]wFMCommunicate OK [14:12:40]wFMCommunicate request_size=4 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 17 00 00 [14:12:40]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 FD 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 AC [14:12:40]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BB 2A 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 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 90 00 [14:12:40]wFMCommunicate OK [14:12:40]wFMCommunicate request_size=4 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 17 00 00 [14:12:40]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:12:41]Read from MH i2c: E2 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 FD 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [14:12:41]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:12:41]wFMCommunicate OK [14:12:41]wFMCommunicate request_size=4 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 17 00 00 [14:12:41]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:12:41]Read from MH i2c: E2 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 FD 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [14:12:41]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:12:41]wFMCommunicate OK [14:12:41]wFMCommunicate request_size=4 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 17 00 00 [14:12:41]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [14:12:41]Read from MH i2c: E2 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 DE 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [14:12:41]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:12:41]wFMCommunicate OK [14:12:41]SAM_PROTO_GetFMData done [14:12:41]requested_item fm.sale_refund.total is exist - process it [14:12:41]requested_item fm.buy.total is exist - process it [14:12:41]requested_item shift.sale.total is exist - process it [14:12:41]SAM_PROTO_GetShiftData [14:12:41]wFMCommunicate request_size=4 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 13 02 00 [14:12:41]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 FD 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 50 00 00 00 69 04 9C 00 6F 04 04 00 50 00 00 00 B1 04 03 00 AD BF 80 70 04 03 00 C4 AA 77 72 04 03 00 E9 14 09 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 3A AD 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BF 23 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 B4 [14:12:42]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 50 00 00 00 69 04 9C 00 6F 04 04 00 50 00 00 00 B1 04 03 00 AD BF 80 70 04 03 00 C4 AA 77 72 04 03 00 E9 14 09 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 3A AD 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BF 23 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:12:42]wFMCommunicate OK [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 17 00 00 [14:12:42]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 FD 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [14:12:42]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [14:12:42]wFMCommunicate OK [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 17 00 00 [14:12:42]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F4 75 47 00 2B 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 32 30 39 34 32 35 38 10 04 04 00 02 1E 00 00 F4 03 04 00 96 D0 EF 66 B6 04 01 00 00 C9 A3 D9 2F F5 B2 35 9F [14:12:42]CommunicateWithHost err = 0 [14:12:42]CheckOFDResponse [14:12:42]1017 (14) - 77093643461234 [14:12:42]1041 (16) - 0000000002094258 [14:12:42]1040 (4) - 7682 [14:12:42]1012 (4) - 22.09.2024 08:08 [14:12:42]1206 (1) - 0 [14:12:42]OFD Sender: Remove packet 7682 [14:12:42]ProducePacketName [14:12:42]name=ofd_packets/00007682 [14:12:42]NVStorageDeleteData [14:12:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 FD 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [14:12:42]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [14:12:42]wFMCommunicate OK [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 17 00 00 [14:12:42]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:12:43]Read from MH i2c: E2 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 FD 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [14:12:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [14:12:43]wFMCommunicate OK [14:12:43]wFMCommunicate request_size=4 [14:12:43]MH_SAM_APDU [14:12:43]CAPDU: 80 17 00 00 [14:12:43]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]OFD Sender: No OFD packet to send [14:12:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:12:43]Read from MH i2c: E2 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 CC 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [14:12:43]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:12:43]wFMCommunicate OK [14:12:43]SAM_PROTO_GetShiftData done [14:12:43]requested_item shift.sale.total_cash is exist - process it [14:12:43]requested_item shift.sale_refund.total is exist - process it [14:12:43]requested_item shift.sale_refund.total_cash is exist - process it [14:12:43]requested_item shift.buy.total is exist - process it [14:12:43]requested_item shift.buy.total_cash is exist - process it [14:12:43]produce_requested_data done [14:12:43]produce_requested_data return {"fm.sale.total":8194994.33,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":84376.77,"shift.sale.total_cash":78425.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:12:43]process_action_free get_value [14:12:43]json_value_free [14:12:43]json_value_free done [14:12:43]process_json_proto returns [14:12:43]Send response to host [14:12:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8194994.33,"fm.sale_refund.total":234516.00,"fm.buy.total":0.00,"shift.sale.total":84376.77,"shift.sale.total_cash":78425.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:12:43]free response buf [14:12:43]execute_script done [14:12:43]execute_script returns [14:12:43]free content buf [14:12:43]Sock 10.Close socket [14:12:43]Sock 10.Thread stoped [14:12:43]accept exits with 9 [14:12:43]New connection [14:12:43]New thread 3067202916 created [14:12:43]Thread 3067059556 joined [14:12:43]Waiting for new connection... [14:12:43] Sock 9.Parse request [14:12:43]Sock 9.Check first char [14:12:43]Sock 9.First char is OK [14:12:43]request: POST /json_proto HTTP/1.0 [14:12:43]Method: POST [14:12:43]URL: /json_proto [14:12:43]Method is POST - this is cgi request [14:12:43]url: /json_proto [14:12:43]query_string will be loaded in cgi processing [14:12:43]execute_cgi json_proto POST (null) [14:12:43]execute_cgi path=json_proto method=POST [14:12:43]POST find Content-Length [14:12:43]Host: 172.17.47.195:8080 [14:12:43]Content-Length: 682 [14:12:43]Content-Type: application/json [14:12:43] [14:12:43]POST finish read [14:12:43]Found Content-Length = 682 [14:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:43]execute_script... [14:12:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:43]POST & json_proto [14:12:43]process_json_proto [14:12:43]json parsed OK: [14:12:43]protocol is kg_v1.0 [14:12:43]action value=close_receipt [14:12:43]process_action close_receipt [14:12:43]cmd_close_receipt [14:12:43]MH_GetDate [14:12:43]Write to MH i2c: F0 00 00 1D 00 0C [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 09 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 09 00 1D 00 00 DC 25 F0 66 96 2E 95 66 2B [14:12:43]GetLastDocTimeStamp 1727014194 [14:12:43]current date 1727014364 [14:12:43]FM_GetShiftState [14:12:43]SAM_PROTO_GetShiftState [14:12:43]wFMCommunicate request_size=4 [14:12:43]MH_SAM_APDU [14:12:43]CAPDU: 80 13 01 00 [14:12:43]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:43]Read from MH i2c: E2 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 0E 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [14:12:43]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:12:43]wFMCommunicate OK [14:12:43]SAM_PROTO_GetShiftState done [14:12:43]FM_GetShiftState done [14:12:43]opened in 1726964224 [14:12:43]opened+sec_in_day 1727050624 [14:12:43]quantity*price = 50063 [14:12:43]sum+1 = 50064 [14:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 81 22.09.2024 14:12 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7683 ФПД: 145777825738522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141244&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7683&fm=145777825738522&tin=02508201610067®Number=0000000000190446&sum=50000 [14:12:44]StoreToDocumentArchive [14:12:44]shift 70 fd 7683 [14:12:44]save to /storage/0070/doc_00007683 [14:12:44]save last doc name /storage/0070/doc_00007683 to /storage/kkm_last_doc_name [14:12:44]save OK [14:12:44]Clear old archive folders... [14:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:12:44]tlvbuf is 00F34B60 [14:12:44]SAM_PROTO_ClearQueue [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 09 00 00 [14:12:44]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:12:44]RAPDU: 90 00 [14:12:44]wFMCommunicate OK [14:12:44]SAM_PROTO_ClearQueue done [14:12:44]KKMCreateOFDPacket [14:12:44]OFDProtocolAddRootSTLVToBuf [14:12:44]FM_MakeSignedData [14:12:44]FM_MakeSignedData [14:12:44]SAM_PROTO_SignData [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 0D 01 02 [14:12:44]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:12:45]RAPDU: 90 00 [14:12:45]wFMCommunicate OK [14:12:45]wFMCommunicate request_size=255 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 51 00 00 00 F4 03 04 00 DC 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 03 1E 00 00 35 04 06 00 [14:12:45]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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DC 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 03 1E 00 00 35 04 06 00 00 00 A5 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:45]E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:12:45]RAPDU: 90 00 [14:12:45]wFMCommunicate OK [14:12:45]wFMCommunicate request_size=11 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 0D 02 02 06 84 95 8B 84 EF 1A [14:12:45]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 84 95 8B 84 EF 1A 00 00 E5 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:12:45]RAPDU: 90 00 [14:12:45]wFMCommunicate OK [14:12:45]wFMCommunicate request_size=4 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 0D 03 02 [14:12:45]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 0B 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 0B 00 2F 00 00 7F 99 6C 88 78 AE DC 8B 90 00 44 [14:12:45]RAPDU: 7F 99 6C 88 78 AE DC 8B 90 00 [14:12:45]wFMCommunicate OK [14:12:45]SAM_PROTO_SignData done [14:12:45]FM_MakeSignedData done [14:12:45]CreateOFDProtocolMessage [14:12:45]wFMCommunicate request_size=4 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 11 00 00 [14:12:45]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 17 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [14:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:12:45]wFMCommunicate OK [14:12:45]CreateOFDProtocolMessage done [14:12:45]OFDSenderStorePacket 7683 [14:12:45]StoreOFDPacket docnum=7683 [14:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D1 52 08 01 E3 EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DC 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 03 1E 00 00 35 04 06 00 84 95 8B 84 EF 1A 7F 99 6C 88 78 AE DC 8B [14:12:45]CheckFolder [14:12:45]dirname=/storage/ofd_packets [14:12:45]CheckFolder done [14:12:45]ProducePacketName [14:12:45]name=ofd_packets/00007683 [14:12:45]NVStorageSaveData ofd_packets/00007683 [14:12:45]File name is /storage/ofd_packets/00007683 [14:12:45]Write 302 bytes [14:12:45]NVStorageSaveData done [14:12:45]OFDSenderStorePacket done [14:12:45]KKMCreateOFDPacket done [14:12:45]NVStorageSaveData kkm_last_timestamp [14:12:45]File name is /storage/kkm_last_timestamp [14:12:45]Write 4 bytes [14:12:45]NVStorageSaveData done [14:12:45]ExternCall_PrintAddStr [14:12:45]wPrintStart [14:12:45]Write to MH i2c: 01 00 00 31 00 31 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 07 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:12:45]RasterBufferAndPrint [14:12:45]line Счет N : (1)871788 [14:12:45]line ИНН: 02508201610067 [14:12:45]line Контрольно-Кассовый Чек [14:12:45]line ПРОДАЖА [14:12:45]line ТРК (МРК, ГНК) : 21 [14:12:45]line Товар: 2710194210 [14:12:45]line ДТ(л)-К-4 [14:12:45]line 6.570 * 76.20 [14:12:45]line = 500.63 [14:12:45]line НДС 12% НСП 1% [14:12:45]line > о реализуемом товаре [14:12:45]line ОКРУГЛЕНИЕ: -0.63 [14:12:45]line ИТОГО: 500.00 [14:12:45]line Внесено: 500.00 [14:12:45]line СДАЧА: 0.00 [14:12:45]line НСП 1% : 4.43 [14:12:45]line НДС 12% : 53.16 [14:12:45]line Наличными: 500.00 [14:12:45]line Безнал.: 0.00 [14:12:45]line Место: АЗС № 137 "Партнер Нефть" [14:12:45]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:12:45]line СНО: Общий режим [14:12:45]line Чек 81 22.09.2024 14:12 [14:12:45]line Смена: 70 ФФД: 1.0 [14:12:45]line ЗНМ: 0300000041 [14:12:45]line РНМ: 0000000000190446 [14:12:45]line Версия ККМ: v1.0 [14:12:45]line ФМ: 0000000002094258 [14:12:45]line ФД: 7683 [14:12:45]line ФПД: 145777825738522 [14:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141244&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7683&fm=145777825738522&tin=02508201610067®Number=0000000000190446&sum=50000 [14:12:46]written 0, free lines is 4095 [14:12:46]OFD Sender: Processing packet 7683 [packets to send 51, broken 50] [14:12:46]ProducePacketName [14:12:46]name=ofd_packets/00007683 [14:12:46]OFD Sender: To server: pG, [14:12:46]CommunicateWithHost lk.salyk.kg:30040 [14:12:46]ConnectInit lk.salyk.kg [14:12:46]Write to MH i2c: 01 00 00 5C 00 5C [14:12:46]Write i2c OK [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: 01 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: 01 07 00 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F3 0C 62 [14:12:46]RasterBufferAndPrint [14:12:46]line [14:12:46]line [14:12:46]line [14:12:46]line [14:12:46]line [14:12:46]written 0, free lines is 3339 [14:12:46]MH_Cut [14:12:46]Write to MH i2c: D1 01 00 63 00 01 35 [14:12:46]Write i2c OK [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: D1 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: D1 01 00 [14:12:46]MH_I2C_Read... [14:12:46]Read from MH i2c: D1 01 00 63 00 00 34 [14:12:46]Write to MH i2c: 01 00 00 64 00 64 [14:12:46]Write i2c OK [14:12:46]MH_I2C_Read... [14:12:47]*** Cut start [14:12:47]*** Purtial cut [14:12:47]*** Stage 1: CUTSNS_PIN = 1 [14:12:47]Read from MH i2c: 01 *** Stop cut motor [14:12:47] [14:12:47]*** Cut end [14:12:47]MH_I2C_Read... [14:12:47]Read from MH i2c: 01 07 00 [14:12:47]MH_I2C_Read... [14:12:47]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:12:47]process_action close_receipt done [14:12:47]requested_data is exist [14:12:47]produce_requested_data [14:12:47]requested_item fm.sn is exist - process it [14:12:47]wFMCommunicate request_size=4 [14:12:47]MH_SAM_APDU [14:12:47]CAPDU: 80 11 00 00 [14:12:47]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [14:12:47]Write i2c OK [14:12:47]MH_I2C_Read... [14:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:47]Read from MH i2c: E2 [14:12:47]MH_I2C_Read... [14:12:47]Read from MH i2c: E2 17 00 [14:12:47]MH_I2C_Read... [14:12:47]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [14:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:12:47]wFMCommunicate OK [14:12:47]requested_item fd.num is exist - process it [14:12:47]SAM_PROTO_GetFieldsCounters [14:12:47]wFMCommunicate request_size=4 [14:12:47]MH_SAM_APDU [14:12:47]CAPDU: 80 13 00 00 [14:12:47]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [14:12:47]Connected sock=10 [14:12:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D1 52 08 01 E3 EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:47]F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 Write i2c OK [14:12:47]00 MH_I2C_Read... [14:12:47]00 Read from MH i2c: 00 E2 00 [14:12:47]00 MH_I2C_Read... [14:12:47]00 Read from MH i2c: 1F E2 04 62 02 00 00 [14:12:47]01 MH_I2C_Read... [14:12:47]00 12 04 04 00 51 00 00 00 F4 03 04 00 DC Read from MH i2c: 25 E2 F0 62 66 00 0E 66 04 00 04 00 00 5D 46 00 00 00 00 B9 04 01 00 01 0D 04 10 00 30 B9 30 04 30 01 30 00 30 01 30 11 30 04 30 10 30 00 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 32 30 30 32 39 30 34 39 32 34 35 32 38 35 10 04 04 00 03 1E 00 00 35 04 06 00 84 95 8B 84 EF 1A 7F 99 6C 88 78 AE DC 8B [14:12:47]38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 03 1E 00 00 0E 04 04 00 46 00 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 5A [14:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 03 1E 00 00 0E 04 04 00 46 00 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 [14:12:47]wFMCommunicate OK [14:12:47]SAM_PROTO_GetFieldsCounters done [14:12:47]requested_item shift.num is exist - process it [14:12:47]requested_item shift.opened is exist - process it [14:12:47]req_shift_opened [14:12:47]FM_GetShiftState [14:12:47]SAM_PROTO_GetShiftState [14:12:47]wFMCommunicate request_size=4 [14:12:47]MH_SAM_APDU [14:12:47]CAPDU: 80 13 01 00 [14:12:47]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:12:47]Write i2c OK [14:12:47]MH_I2C_Read... [14:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:47]Read from MH i2c: E2 [14:12:47]MH_I2C_Read... [14:12:47]Read from MH i2c: E2 0E 00 [14:12:47]MH_I2C_Read... [14:12:47]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [14:12:47]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:12:47]wFMCommunicate OK [14:12:47]SAM_PROTO_GetShiftState done [14:12:47]FM_GetShiftState done [14:12:47]req_shift_opened done [14:12:47]requested_item shift.open_date is exist - process it [14:12:47]req_shift_open_date [14:12:47]req_shift_open_date done [14:12:47]produce_requested_data done [14:12:47]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7683,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:12:47]process_action_free close_receipt [14:12:47]json_value_free [14:12:47]json_value_free done [14:12:47]process_json_proto returns [14:12:47]Send response to host [14:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7683,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:12:47]free response buf [14:12:47]execute_script done [14:12:47]execute_script returns [14:12:47]free content buf [14:12:47]Sock 9.Close socket [14:12:47]Sock 9.Thread stoped [14:12:48]accept exits with 7 [14:12:48]New connection [14:12:48]New thread 3067059556 created [14:12:48]Thread 3067202916 joined [14:12:48]Waiting for new connection... [14:12:48] Sock 7.Parse request [14:12:48]Sock 7.Check first char [14:12:48]Sock 7.First char is OK [14:12:48]request: POST /json_proto HTTP/1.0 [14:12:48]Method: POST [14:12:48]URL: /json_proto [14:12:48]Method is POST - this is cgi request [14:12:48]url: /json_proto [14:12:48]query_string will be loaded in cgi processing [14:12:48]execute_cgi json_proto POST (null) [14:12:48]execute_cgi path=json_proto method=POST [14:12:48]POST find Content-Length [14:12:48]Host: 172.17.47.195:8080 [14:12:48]Content-Length: 639 [14:12:48]Content-Type: application/json [14:12:48] [14:12:48]POST finish read [14:12:48]Found Content-Length = 639 [14:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871790", "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" : 67.80, "quantity" : 5.000, "sum" : 339.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:48]execute_script... [14:12: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)871790", "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" : 67.80, "quantity" : 5.000, "sum" : 339.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:48]POST & json_proto [14:12:48]process_json_proto [14:12:48]json parsed OK: [14:12:48]protocol is kg_v1.0 [14:12:48]action value=close_receipt [14:12:48]process_action close_receipt [14:12:48]cmd_close_receipt [14:12:48]MH_GetDate [14:12:48]Write to MH i2c: F0 00 00 68 00 57 [14:12:48]Write i2c OK [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: F0 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: F0 09 00 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: F0 09 00 68 00 00 E1 25 F0 66 96 2E 95 66 7B [14:12:48]GetLastDocTimeStamp 1727014364 [14:12:48]current date 1727014369 [14:12:48]FM_GetShiftState [14:12:48]SAM_PROTO_GetShiftState [14:12:48]wFMCommunicate request_size=4 [14:12:48]MH_SAM_APDU [14:12:48]CAPDU: 80 13 01 00 [14:12:48]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [14:12:48]Write i2c OK [14:12:48]MH_I2C_Read... [14:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:48]Read from MH i2c: E2 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: E2 0E 00 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [14:12:48]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:12:48]wFMCommunicate OK [14:12:48]SAM_PROTO_GetShiftState done [14:12:48]FM_GetShiftState done [14:12:48]opened in 1726964224 [14:12:48]opened+sec_in_day 1727050624 [14:12:48]quantity*price = 33900 [14:12:48]sum+1 = 33901 [14:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 339.00 НСП 1% : 3.00 НДС 12% : 36.00 Наличными: 339.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 82 22.09.2024 14:12 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7684 ФПД: 84589256580149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141249&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7684&fm=84589256580149&tin=02508201610067®Number=0000000000190446&sum=33900 [14:12:49]StoreToDocumentArchive [14:12:49]shift 70 fd 7684 [14:12:49]save to /storage/0070/doc_00007684 [14:12:49]save last doc name /storage/0070/doc_00007684 to /storage/kkm_last_doc_name [14:12:49]save OK [14:12:49]Clear old archive folders... [14:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:49]tlvbuf is 00F3BEC0 [14:12:49]SAM_PROTO_ClearQueue [14:12:49]wFMCommunicate request_size=4 [14:12:49]MH_SAM_APDU [14:12:49]CAPDU: 80 09 00 00 [14:12:49]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [14:12:49]Write i2c OK [14:12:49]MH_I2C_Read... [14:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:49]Read from MH i2c: E2 [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: E2 03 00 [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:12:49]RAPDU: 90 00 [14:12:49]wFMCommunicate OK [14:12:49]SAM_PROTO_ClearQueue done [14:12:49]KKMCreateOFDPacket [14:12:49]OFDProtocolAddRootSTLVToBuf [14:12:49]FM_MakeSignedData [14:12:49]FM_MakeSignedData [14:12:49]SAM_PROTO_SignData [14:12:49]wFMCommunicate request_size=4 [14:12:49]MH_SAM_APDU [14:12:49]CAPDU: 80 0D 01 02 [14:12:49]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [14:12:49]Write i2c OK [14:12:49]MH_I2C_Read... [14:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:50]Read from MH i2c: E2 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 03 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:12:50]RAPDU: 90 00 [14:12:50]wFMCommunicate OK [14:12:50]wFMCommunicate request_size=255 [14:12:50]MH_SAM_APDU [14:12: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 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E1 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 04 1E 00 00 35 04 06 00 4C [14:12:50]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E1 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 04 1E 00 00 35 04 06 00 4C 00 00 A5 [14:12:50]Write i2c OK [14:12:50]MH_I2C_Read... [14:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:50]Read from MH i2c: E2 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 03 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:12:50]RAPDU: 90 00 [14:12:50]wFMCommunicate OK [14:12:50]wFMCommunicate request_size=10 [14:12:50]MH_SAM_APDU [14:12:50]CAPDU: 80 0D 02 02 05 EE F8 97 1C 35 [14:12:50]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 EE F8 97 1C 35 00 00 CB [14:12:50]Write i2c OK [14:12:50]MH_I2C_Read... [14:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:50]Read from MH i2c: E2 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 03 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:12:50]RAPDU: 90 00 [14:12:50]wFMCommunicate OK [14:12:50]wFMCommunicate request_size=4 [14:12:50]MH_SAM_APDU [14:12:50]CAPDU: 80 0D 03 02 [14:12:50]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [14:12:50]Write i2c OK [14:12:50]MH_I2C_Read... [14:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:50]Read from MH i2c: E2 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 0B 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 0B 00 7A 00 00 10 D5 39 09 58 0A A0 D4 90 00 F3 [14:12:50]RAPDU: 10 D5 39 09 58 0A A0 D4 90 00 [14:12:50]wFMCommunicate OK [14:12:50]SAM_PROTO_SignData done [14:12:50]FM_MakeSignedData done [14:12:50]CreateOFDProtocolMessage [14:12:50]wFMCommunicate request_size=4 [14:12:50]MH_SAM_APDU [14:12:50]CAPDU: 80 11 00 00 [14:12:50]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [14:12:50]Write i2c OK [14:12:50]MH_I2C_Read... [14:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:50]Read from MH i2c: E2 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 17 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [14:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:12:50]wFMCommunicate OK [14:12:50]CreateOFDProtocolMessage done [14:12:50]OFDSenderStorePacket 7684 [14:12:50]StoreOFDPacket docnum=7684 [14:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 83 CD 07 01 D6 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E1 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 04 1E 00 00 35 04 06 00 4C EE F8 97 1C 35 10 D5 39 09 58 0A A0 D4 [14:12:50]CheckFolder [14:12:50]dirname=/storage/ofd_packets [14:12:50]CheckFolder done [14:12:50]ProducePacketName [14:12:50]name=ofd_packets/00007684 [14:12:50]NVStorageSaveData ofd_packets/00007684 [14:12:50]File name is /storage/ofd_packets/00007684 [14:12:50]Write 301 bytes [14:12:50]NVStorageSaveData done [14:12:50]OFDSenderStorePacket done [14:12:50]KKMCreateOFDPacket done [14:12:50]NVStorageSaveData kkm_last_timestamp [14:12:50]File name is /storage/kkm_last_timestamp [14:12:50]Write 4 bytes [14:12:50]NVStorageSaveData done [14:12:50]ExternCall_PrintAddStr [14:12:50]wPrintStart [14:12:50]Write to MH i2c: 01 00 00 7C 00 7C [14:12:50]Write i2c OK [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: 01 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: 01 07 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [14:12:50]RasterBufferAndPrint [14:12:50]line Счет N : (1)871790 [14:12:50]line ИНН: 02508201610067 [14:12:50]line Контрольно-Кассовый Чек [14:12:50]line ПРОДАЖА [14:12:50]line ТРК (МРК, ГНК) : 63 [14:12:50]line Товар: 2710124130 [14:12:50]line Аи-92-К-5 [14:12:50]line 5.000 * 67.80 [14:12:50]line = 339.00 [14:12:50]line НДС 12% НСП 1% [14:12:50]line > о реализуемом товаре [14:12:50]line ИТОГО: 339.00 [14:12:50]line НСП 1% : 3.00 [14:12:50]line НДС 12% : 36.00 [14:12:50]line Наличными: 339.00 [14:12:50]line Безнал.: 0.00 [14:12:50]line Место: АЗС № 137 "Партнер Нефть" [14:12:50]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:12:50]line СНО: Общий режим [14:12:50]line Чек 82 22.09.2024 14:12 [14:12:50]line Смена: 70 ФФД: 1.0 [14:12:50]line ЗНМ: 0300000041 [14:12:50]line РНМ: 0000000000190446 [14:12:50]line Версия ККМ: v1.0 [14:12:50]line ФМ: 0000000002094258 [14:12:50]line ФД: 7684 [14:12:50]line ФПД: 84589256580149 [14:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141249&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7684&fm=84589256580149&tin=02508201610067®Number=0000000000190446&sum=33900 [14:12:50]written 0, free lines is 4095 [14:12:50]OFD Sender: Processing packet 7684 [packets to send 51, broken 50] [14:12:50]ProducePacketName [14:12:50]name=ofd_packets/00007684 [14:12:50]OFD Sender: To server: pG, [14:12:50]CommunicateWithHost lk.salyk.kg:30040 [14:12:50]ConnectInit lk.salyk.kg [14:12:51]Write to MH i2c: 01 00 00 A4 00 A4 [14:12:51]Write i2c OK [14:12:51]MH_I2C_Read... [14:12:51]Read from MH i2c: 01 [14:12:51]MH_I2C_Read... [14:12:51]Read from MH i2c: 01 07 00 [14:12:51]MH_I2C_Read... [14:12:51]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 22 0D DA [14:12:51]RasterBufferAndPrint [14:12:51]line [14:12:51]line [14:12:51]line [14:12:51]line [14:12:51]line [14:12:51]written 0, free lines is 3394 [14:12:51]MH_Cut [14:12:51]Write to MH i2c: D1 01 00 AB 00 01 7D [14:12:51]Write i2c OK [14:12:51]MH_I2C_Read... [14:12:51]Read from MH i2c: D1 [14:12:51]MH_I2C_Read... [14:12:51]Read from MH i2c: D1 01 00 [14:12:51]MH_I2C_Read... [14:12:51]Read from MH i2c: D1 01 00 AB 00 00 7C [14:12:51]Write to MH i2c: 01 00 00 AC 00 AC [14:12:51]Write i2c OK [14:12:51]MH_I2C_Read... [14:12:51]Connected sock=10 [14:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 83 CD 07 01 D6 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E1 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 *** Cut start [14:12:51]36 11 04 *** Purtial cut [14:12:52]10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 04 1E 00 00 35 04 06 00 4C EE F8 97 1C 35 10 *** Stage 1: CUTSNS_PIN = 1 [14:12:52]D5 39 09 58 0A A0 D4 [14:12:52]Read from MH i2c: 01 [14:12:52]MH_I2C_Read... [14:12:52]*** Stop cut motor [14:12:52]*** Cut end [14:12:52]Read from MH i2c: 01 07 00 [14:12:52]MH_I2C_Read... [14:12:52]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [14:12:52]process_action close_receipt done [14:12:52]requested_data is exist [14:12:52]produce_requested_data [14:12:52]requested_item fm.sn is exist - process it [14:12:52]wFMCommunicate request_size=4 [14:12:52]MH_SAM_APDU [14:12:52]CAPDU: 80 11 00 00 [14:12:52]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [14:12:52]Write i2c OK [14:12:52]MH_I2C_Read... [14:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:52]Read from MH i2c: E2 [14:12:52]MH_I2C_Read... [14:12:52]Read from MH i2c: E2 17 00 [14:12:52]MH_I2C_Read... [14:12:52]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 78 [14:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:12:52]wFMCommunicate OK [14:12:52]requested_item fd.num is exist - process it [14:12:52]SAM_PROTO_GetFieldsCounters [14:12:52]wFMCommunicate request_size=4 [14:12:52]MH_SAM_APDU [14:12:52]CAPDU: 80 13 00 00 [14:12:52]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [14:12:52]Write i2c OK [14:12:52]MH_I2C_Read... [14:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:52]Read from MH i2c: E2 [14:12:52]MH_I2C_Read... [14:12:52]Read from MH i2c: E2 62 00 [14:12:52]MH_I2C_Read... [14:12:52]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 04 1E 00 00 0E 04 04 00 46 00 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 A6 [14:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 04 1E 00 00 0E 04 04 00 46 00 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 [14:12:52]wFMCommunicate OK [14:12:52]SAM_PROTO_GetFieldsCounters done [14:12:52]requested_item shift.num is exist - process it [14:12:52]requested_item shift.opened is exist - process it [14:12:52]req_shift_opened [14:12:52]FM_GetShiftState [14:12:52]SAM_PROTO_GetShiftState [14:12:52]wFMCommunicate request_size=4 [14:12:52]MH_SAM_APDU [14:12:52]CAPDU: 80 13 01 00 [14:12:52]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [14:12:52]Write i2c OK [14:12:52]MH_I2C_Read... [14:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:52]Read from MH i2c: E2 [14:12:52]MH_I2C_Read... [14:12:52]Read from MH i2c: E2 0E 00 [14:12:52]MH_I2C_Read... [14:12:52]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 EF [14:12:52]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:12:52]wFMCommunicate OK [14:12:52]SAM_PROTO_GetShiftState done [14:12:52]FM_GetShiftState done [14:12:52]req_shift_opened done [14:12:52]requested_item shift.open_date is exist - process it [14:12:52]req_shift_open_date [14:12:52]req_shift_open_date done [14:12:52]produce_requested_data done [14:12:52]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7684,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:12:52]process_action_free close_receipt [14:12:52]json_value_free [14:12:52]json_value_free done [14:12:52]process_json_proto returns [14:12:52]Send response to host [14:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7684,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:12:52]free response buf [14:12:52]execute_script done [14:12:52]execute_script returns [14:12:52]free content buf [14:12:52]Sock 7.Close socket [14:12:52]Sock 7.Thread stoped [14:12:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 BC 4A 47 00 81 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 32 30 39 34 32 35 38 10 04 04 00 04 1E 00 00 F4 03 04 00 A1 D0 EF 66 B6 04 01 00 00 CE 80 12 F5 6D 71 B4 2A [14:12:53]CommunicateWithHost err = 0 [14:12:53]CheckOFDResponse [14:12:53]1017 (14) - 77093643461234 [14:12:53]1041 (16) - 0000000002094258 [14:12:53]1040 (4) - 7684 [14:12:53]1012 (4) - 22.09.2024 08:09 [14:12:53]1206 (1) - 0 [14:12:53]OFD Sender: Remove packet 7684 [14:12:53]ProducePacketName [14:12:53]name=ofd_packets/00007684 [14:12:53]NVStorageDeleteData [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]accept exits with 9 [14:13:03]New connection [14:13:03]New thread 3067202916 created [14:13:03]Thread 3067059556 joined [14:13:03]Waiting for new connection... [14:13:03] Sock 9.Parse request [14:13:03]Sock 9.Check first char [14:13:03]Sock 9.First char is OK [14:13:03]request: POST /json_proto HTTP/1.0 [14:13:03]Method: POST [14:13:03]URL: /json_proto [14:13:03]Method is POST - this is cgi request [14:13:03]url: /json_proto [14:13:03]query_string will be loaded in cgi processing [14:13:03]execute_cgi json_proto POST (null) [14:13:03]execute_cgi path=json_proto method=POST [14:13:03]POST find Content-Length [14:13:03]Host: 172.17.47.195:8080 [14:13:03]Content-Length: 694 [14:13:03]Content-Type: application/json [14:13:03] [14:13:03]POST finish read [14:13:03]Found Content-Length = 694 [14:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 7684, "base_FM": "0000000002094258", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871790", "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" : 67.80, "quantity" : 5.000, "sum" : 339.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:03]execute_script... [14:13:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 7684, "base_FM": "0000000002094258", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871790", "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" : 67.80, "quantity" : 5.000, "sum" : 339.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:03]POST & json_proto [14:13:03]process_json_proto [14:13:03]json parsed OK: [14:13:03]protocol is kg_v1.0 [14:13:03]action value=close_receipt [14:13:03]process_action close_receipt [14:13:03]cmd_close_receipt [14:13:03]MH_GetDate [14:13:03]Write to MH i2c: F0 00 00 B0 00 9F [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: F0 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: F0 09 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: F0 09 00 B0 00 00 F0 25 F0 66 96 2E 95 66 D2 [14:13:03]GetLastDocTimeStamp 1727014369 [14:13:03]current date 1727014384 [14:13:03]FM_GetShiftState [14:13:03]SAM_PROTO_GetShiftState [14:13:03]wFMCommunicate request_size=4 [14:13:03]MH_SAM_APDU [14:13:03]CAPDU: 80 13 01 00 [14:13:03]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:03]Read from MH i2c: E2 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 0E 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F1 [14:13:03]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:13:03]wFMCommunicate OK [14:13:03]SAM_PROTO_GetShiftState done [14:13:03]FM_GetShiftState done [14:13:03]opened in 1726964224 [14:13:03]opened+sec_in_day 1727050624 [14:13:03]quantity*price = 33900 [14:13:03]sum+1 = 33901 [14:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 339.00 НСП 1% : 3.00 НДС 12% : 36.00 Наличными: 339.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 83 22.09.2024 14:13 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФД осн.: 7684 ФМ осн.: 0000000002094258 ФМ: 0000000002094258 ФД: 7685 ФПД: 170286507602227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141304&type=2&operation_type=1&fn_number=0000000002094258&fd_number=7685&fm=170286507602227&tin=02508201610067®Number=0000000000190446&sum=33900 [14:13:05]StoreToDocumentArchive [14:13:05]shift 70 fd 7685 [14:13:05]save to /storage/0070/doc_00007685 [14:13:05]save last doc name /storage/0070/doc_00007685 to /storage/kkm_last_doc_name [14:13:05]save OK [14:13:05]Clear old archive folders... [14:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:13:05]tlvbuf is 00F34710 [14:13:05]SAM_PROTO_ClearQueue [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 09 00 00 [14:13:05]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [14:13:05]RAPDU: 90 00 [14:13:05]wFMCommunicate OK [14:13:05]SAM_PROTO_ClearQueue done [14:13:05]KKMCreateOFDPacket [14:13:05]OFDProtocolAddRootSTLVToBuf [14:13:05]FM_MakeSignedData [14:13:05]FM_MakeSignedData [14:13:05]SAM_PROTO_SignData [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 0D 01 02 [14:13:05]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:13:05]RAPDU: 90 00 [14:13:05]wFMCommunicate OK [14:13:05]wFMCommunicate request_size=255 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F0 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 27 04 04 00 04 1E 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 11 04 10 00 30 [14:13:05]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F0 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 27 04 04 00 04 1E 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 11 04 10 00 30 00 00 15 [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:13:05]RAPDU: 90 00 [14:13:05]wFMCommunicate OK [14:13:05]wFMCommunicate request_size=38 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 05 1E 00 00 35 04 06 00 9A DF EA CB B1 33 [14:13:05]Write to MH i2c: E2 29 00 C3 00 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 05 1E 00 00 35 04 06 00 9A DF EA CB B1 33 00 00 F9 [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [14:13:05]RAPDU: 90 00 [14:13:05]wFMCommunicate OK [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 0D 03 02 [14:13:05]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 0B 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 0B 00 C4 00 00 EC 82 7F E7 94 33 9C 3B 90 00 B2 [14:13:05]RAPDU: EC 82 7F E7 94 33 9C 3B 90 00 [14:13:05]wFMCommunicate OK [14:13:05]SAM_PROTO_SignData done [14:13:05]FM_MakeSignedData done [14:13:05]CreateOFDProtocolMessage [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 11 00 00 [14:13:05]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:06]Read from MH i2c: E2 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 17 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 90 [14:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:13:06]wFMCommunicate OK [14:13:06]CreateOFDProtocolMessage done [14:13:06]OFDSenderStorePacket 7685 [14:13:06]StoreOFDPacket docnum=7685 [14:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 2B 01 00 00 2B 3A 23 01 83 57 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F0 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 27 04 04 00 04 1E 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 05 1E 00 00 35 04 06 00 9A DF EA CB B1 33 EC 82 7F E7 94 33 9C 3B [14:13:06]CheckFolder [14:13:06]dirname=/storage/ofd_packets [14:13:06]CheckFolder done [14:13:06]ProducePacketName [14:13:06]name=ofd_packets/00007685 [14:13:06]NVStorageSaveData ofd_packets/00007685 [14:13:06]File name is /storage/ofd_packets/00007685 [14:13:06]Write 329 bytes [14:13:06]NVStorageSaveData done [14:13:06]OFDSenderStorePacket done [14:13:06]KKMCreateOFDPacket done [14:13:06]NVStorageSaveData kkm_last_timestamp [14:13:06]File name is /storage/kkm_last_timestamp [14:13:06]Write 4 bytes [14:13:06]NVStorageSaveData done [14:13:06]ExternCall_PrintAddStr [14:13:06]wPrintStart [14:13:06]Write to MH i2c: 01 00 00 C6 00 C6 [14:13:06]OFD Sender: Processing packet 7685 [packets to send 51, broken 50] [14:13:06]ProducePacketName [14:13:06]name=ofd_packets/00007685 [14:13:06]OFD Sender: To server: pG, [14:13:06]CommunicateWithHost lk.salyk.kg:30040 [14:13:06]ConnectInit lk.salyk.kg [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [14:13:06]RasterBufferAndPrint [14:13:06]line Счет N : (1)871790 [14:13:06]line ИНН: 02508201610067 [14:13:06]line Контрольно-Кассовый Чек [14:13:06]line ВОЗВРАТ ПРОДАЖИ [14:13:06]line ТРК (МРК, ГНК) : 63 [14:13:06]line Товар: 2710124130 [14:13:06]line Аи-92-К-5 [14:13:06]line 5.000 * 67.80 [14:13:06]line = 339.00 [14:13:06]line НДС 12% НСП 1% [14:13:06]line > о реализуемом товаре [14:13:06]line ИТОГО: 339.00 [14:13:06]line НСП 1% : 3.00 [14:13:06]line НДС 12% : 36.00 [14:13:06]line Наличными: 339.00 [14:13:06]line Безнал.: 0.00 [14:13:06]line Место: АЗС № 137 "Партнер Нефть" [14:13:06]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:13:06]line СНО: Общий режим [14:13:06]line Чек 83 22.09.2024 14:13 [14:13:06]line Смена: 70 ФФД: 1.0 [14:13:06]line ЗНМ: 0300000041 [14:13:06]line РНМ: 0000000000190446 [14:13:06]line Версия ККМ: v1.0 [14:13:06]line ФД осн.: 7684 [14:13:06]line ФМ осн.: 0000000002094258 [14:13:06]line ФМ: 0000000002094258 [14:13:06]line ФД: 7685 [14:13:06]line ФПД: 170286507602227 [14:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141304&type=2&operation_type=1&fn_number=0000000002094258&fd_number=7685&fm=170286507602227&tin=02508201610067®Number=0000000000190446&sum=33900 [14:13:06]written 0, free lines is 4095 [14:13:06]Write to MH i2c: 01 00 00 F0 00 F0 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 18 0D 1C [14:13:06]RasterBufferAndPrint [14:13:06]line [14:13:06]line [14:13:06]line [14:13:06]line [14:13:06]line [14:13:06]written 0, free lines is 3385 [14:13:06]MH_Cut [14:13:06]Write to MH i2c: D1 01 00 F7 00 01 C9 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: D1 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: D1 01 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: D1 01 00 F7 00 00 C8 [14:13:06]Write to MH i2c: 01 00 00 F8 00 F8 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:07]*** Cut start [14:13:07]*** Purtial cut [14:13:07]*** Stage 1: CUTSNS_PIN = 1 [14:13:07]Read from MH i2c: 01 [14:13:07]MH_I2C_Read... [14:13:07]*** Stop cut motor [14:13:07]*** Cut end [14:13:07]Read from MH i2c: 01 07 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [14:13:07]process_action close_receipt done [14:13:07]requested_data is exist [14:13:07]produce_requested_data [14:13:07]requested_item fm.sn is exist - process it [14:13:07]wFMCommunicate request_size=4 [14:13:07]MH_SAM_APDU [14:13:07]CAPDU: 80 11 00 00 [14:13:07]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:07]Read from MH i2c: E2 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 17 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C4 [14:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:13:07]wFMCommunicate OK [14:13:07]requested_item fd.num is exist - process it [14:13:07]SAM_PROTO_GetFieldsCounters [14:13:07]wFMCommunicate request_size=4 [14:13:07]MH_SAM_APDU [14:13:07]CAPDU: 80 13 00 00 [14:13:07]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:07]Read from MH i2c: E2 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 62 00 [14:13:07]MH_I2C_Read... [14:13:07]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 05 1E 00 00 0E 04 04 00 46 00 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 F6 [14:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 05 1E 00 00 0E 04 04 00 46 00 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 [14:13:07]wFMCommunicate OK [14:13:07]SAM_PROTO_GetFieldsCounters done [14:13:07]requested_item shift.num is exist - process it [14:13:07]requested_item shift.opened is exist - process it [14:13:07]req_shift_opened [14:13:07]FM_GetShiftState [14:13:07]SAM_PROTO_GetShiftState [14:13:07]wFMCommunicate request_size=4 [14:13:07]MH_SAM_APDU [14:13:07]CAPDU: 80 13 01 00 [14:13:07]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:07]Read from MH i2c: E2 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 0E 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3B [14:13:08]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:13:08]wFMCommunicate OK [14:13:08]SAM_PROTO_GetShiftState done [14:13:08]FM_GetShiftState done [14:13:08]req_shift_opened done [14:13:08]requested_item shift.open_date is exist - process it [14:13:08]req_shift_open_date [14:13:08]req_shift_open_date done [14:13:08]produce_requested_data done [14:13:08]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7685,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:13:08]process_action_free close_receipt [14:13:08]json_value_free [14:13:08]json_value_free done [14:13:08]process_json_proto returns [14:13:08]Send response to host [14:13:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7685,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:13:08]free response buf [14:13:08]execute_script done [14:13:08]execute_script returns [14:13:08]free content buf [14:13:08]Sock 9.Close socket [14:13:08]Sock 9.Thread stoped [14:13:08]accept exits with 10 [14:13:08]New connection [14:13:08]New thread 3067059556 created [14:13:08]Thread 3067202916 joined [14:13:08]Waiting for new connection... [14:13:08] Sock 10.Parse request [14:13:08]Sock 10.Check first char [14:13:08]Sock 10.First char is OK [14:13:08]request: POST /json_proto HTTP/1.0 [14:13:08]Method: POST [14:13:08]URL: /json_proto [14:13:08]Method is POST - this is cgi request [14:13:08]url: /json_proto [14:13:08]query_string will be loaded in cgi processing [14:13:08]execute_cgi json_proto POST (null) [14:13:08]execute_cgi path=json_proto method=POST [14:13:08]POST find Content-Length [14:13:08]Host: 172.17.47.195:8080 [14:13:08]Content-Length: 671 [14:13:08]Content-Type: application/json [14:13:08] [14:13:08]POST finish read [14:13:08]Found Content-Length = 671 [14:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871790", "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" : 67.80, "quantity" : 0.040, "sum" : 2.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 339.00, "total" : 2.00, "payments": [ { "type": 0, "sum" : 2.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:08]execute_script... [14:13:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871790", "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" : 67.80, "quantity" : 0.040, "sum" : 2.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 339.00, "total" : 2.00, "payments": [ { "type": 0, "sum" : 2.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:08]POST & json_proto [14:13:08]process_json_proto [14:13:08]json parsed OK: [14:13:08]protocol is kg_v1.0 [14:13:08]action value=close_receipt [14:13:08]process_action close_receipt [14:13:08]cmd_close_receipt [14:13:08]MH_GetDate [14:13:08]Write to MH i2c: F0 00 00 FC 00 EB [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: F0 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: F0 09 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: F0 09 00 FC 00 00 F5 25 F0 66 96 2E 95 66 23 [14:13:08]GetLastDocTimeStamp 1727014384 [14:13:08]current date 1727014389 [14:13:08]FM_GetShiftState [14:13:08]SAM_PROTO_GetShiftState [14:13:08]wFMCommunicate request_size=4 [14:13:08]MH_SAM_APDU [14:13:08]CAPDU: 80 13 01 00 [14:13:08]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:08]Read from MH i2c: E2 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 0E 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3D [14:13:08]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:13:08]wFMCommunicate OK [14:13:08]SAM_PROTO_GetShiftState done [14:13:08]FM_GetShiftState done [14:13:08]opened in 1726964224 [14:13:08]opened+sec_in_day 1727050624 [14:13:08]quantity*price = 271 [14:13:08]sum+1 = 272 [14:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2.00 Внесено: 339.00 СДАЧА: 337.00 НСП 1% : 0.02 НДС 12% : 0.29 Наличными: 2.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 84 22.09.2024 14:13 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7686 ФПД: 228000492942927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141309&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7686&fm=228000492942927&tin=02508201610067®Number=0000000000190446&sum=200 [14:13:10]StoreToDocumentArchive [14:13:10]shift 70 fd 7686 [14:13:10]save to /storage/0070/doc_00007686 [14:13:10]save last doc name /storage/0070/doc_00007686 to /storage/kkm_last_doc_name [14:13:10]save OK [14:13:10]Clear old archive folders... [14:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:10]tlvbuf is 00F8EC40 [14:13:10]SAM_PROTO_ClearQueue [14:13:10]wFMCommunicate request_size=4 [14:13:10]MH_SAM_APDU [14:13:10]CAPDU: 80 09 00 00 [14:13:10]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:10]E2 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: E2 03 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [14:13:10]RAPDU: 90 00 [14:13:10]wFMCommunicate OK [14:13:10]SAM_PROTO_ClearQueue done [14:13:10]KKMCreateOFDPacket [14:13:10]OFDProtocolAddRootSTLVToBuf [14:13:10]FM_MakeSignedData [14:13:10]FM_MakeSignedData [14:13:10]SAM_PROTO_SignData [14:13:10]wFMCommunicate request_size=4 [14:13:10]MH_SAM_APDU [14:13:10]CAPDU: 80 0D 01 02 [14:13:10]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:10]Read from MH i2c: E2 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: E2 03 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:13:10]RAPDU: 90 00 [14:13:10]wFMCommunicate OK [14:13:10]wFMCommunicate request_size=255 [14:13:10]MH_SAM_APDU [14:13:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 00 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0F 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F5 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 06 1E 00 00 35 04 06 00 CF [14:13:10]Write to MH i2c: E2 02 01 0C 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 28 00 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0F 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F5 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 06 1E 00 00 35 04 06 00 CF 00 00 06 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:13:11]RAPDU: 90 00 [14:13:11]wFMCommunicate OK [14:13:11]wFMCommunicate request_size=10 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 0D 02 02 05 5D 80 63 F6 4F [14:13:11]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 5D 80 63 F6 4F 00 00 17 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [14:13:11]RAPDU: 90 00 [14:13:11]wFMCommunicate OK [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 0D 03 02 [14:13:11]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 0B 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 0B 00 0E 01 00 88 BC DC 84 03 C4 D4 BE 90 00 88 [14:13:11]RAPDU: 88 BC DC 84 03 C4 D4 BE 90 00 [14:13:11]wFMCommunicate OK [14:13:11]SAM_PROTO_SignData done [14:13:11]FM_MakeSignedData done [14:13:11]CreateOFDProtocolMessage [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 11 00 00 [14:13:11]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 82 A5 47 00 D8 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 Read from MH i2c: 00 E2 30 [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:11]Read from MH i2c: E2 17 00 [14:13:11]MH_I2C_Read... [14:13:11]30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 05 1E 00 00 F4 03 04 00 B3 D0 EF 66 B6 04 01 00 00 02 80 F4 5C 77 C9 2E FA [14:13:11]CommunicateWithHost err = 0 [14:13:11]CheckOFDResponse [14:13:11]1017 (14) - 77093643461234 [14:13:11]1041 (16) - 0000000002094258 [14:13:11]1040 (4) - 7685 [14:13:11]1012 (4) - 22.09.2024 08:09 [14:13:11]1206 (1) - 0 [14:13:11]OFD Sender: Remove packet 7685 [14:13:11]ProducePacketName [14:13:11]name=ofd_packets/00007685 [14:13:11]NVStorageDeleteData [14:13:11]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [14:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:13:11]wFMCommunicate OK [14:13:11]CreateOFDProtocolMessage done [14:13:11]OFDSenderStorePacket 7686 [14:13:11]StoreOFDPacket docnum=7686 [14:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 7A E5 07 01 E2 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 00 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0F 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F5 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 06 1E 00 00 35 04 06 00 CF 5D 80 63 F6 4F 88 BC DC 84 03 C4 D4 BE [14:13:11]CheckFolder [14:13:11]dirname=/storage/ofd_packets [14:13:11]CheckFolder done [14:13:11]ProducePacketName [14:13:11]name=ofd_packets/00007686 [14:13:11]NVStorageSaveData ofd_packets/00007686 [14:13:11]File name is /storage/ofd_packets/00007686 [14:13:11]Write 301 bytes [14:13:11]NVStorageSaveData done [14:13:11]OFDSenderStorePacket done [14:13:11]KKMCreateOFDPacket done [14:13:11]NVStorageSaveData kkm_last_timestamp [14:13:11]File name is /storage/kkm_last_timestamp [14:13:11]Write 4 bytes [14:13:11]NVStorageSaveData done [14:13:11]ExternCall_PrintAddStr [14:13:11]wPrintStart [14:13:11]Write to MH i2c: 01 00 00 10 01 11 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: 01 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: 01 07 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [14:13:11]RasterBufferAndPrint [14:13:11]line Счет N : (1)871790 [14:13:11]line ИНН: 02508201610067 [14:13:11]line Контрольно-Кассовый Чек [14:13:11]line ПРОДАЖА [14:13:11]line ТРК (МРК, ГНК) : 63 [14:13:11]line Товар: 2710124130 [14:13:11]line Аи-92-К-5 [14:13:11]line 0.040 * 67.80 [14:13:11]line = 2.71 [14:13:11]line НДС 12% НСП 1% [14:13:11]line > о реализуемом товаре [14:13:11]line ОКРУГЛЕНИЕ: -0.71 [14:13:11]line ИТОГО: 2.00 [14:13:11]line Внесено: 339.00 [14:13:11]line СДАЧА: 337.00 [14:13:11]line НСП 1% : 0.02 [14:13:11]line НДС 12% : 0.29 [14:13:11]line Наличными: 2.00 [14:13:11]line Безнал.: 0.00 [14:13:11]line Место: АЗС № 137 "Партнер Нефть" [14:13:11]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:13:11]line СНО: Общий режим [14:13:11]line Чек 84 22.09.2024 14:13 [14:13:11]line Смена: 70 ФФД: 1.0 [14:13:11]line ЗНМ: 0300000041 [14:13:11]line РНМ: 0000000000190446 [14:13:11]line Версия ККМ: v1.0 [14:13:11]line ФМ: 0000000002094258 [14:13:11]line ФД: 7686 [14:13:11]line ФПД: 228000492942927 [14:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141309&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7686&fm=228000492942927&tin=02508201610067®Number=0000000000190446&sum=200 [14:13:11]written 0, free lines is 4095 [14:13:12]OFD Sender: Processing packet 7686 [packets to send 51, broken 50] [14:13:12]ProducePacketName [14:13:12]name=ofd_packets/00007686 [14:13:12]OFD Sender: To server: pG, [14:13:12]CommunicateWithHost lk.salyk.kg:30040 [14:13:12]ConnectInit lk.salyk.kg [14:13:12]Write to MH i2c: 01 00 00 3B 01 3C [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 07 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 F9 0C 48 [14:13:12]RasterBufferAndPrint [14:13:12]line [14:13:12]line [14:13:12]line [14:13:12]line [14:13:12]line [14:13:12]written 0, free lines is 3357 [14:13:12]MH_Cut [14:13:12]Write to MH i2c: D1 01 00 42 01 01 15 [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: D1 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: D1 01 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: D1 01 00 42 01 00 14 [14:13:12]Write to MH i2c: 01 00 00 43 01 44 [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** Cut start [14:13:12]*** Purtial cut [14:13:12]*** Stage 1: CUTSNS_PIN = 1 [14:13:13]Read from MH i2c: 01 [14:13:13]MH_I2C_Read... [14:13:13]*** Stop cut motor [14:13:13]*** Cut end [14:13:13]Read from MH i2c: 01 07 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [14:13:13]process_action close_receipt done [14:13:13]requested_data is exist [14:13:13]produce_requested_data [14:13:13]requested_item fm.sn is exist - process it [14:13:13]wFMCommunicate request_size=4 [14:13:13]MH_SAM_APDU [14:13:13]CAPDU: 80 11 00 00 [14:13:13]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:13]Read from MH i2c: E2 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: E2 17 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 10 [14:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:13:13]wFMCommunicate OK [14:13:13]requested_item fd.num is exist - process it [14:13:13]SAM_PROTO_GetFieldsCounters [14:13:13]wFMCommunicate request_size=4 [14:13:13]MH_SAM_APDU [14:13:13]CAPDU: 80 13 00 00 [14:13:13]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]Connected sock=7 [14:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 7A E5 07 01 E2 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 00 00 00 00 00 00 37 04 06 00 7C 1A *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:13]00 00 00 00 13 04 06 00 0F 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F5 25 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 06 1E 00 00 35 Read from MH i2c: 04 E2 06 [14:13:13]00 MH_I2C_Read... [14:13:13]CF 5D 80 63 F6 4F 88 BC DC Read from MH i2c: 84 E2 03 62 C4 00 D4 [14:13:13]BE MH_I2C_Read... [14:13:13] [14:13:13]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 06 1E 00 00 0E 04 04 00 46 00 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 46 [14:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 06 1E 00 00 0E 04 04 00 46 00 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 [14:13:13]wFMCommunicate OK [14:13:13]SAM_PROTO_GetFieldsCounters done [14:13:13]requested_item shift.num is exist - process it [14:13:13]requested_item shift.opened is exist - process it [14:13:13]req_shift_opened [14:13:13]FM_GetShiftState [14:13:13]SAM_PROTO_GetShiftState [14:13:13]wFMCommunicate request_size=4 [14:13:13]MH_SAM_APDU [14:13:13]CAPDU: 80 13 01 00 [14:13:13]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:13]Read from MH i2c: E2 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: E2 0E 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 87 [14:13:13]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:13:13]wFMCommunicate OK [14:13:13]SAM_PROTO_GetShiftState done [14:13:13]FM_GetShiftState done [14:13:13]req_shift_opened done [14:13:13]requested_item shift.open_date is exist - process it [14:13:14]req_shift_open_date [14:13:14]req_shift_open_date done [14:13:14]produce_requested_data done [14:13:14]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7686,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:13:14]process_action_free close_receipt [14:13:14]json_value_free [14:13:14]json_value_free done [14:13:14]process_json_proto returns [14:13:14]Send response to host [14:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7686,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:13:14]free response buf [14:13:14]execute_script done [14:13:14]execute_script returns [14:13:14]free content buf [14:13:14]Sock 10.Close socket [14:13:14]Sock 10.Thread stoped [14:13:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 94 B6 47 00 B7 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 06 1E 00 00 F4 03 04 00 B7 D0 EF 66 B6 04 01 00 00 6B 22 A9 71 EF C9 46 50 [14:13:16]CommunicateWithHost err = 0 [14:13:16]CheckOFDResponse [14:13:16]1017 (14) - 77093643461234 [14:13:16]1041 (16) - 0000000002094258 [14:13:16]1040 (4) - 7686 [14:13:16]1012 (4) - 22.09.2024 08:09 [14:13:16]1206 (1) - 0 [14:13:16]OFD Sender: Remove packet 7686 [14:13:16]ProducePacketName [14:13:16]name=ofd_packets/00007686 [14:13:16]NVStorageDeleteData [14:13:16]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:27]accept exits with 9 [14:13:27]New connection [14:13:27]New thread 3067202916 created [14:13:27]Thread 3067059556 joined [14:13:27]Waiting for new connection... [14:13:27] Sock 9.Parse request [14:13:27]Sock 9.Check first char [14:13:27]Sock 9.First char is OK [14:13:27]request: POST /json_proto HTTP/1.0 [14:13:27]Method: POST [14:13:27]URL: /json_proto [14:13:27]Method is POST - this is cgi request [14:13:27]url: /json_proto [14:13:27]query_string will be loaded in cgi processing [14:13:27]execute_cgi json_proto POST (null) [14:13:27]execute_cgi path=json_proto method=POST [14:13:27]POST find Content-Length [14:13:27]Host: 172.17.47.195:8080 [14:13:27]Content-Length: 682 [14:13:27]Content-Type: application/json [14:13:27] [14:13:27]POST finish read [14:13:27]Found Content-Length = 682 [14:13:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:27]execute_script... [14:13: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)871789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:27]POST & json_proto [14:13:27]process_json_proto [14:13:27]json parsed OK: [14:13:27]protocol is kg_v1.0 [14:13:27]action value=close_receipt [14:13:27]process_action close_receipt [14:13:27]cmd_close_receipt [14:13:27]MH_GetDate [14:13:27]Write to MH i2c: F0 00 00 47 01 37 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: F0 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: F0 09 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: F0 09 00 47 01 00 08 26 F0 66 96 2E 95 66 83 [14:13:27]GetLastDocTimeStamp 1727014389 [14:13:27]current date 1727014408 [14:13:27]FM_GetShiftState [14:13:27]SAM_PROTO_GetShiftState [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 13 01 00 [14:13:27]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 0E 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 89 [14:13:27]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:13:27]wFMCommunicate OK [14:13:27]SAM_PROTO_GetShiftState done [14:13:27]FM_GetShiftState done [14:13:27]opened in 1726964224 [14:13:27]opened+sec_in_day 1727050624 [14:13:27]quantity*price = 50063 [14:13:27]sum+1 = 50064 [14:13:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 85 22.09.2024 14:13 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7687 ФПД: 1581391323948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141328&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7687&fm=1581391323948&tin=02508201610067®Number=0000000000190446&sum=50000 [14:13:28]StoreToDocumentArchive [14:13:28]shift 70 fd 7687 [14:13:28]save to /storage/0070/doc_00007687 [14:13:28]save last doc name /storage/0070/doc_00007687 to /storage/kkm_last_doc_name [14:13:28]save OK [14:13:28]Clear old archive folders... [14:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:13:28]tlvbuf is 00F10860 [14:13:28]SAM_PROTO_ClearQueue [14:13:28]wFMCommunicate request_size=4 [14:13:28]MH_SAM_APDU [14:13:28]CAPDU: 80 09 00 00 [14:13:28]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [14:13:28]Write i2c OK [14:13:28]MH_I2C_Read... [14:13:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:29]Read from MH i2c: E2 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 03 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [14:13:29]RAPDU: 90 00 [14:13:29]wFMCommunicate OK [14:13:29]SAM_PROTO_ClearQueue done [14:13:29]KKMCreateOFDPacket [14:13:29]OFDProtocolAddRootSTLVToBuf [14:13:29]FM_MakeSignedData [14:13:29]FM_MakeSignedData [14:13:29]SAM_PROTO_SignData [14:13:29]wFMCommunicate request_size=4 [14:13:29]MH_SAM_APDU [14:13:29]CAPDU: 80 0D 01 02 [14:13:29]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [14:13:29]Write i2c OK [14:13:29]MH_I2C_Read... [14:13:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:29]Read from MH i2c: E2 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 03 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [14:13:29]RAPDU: 90 00 [14:13:29]wFMCommunicate OK [14:13:29]wFMCommunicate request_size=255 [14:13:29]MH_SAM_APDU [14:13:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 08 26 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 07 1E 00 00 35 04 06 00 [14:13:29]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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 08 26 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 07 1E 00 00 35 04 06 00 00 00 05 [14:13:29]Write i2c OK [14:13:29]MH_I2C_Read... [14:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:29]Read from MH i2c: E2 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 03 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [14:13:29]RAPDU: 90 00 [14:13:29]wFMCommunicate OK [14:13:29]wFMCommunicate request_size=11 [14:13:29]MH_SAM_APDU [14:13:29]CAPDU: 80 0D 02 02 06 01 70 32 44 A3 2C [14:13:29]Write to MH i2c: E2 0E 00 58 01 80 0D 02 02 06 00 01 70 32 44 A3 2C 00 00 95 [14:13:29]Write i2c OK [14:13:29]MH_I2C_Read... [14:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:29]Read from MH i2c: E2 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 03 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [14:13:29]RAPDU: 90 00 [14:13:29]wFMCommunicate OK [14:13:29]wFMCommunicate request_size=4 [14:13:29]MH_SAM_APDU [14:13:29]CAPDU: 80 0D 03 02 [14:13:29]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [14:13:29]Write i2c OK [14:13:29]MH_I2C_Read... [14:13:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:29]Read from MH i2c: E2 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 0B 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 0B 00 59 01 00 19 E2 8F 7E 7D 4A 42 61 90 00 48 [14:13:29]RAPDU: 19 E2 8F 7E 7D 4A 42 61 90 00 [14:13:29]wFMCommunicate OK [14:13:29]SAM_PROTO_SignData done [14:13:29]FM_MakeSignedData done [14:13:29]CreateOFDProtocolMessage [14:13:29]wFMCommunicate request_size=4 [14:13:29]MH_SAM_APDU [14:13:29]CAPDU: 80 11 00 00 [14:13:29]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [14:13:29]Write i2c OK [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 [14:13:29]MH_I2C_Read... [14:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:29]Read from MH i2c: E2 17 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 26 [14:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:13:30]wFMCommunicate OK [14:13:30]CreateOFDProtocolMessage done [14:13:30]OFDSenderStorePacket 7687 [14:13:30]StoreOFDPacket docnum=7687 [14:13:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 24 E3 08 01 67 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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 08 26 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 07 1E 00 00 35 04 06 00 01 70 32 44 A3 2C 19 E2 8F 7E 7D 4A 42 61 [14:13:30]CheckFolder [14:13:30]dirname=/storage/ofd_packets [14:13:30]CheckFolder done [14:13:30]ProducePacketName [14:13:30]name=ofd_packets/00007687 [14:13:30]NVStorageSaveData ofd_packets/00007687 [14:13:30]File name is /storage/ofd_packets/00007687 [14:13:30]Write 302 bytes [14:13:30]NVStorageSaveData done [14:13:30]OFDSenderStorePacket done [14:13:30]KKMCreateOFDPacket done [14:13:30]NVStorageSaveData kkm_last_timestamp [14:13:30]File name is /storage/kkm_last_timestamp [14:13:30]Write 4 bytes [14:13:30]NVStorageSaveData done [14:13:30]ExternCall_PrintAddStr [14:13:30]wPrintStart [14:13:30]Write to MH i2c: 01 00 00 5B 01 5C [14:13:30]Write i2c OK [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: 01 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: 01 07 00 [14:17:55]ConnectInit Can't connect to host [14:17:57]ConnectInit Can't take IP for lk.salyk.kg [14:17:57]CommunicateWithHost connect error [14:17:57]CommunicateWithHost err = -1 [14:17:57]OFD Sender: Server communicate error [14:18:02]OFD Sender: Processing packet 7688 [packets to send 51, broken 50] [14:18:02]ProducePacketName [14:18:02]name=ofd_packets/00007688 [14:18:02]OFD Sender: To server: pG, [14:18:02]CommunicateWithHost lk.salyk.kg:30040 [14:18:02]ConnectInit lk.salyk.kg [14:18:03]Connected sock=10 [14:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 F5 14 07 01 AF 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 8A 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EA 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 65 26 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 08 1E 00 00 35 04 06 00 DD 7D D5 FF 61 EA 5F 41 8E A8 86 B3 B7 23 [14:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 2D 9A 47 00 A8 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 08 1E 00 00 F4 03 04 00 D9 D1 EF 66 B6 04 01 00 00 3B CF 82 3C E2 DF 28 F5 [14:18:04]CommunicateWithHost err = 0 [14:18:04]CheckOFDResponse [14:18:04]1017 (14) - 77093643461234 [14:18:04]1041 (16) - 0000000002094258 [14:18:04]1040 (4) - 7688 [14:18:04]1012 (4) - 22.09.2024 08:14 [14:18:04]1206 (1) - 0 [14:18:04]OFD Sender: Remove packet 7688 [14:18:04]ProducePacketName [14:18:04]name=ofd_packets/00007688 [14:18:04]NVStorageDeleteData [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [14:13:30]RasterBufferAndPrint [14:13:30]line Счет N : (1)871789 [14:13:30]line ИНН: 02508201610067 [14:13:30]line Контрольно-Кассовый Чек [14:13:30]line ПРОДАЖА [14:13:30]line ТРК (МРК, ГНК) : 44 [14:13:30]line Товар: 2710194210 [14:13:30]line ДТ(л)-К-4 [14:13:30]line 6.570 * 76.20 [14:13:30]line = 500.63 [14:13:30]line НДС 12% НСП 1% [14:13:30]line > о реализуемом товаре [14:13:30]line ОКРУГЛЕНИЕ: -0.63 [14:13:30]line ИТОГО: 500.00 [14:13:30]line Внесено: 500.00 [14:13:30]line СДАЧА: 0.00 [14:13:30]line НСП 1% : 4.43 [14:13:30]line НДС 12% : 53.16 [14:13:30]line Наличными: 500.00 [14:13:30]line Безнал.: 0.00 [14:13:30]line Место: АЗС № 137 "Партнер Нефть" [14:13:30]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:13:30]line СНО: Общий режим [14:13:30]line Чек 85 22.09.2024 14:13 [14:13:30]line Смена: 70 ФФД: 1.0 [14:13:30]line ЗНМ: 0300000041 [14:13:30]line РНМ: 0000000000190446 [14:13:30]line Версия ККМ: v1.0 [14:13:30]line ФМ: 0000000002094258 [14:13:30]line ФД: 7687 [14:13:30]line ФПД: 1581391323948 [14:13:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141328&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7687&fm=1581391323948&tin=02508201610067®Number=0000000000190446&sum=50000 [14:13:30]written 0, free lines is 4095 [14:13:30]OFD Sender: Processing packet 7687 [packets to send 51, broken 50] [14:13:30]ProducePacketName [14:13:30]name=ofd_packets/00007687 [14:13:30]OFD Sender: To server: pG, [14:13:30]CommunicateWithHost lk.salyk.kg:30040 [14:13:30]ConnectInit lk.salyk.kg [14:13:30]Connected sock=7 [14:13:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 24 E3 08 01 67 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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 Write to MH i2c: 50 01 C3 00 00 00 00 86 00 01 00 87 39 [14:13:30]04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 Write i2c OK [14:13:30]04 MH_I2C_Read... [14:13:30]04 Read from MH i2c: 00 01 55 [14:13:30]00 MH_I2C_Read... [14:13:30]00 00 F4 03 04 Read from MH i2c: 00 01 08 07 26 00 F0 [14:13:30]66 MH_I2C_Read... [14:13:30]0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 Read from MH i2c: 30 01 30 07 30 00 30 86 30 01 30 00 31 00 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 32 00 30 00 39 7C 34 0D 32 17 35 [14:13:30]38 RasterBufferAndPrint [14:13:30]10 line [14:13:30]04 line [14:13:30]04 line [14:13:30]00 line [14:13:30]07 line [14:13:30]1E 00 00 35 04 06 00 01 written 0, free lines is 3592 [14:13:30]70 32 44 A3 2C 19 E2 8F 7E 7D 4A 42 61 [14:13:30]MH_Cut [14:13:30]Write to MH i2c: D1 01 00 8D 01 01 60 [14:13:30]Write i2c OK [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: D1 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: D1 01 00 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: D1 01 00 8D 01 00 5F [14:13:30]Write to MH i2c: 01 00 00 8E 01 8F [14:13:30]Write i2c OK [14:13:30]MH_I2C_Read... [14:13:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 45 AD 47 00 DC 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 07 1E *** Cut start [14:13:31]00 *** Purtial cut [14:13:31]00 *** Stage 1: CUTSNS_PIN = 1 [14:13:31]F4 03 04 00 C8 D0 EF 66 B6 04 01 00 00 FB 2E F1 E4 58 FE F9 B7 [14:13:31]CommunicateWithHost err = 0 [14:13:31]CheckOFDResponse [14:13:31]1017 (14) - 77093643461234 [14:13:31]1041 (16) - 0000000002094258 [14:13:31]1040 (4) - 7687 [14:13:31]1012 (4) - 22.09.2024 08:09 [14:13:31]1206 (1) - 0 [14:13:31]OFD Sender: Remove packet 7687 [14:13:31]ProducePacketName [14:13:31]name=ofd_packets/00007687 [14:13:31]NVStorageDeleteData [14:13:31]Read from MH i2c: *** Stop cut motor [14:13:31]01 *** Cut end [14:13:31] [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: 01 07 00 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [14:13:31]process_action close_receipt done [14:13:31]requested_data is exist [14:13:31]produce_requested_data [14:13:31]requested_item fm.sn is exist - process it [14:13:31]wFMCommunicate request_size=4 [14:13:31]MH_SAM_APDU [14:13:31]CAPDU: 80 11 00 00 [14:13:31]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [14:13:31]Write i2c OK [14:13:31]MH_I2C_Read... [14:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:31]Read from MH i2c: E2 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 17 00 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5B [14:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:13:31]wFMCommunicate OK [14:13:31]requested_item fd.num is exist - process it [14:13:31]SAM_PROTO_GetFieldsCounters [14:13:31]wFMCommunicate request_size=4 [14:13:31]MH_SAM_APDU [14:13:31]CAPDU: 80 13 00 00 [14:13:31]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [14:13:31]Write i2c OK [14:13:31]MH_I2C_Read... [14:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:31]Read from MH i2c: E2 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 62 00 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 07 1E 00 00 0E 04 04 00 46 00 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 95 [14:13:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 07 1E 00 00 0E 04 04 00 46 00 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 OFD Sender: No OFD packet to send [14:13:32]90 00 [14:13:32]wFMCommunicate OK [14:13:32]SAM_PROTO_GetFieldsCounters done [14:13:32]requested_item shift.num is exist - process it [14:13:32]requested_item shift.opened is exist - process it [14:13:32]req_shift_opened [14:13:32]FM_GetShiftState [14:13:32]SAM_PROTO_GetShiftState [14:13:32]wFMCommunicate request_size=4 [14:13:32]MH_SAM_APDU [14:13:32]CAPDU: 80 13 01 00 [14:13:32]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [14:13:32]Write i2c OK [14:13:32]MH_I2C_Read... [14:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:32]Read from MH i2c: E2 [14:13:32]MH_I2C_Read... [14:13:32]Read from MH i2c: E2 0E 00 [14:13:32]MH_I2C_Read... [14:13:32]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D2 [14:13:32]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:13:32]wFMCommunicate OK [14:13:32]SAM_PROTO_GetShiftState done [14:13:32]FM_GetShiftState done [14:13:32]req_shift_opened done [14:13:32]requested_item shift.open_date is exist - process it [14:13:32]req_shift_open_date [14:13:32]req_shift_open_date done [14:13:32]produce_requested_data done [14:13:32]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7687,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:13:32]process_action_free close_receipt [14:13:32]json_value_free [14:13:32]json_value_free done [14:13:32]process_json_proto returns [14:13:32]Send response to host [14:13:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7687,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:13:32]free response buf [14:13:32]execute_script done [14:13:32]execute_script returns [14:13:32]free content buf [14:13:32]Sock 9.Close socket [14:13:32]Sock 9.Thread stoped [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:49]recv_with_timeout no data received [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:28]recv_with_timeout no data received [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:43]recv_with_timeout no data received [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:56]recv_with_timeout no data received [14:14:57]OFD Sender: No OFD packet to send [14:15:00]accept exits with 10 [14:15:00]New connection [14:15:00]New thread 3067059556 created [14:15:00]Thread 3067202916 joined [14:15:00]Waiting for new connection... [14:15:00] Sock 10.Parse request [14:15:00]Sock 10.Check first char [14:15:00]Sock 10.First char is OK [14:15:00]request: POST /json_proto HTTP/1.0 [14:15:00]Method: POST [14:15:00]URL: /json_proto [14:15:00]Method is POST - this is cgi request [14:15:00]url: /json_proto [14:15:00]query_string will be loaded in cgi processing [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:08]recv_with_timeout no data received [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:47]accept exits with 7 [14:21:47]New connection [14:21:47]New thread 3067202916 created [14:21:47]Thread 3067059556 joined [14:21:47]Waiting for new connection... [14:21:47] Sock 7.Parse request [14:21:47]Sock 7.Check first char [14:21:47]Sock 7.First char is OK [14:21:47]request: POST /json_proto HTTP/1.0 [14:21:47]Method: POST [14:21:47]URL: /json_proto [14:21:47]Method is POST - this is cgi request [14:21:47]url: /json_proto [14:21:47]query_string will be loaded in cgi processing [14:21:47]execute_cgi json_proto POST (null) [14:21:47]execute_cgi path=json_proto method=POST [14:21:47]POST find Content-Length [14:21:47]Host: 172.17.47.195:8080 [14:21:47]Content-Length: 687 [14:21:47]Content-Type: application/json [14:21:47] [14:21:47]POST finish read [14:21:47]Found Content-Length = 687 [14:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 31.500, "sum" : 2400.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:47]execute_script... [14:21:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 31.500, "sum" : 2400.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:47]POST & json_proto [14:21:47]process_json_proto [14:21:47]json parsed OK: [14:21:47]protocol is kg_v1.0 [14:21:47]action value=close_receipt [14:21:47]process_action close_receipt [14:21:47]cmd_close_receipt [14:21:47]MH_GetDate [14:21:47]Write to MH i2c: F0 00 00 DD 01 CD [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: F0 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: F0 09 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: F0 09 00 DD 01 00 FC 27 F0 66 96 2E 95 66 0E [14:21:47]GetLastDocTimeStamp 1727014501 [14:21:47]current date 1727014908 [14:21:47]FM_GetShiftState [14:21:47]SAM_PROTO_GetShiftState [14:21:47]wFMCommunicate request_size=4 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 13 01 00 [14:21:47]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 0E 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 1F [14:21:47]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:21:47]wFMCommunicate OK [14:21:47]SAM_PROTO_GetShiftState done [14:21:47]FM_GetShiftState done [14:21:47]opened in 1726964224 [14:21:47]opened+sec_in_day 1727050624 [14:21:47]quantity*price = 240030 [14:21:47]sum+1 = 240031 [14:21:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.90 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 87 22.09.2024 14:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7689 ФПД: 21449659788573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142148&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7689&fm=21449659788573&tin=02508201610067®Number=0000000000190446&sum=240000 [14:21:48]StoreToDocumentArchive [14:21:48]shift 70 fd 7689 [14:21:48]save to /storage/0070/doc_00007689 [14:21:48]save last doc name /storage/0070/doc_00007689 to /storage/kkm_last_doc_name [14:21:48]save OK [14:21:48]Clear old archive folders... [14:21:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:21:48]tlvbuf is 00ECD430 [14:21:48]SAM_PROTO_ClearQueue [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 09 00 00 [14:21:48]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [14:21:48]RAPDU: 90 00 [14:21:48]wFMCommunicate OK [14:21:48]SAM_PROTO_ClearQueue done [14:21:48]KKMCreateOFDPacket [14:21:48]OFDProtocolAddRootSTLVToBuf [14:21:48]FM_MakeSignedData [14:21:48]FM_MakeSignedData [14:21:48]SAM_PROTO_SignData [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 0D 01 02 [14:21:48]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [14:21:48]RAPDU: 90 00 [14:21:48]wFMCommunicate OK [14:21:48]wFMCommunicate request_size=255 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FC 27 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 09 1E 00 00 35 04 06 00 [14:21:48]Write to MH i2c: E2 02 01 ED 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 34 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FC 27 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 09 1E 00 00 35 04 06 00 00 00 37 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [14:21:48]RAPDU: 90 00 [14:21:48]wFMCommunicate OK [14:21:48]wFMCommunicate request_size=11 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 0D 02 02 06 13 82 23 5A 2D 1D [14:21:48]Write to MH i2c: E2 0E 00 EE 01 80 0D 02 02 06 00 13 82 23 5A 2D 1D 00 00 D1 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [14:21:48]RAPDU: 90 00 [14:21:48]wFMCommunicate OK [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 0D 03 02 [14:21:48]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 0B 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 0B 00 EF 01 00 51 76 BD B0 AB C5 29 3D 90 00 76 [14:21:48]RAPDU: 51 76 BD B0 AB C5 29 3D 90 00 [14:21:48]wFMCommunicate OK [14:21:48]SAM_PROTO_SignData done [14:21:48]FM_MakeSignedData done [14:21:48]CreateOFDProtocolMessage [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 11 00 00 [14:21:48]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 17 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 BC [14:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:21:48]wFMCommunicate OK [14:21:48]CreateOFDProtocolMessage done [14:21:48]OFDSenderStorePacket 7689 [14:21:48]StoreOFDPacket docnum=7689 [14:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 AA F1 08 01 20 FD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FC 27 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 09 1E 00 00 35 04 06 00 13 82 23 5A 2D 1D 51 76 BD B0 AB C5 29 3D [14:21:48]CheckFolder [14:21:48]dirname=/storage/ofd_packets [14:21:48]CheckFolder done [14:21:48]ProducePacketName [14:21:48]name=ofd_packets/00007689 [14:21:48]NVStorageSaveData ofd_packets/00007689 [14:21:48]File name is /storage/ofd_packets/00007689 [14:21:48]Write 302 bytes [14:21:48]NVStorageSaveData done [14:21:48]OFDSenderStorePacket done [14:21:48]KKMCreateOFDPacket done [14:21:48]NVStorageSaveData kkm_last_timestamp [14:21:48]File name is /storage/kkm_last_timestamp [14:21:48]Write 4 bytes [14:21:48]NVStorageSaveData done [14:21:48]ExternCall_PrintAddStr [14:21:48]wPrintStart [14:21:48]Write to MH i2c: 01 00 00 F1 01 F2 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: 01 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: 01 07 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [14:21:48]RasterBufferAndPrint [14:21:48]line Счет N : (1)871792 [14:21:48]line ИНН: 02508201610067 [14:21:48]line Контрольно-Кассовый Чек [14:21:48]line ПРОДАЖА [14:21:48]line ТРК (МРК, ГНК) : 54 [14:21:48]line Товар: 2710194210 [14:21:48]line ДТ(л)-К-4 [14:21:48]line 31.500 * 76.20 [14:21:48]line = 2400.30 [14:21:48]line НДС 12% НСП 1% [14:21:48]line > о реализуемом товаре [14:21:48]line ОКРУГЛЕНИЕ: -0.30 [14:21:48]line ИТОГО: 2400.00 [14:21:48]line Внесено: 2400.00 [14:21:48]line СДАЧА: 0.00 [14:21:48]line НСП 1% : 21.24 [14:21:48]line НДС 12% : 254.90 [14:21:48]line Наличными: 2400.00 [14:21:48]line Безнал.: 0.00 [14:21:48]line Место: АЗС № 137 "Партнер Нефть" [14:21:48]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:21:48]line СНО: Общий режим [14:21:48]line Чек 87 22.09.2024 14:21 [14:21:48]line Смена: 70 ФФД: 1.0 [14:21:48]line ЗНМ: 0300000041 [14:21:48]line РНМ: 0000000000190446 [14:21:48]line Версия ККМ: v1.0 [14:21:48]line ФМ: 0000000002094258 [14:21:48]line ФД: 7689 [14:21:48]line ФПД: 21449659788573 [14:21:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142148&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7689&fm=21449659788573&tin=02508201610067®Number=0000000000190446&sum=240000 [14:21:49]OFD Sender: Processing packet 7689 [packets to send 51, broken 50] [14:21:49]ProducePacketName [14:21:49]name=ofd_packets/00007689 [14:21:49]OFD Sender: To server: pG, [14:21:49]CommunicateWithHost lk.salyk.kg:30040 [14:21:49]ConnectInit lk.salyk.kg [14:21:49]written 0, free lines is 4095 [14:21:49]Write to MH i2c: 01 00 00 1C 02 1E [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: 01 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: 01 07 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 EA 0C 1B [14:21:49]RasterBufferAndPrint [14:21:49]line [14:21:49]line [14:21:49]line [14:21:49]line [14:21:49]line [14:21:49]written 0, free lines is 3312 [14:21:49]MH_Cut [14:21:49]Write to MH i2c: D1 01 00 23 02 01 F7 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: D1 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: D1 01 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: D1 01 00 23 02 00 F6 [14:21:49]Write to MH i2c: 01 00 00 24 02 26 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:50]Connected sock=9 [14:21:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 AA F1 08 01 20 FD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FC 27 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 09 1E 00 00 35 04 06 00 13 82 23 5A 2D 1D 51 76 BD B0 AB C5 29 3D [14:21:50]*** Cut start [14:21:50]*** Purtial cut [14:21:50]*** Stage 1: CUTSNS_PIN = 1 [14:21:50]Read from MH i2c: 01 [14:21:50]MH_I2C_Read... [14:21:50]*** Stop cut motor [14:21:50]*** Cut end [14:21:50]Read from MH i2c: 01 07 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [14:21:50]process_action close_receipt done [14:21:50]requested_data is exist [14:21:50]produce_requested_data [14:21:50]requested_item fm.sn is exist - process it [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 11 00 00 [14:21:50]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 17 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 F2 [14:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:21:50]wFMCommunicate OK [14:21:50]requested_item fd.num is exist - process it [14:21:50]SAM_PROTO_GetFieldsCounters [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 13 00 00 [14:21:50]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 62 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 09 1E 00 00 0E 04 04 00 46 00 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 34 [14:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 09 1E 00 00 0E 04 04 00 46 00 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 [14:21:50]wFMCommunicate OK [14:21:50]SAM_PROTO_GetFieldsCounters done [14:21:50]requested_item shift.num is exist - process it [14:21:50]requested_item shift.opened is exist - process it [14:21:50]req_shift_opened [14:21:50]FM_GetShiftState [14:21:50]SAM_PROTO_GetShiftState [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 13 01 00 [14:21:50]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 0E 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 69 [14:21:50]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:21:50]wFMCommunicate OK [14:21:50]SAM_PROTO_GetShiftState done [14:21:50]FM_GetShiftState done [14:21:50]req_shift_opened done [14:21:50]requested_item shift.open_date is exist - process it [14:21:50]req_shift_open_date [14:21:50]req_shift_open_date done [14:21:50]produce_requested_data done [14:21:50]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7689,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:21:50]process_action_free close_receipt [14:21:50]json_value_free [14:21:50]json_value_free done [14:21:50]process_json_proto returns [14:21:50]Send response to host [14:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7689,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:21:50]free response buf [14:21:50]execute_script done [14:21:50]execute_script returns [14:21:50]free content buf [14:21:50]Sock 7.Close socket [14:21:50]Sock 7.Thread stoped [14:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 13 79 47 00 C9 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 09 1E 00 00 F4 03 04 00 BB D2 EF 66 B6 04 01 00 00 07 F0 44 F8 88 CE 5C DA [14:21:51]CommunicateWithHost err = 0 [14:21:51]CheckOFDResponse [14:21:51]1017 (14) - 77093643461234 [14:21:51]1041 (16) - 0000000002094258 [14:21:51]1040 (4) - 7689 [14:21:51]1012 (4) - 22.09.2024 08:18 [14:21:51]1206 (1) - 0 [14:21:51]OFD Sender: Remove packet 7689 [14:21:51]ProducePacketName [14:21:51]name=ofd_packets/00007689 [14:21:51]NVStorageDeleteData [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:21:58]accept exits with 10 [14:21:58]New connection [14:21:58]New thread 3067059556 created [14:21:58]Thread 3067202916 joined [14:21:58]Waiting for new connection... [14:21:58] Sock 10.Parse request [14:21:58]Sock 10.Check first char [14:21:58]Sock 10.First char is OK [14:21:58]request: POST /json_proto HTTP/1.0 [14:21:58]Method: POST [14:21:58]URL: /json_proto [14:21:58]Method is POST - this is cgi request [14:21:58]url: /json_proto [14:21:58]query_string will be loaded in cgi processing [14:21:58]execute_cgi json_proto POST (null) [14:21:58]execute_cgi path=json_proto method=POST [14:21:58]POST find Content-Length [14:21:58]Host: 172.17.47.195:8080 [14:21:58]Content-Length: 687 [14:21:58]Content-Type: application/json [14:21:58] [14:21:58]POST finish read [14:21:58]Found Content-Length = 687 [14:21:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:58]execute_script... [14:21: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)871793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:58]POST & json_proto [14:21:58]process_json_proto [14:21:58]json parsed OK: [14:21:58]protocol is kg_v1.0 [14:21:58]action value=close_receipt [14:21:58]process_action close_receipt [14:21:58]cmd_close_receipt [14:21:58]MH_GetDate [14:21:58]Write to MH i2c: F0 00 00 28 02 19 [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: F0 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: F0 09 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: F0 09 00 28 02 00 07 28 F0 66 96 2E 95 66 66 [14:21:58]GetLastDocTimeStamp 1727014908 [14:21:58]current date 1727014919 [14:21:58]FM_GetShiftState [14:21:58]SAM_PROTO_GetShiftState [14:21:58]wFMCommunicate request_size=4 [14:21:58]MH_SAM_APDU [14:21:58]CAPDU: 80 13 01 00 [14:21:58]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:58]Read from MH i2c: E2 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 0E 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6B [14:21:58]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:21:58]wFMCommunicate OK [14:21:58]SAM_PROTO_GetShiftState done [14:21:58]FM_GetShiftState done [14:21:58]opened in 1726964224 [14:21:58]opened+sec_in_day 1727050624 [14:21:58]quantity*price = 150037 [14:21:58]sum+1 = 150039 [14:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 88 22.09.2024 14:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7690 ФПД: 43622412686161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142159&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7690&fm=43622412686161&tin=02508201610067®Number=0000000000190446&sum=150000 [14:21:59]StoreToDocumentArchive [14:21:59]shift 70 fd 7690 [14:21:59]save to /storage/0070/doc_00007690 [14:21:59]save last doc name /storage/0070/doc_00007690 to /storage/kkm_last_doc_name [14:21:59]save OK [14:21:59]Clear old archive folders... [14:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:21:59]tlvbuf is 00EEAB40 [14:21:59]SAM_PROTO_ClearQueue [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 09 00 00 [14:21:59]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_ClearQueue done [14:21:59]KKMCreateOFDPacket [14:21:59]OFDProtocolAddRootSTLVToBuf [14:21:59]FM_MakeSignedData [14:21:59]FM_MakeSignedData [14:21:59]SAM_PROTO_SignData [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 0D 01 02 [14:21:59]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]wFMCommunicate request_size=255 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 07 28 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0A 1E 00 00 35 04 06 00 [14:21:59]Write to MH i2c: E2 02 01 38 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 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 07 28 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0A 1E 00 00 35 04 06 00 00 00 DD [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]wFMCommunicate request_size=11 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 0D 02 02 06 27 AC A2 69 93 51 [14:21:59]Write to MH i2c: E2 0E 00 39 02 80 0D 02 02 06 00 27 AC A2 69 93 51 00 00 83 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 0D 03 02 [14:21:59]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0B 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0B 00 3A 02 00 A2 85 F7 F4 30 69 6A E7 90 00 B4 [14:21:59]RAPDU: A2 85 F7 F4 30 69 6A E7 90 00 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_SignData done [14:21:59]FM_MakeSignedData done [14:21:59]CreateOFDProtocolMessage [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 11 00 00 [14:21:59]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 17 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 08 [14:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:21:59]wFMCommunicate OK [14:21:59]CreateOFDProtocolMessage done [14:21:59]OFDSenderStorePacket 7690 [14:21:59]StoreOFDPacket docnum=7690 [14:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 37 2D 08 01 C7 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 07 28 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0A 1E 00 00 35 04 06 00 27 AC A2 69 93 51 A2 85 F7 F4 30 69 6A E7 [14:21:59]CheckFolder [14:21:59]dirname=/storage/ofd_packets [14:21:59]CheckFolder done [14:21:59]ProducePacketName [14:21:59]name=ofd_packets/00007690 [14:21:59]NVStorageSaveData ofd_packets/00007690 [14:21:59]File name is /storage/ofd_packets/00007690 [14:21:59]Write 302 bytes [14:21:59]NVStorageSaveData done [14:21:59]OFDSenderStorePacket done [14:21:59]KKMCreateOFDPacket done [14:21:59]NVStorageSaveData kkm_last_timestamp [14:21:59]File name is /storage/kkm_last_timestamp [14:21:59]Write 4 bytes [14:21:59]NVStorageSaveData done [14:21:59]ExternCall_PrintAddStr [14:21:59]wPrintStart [14:21:59]Write to MH i2c: 01 00 00 3C 02 3E [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: 01 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: 01 07 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [14:21:59]RasterBufferAndPrint [14:21:59]line Счет N : (1)871793 [14:21:59]line ИНН: 02508201610067 [14:21:59]line Контрольно-Кассовый Чек [14:21:59]line ПРОДАЖА [14:21:59]line ТРК (МРК, ГНК) : 34 [14:21:59]line Товар: 2710194210 [14:21:59]line ДТ(л)-К-4 [14:21:59]line 19.690 * 76.20 [14:21:59]line = 1500.38 [14:21:59]line НДС 12% НСП 1% [14:21:59]line > о реализуемом товаре [14:21:59]line ОКРУГЛЕНИЕ: -0.38 [14:21:59]line ИТОГО: 1500.00 [14:21:59]line Внесено: 1500.00 [14:21:59]line СДАЧА: 0.00 [14:21:59]line НСП 1% : 13.28 [14:21:59]line НДС 12% : 159.33 [14:21:59]line Наличными: 1500.00 [14:21:59]line Безнал.: 0.00 [14:21:59]line Место: АЗС № 137 "Партнер Нефть" [14:21:59]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:21:59]line СНО: Общий режим [14:21:59]line Чек 88 22.09.2024 14:21 [14:21:59]line Смена: 70 ФФД: 1.0 [14:21:59]line ЗНМ: 0300000041 [14:21:59]line РНМ: 0000000000190446 [14:21:59]line Версия ККМ: v1.0 [14:21:59]line ФМ: 0000000002094258 [14:21:59]line ФД: 7690 [14:21:59]line ФПД: 43622412686161 [14:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142159&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7690&fm=43622412686161&tin=02508201610067®Number=0000000000190446&sum=150000 [14:21:59]written 0, free lines is 4095 [14:22:00]OFD Sender: Processing packet 7690 [packets to send 51, broken 50] [14:22:00]ProducePacketName [14:22:00]name=ofd_packets/00007690 [14:22:00]OFD Sender: To server: pG, [14:22:00]CommunicateWithHost lk.salyk.kg:30040 [14:22:00]ConnectInit lk.salyk.kg [14:22:00]recv_with_timeout no data received [14:22:00]Write to MH i2c: 01 00 00 67 02 69 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 07 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 EF 0C 6B [14:22:00]RasterBufferAndPrint [14:22:00]line [14:22:00]line [14:22:00]line [14:22:00]line [14:22:00]line [14:22:00]written 0, free lines is 3323 [14:22:00]MH_Cut [14:22:00]Write to MH i2c: D1 01 00 6E 02 01 42 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: D1 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: D1 01 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: D1 01 00 6E 02 00 41 [14:22:00]Write to MH i2c: 01 00 00 6F 02 71 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:01]*** Cut start [14:22:01]*** Purtial cut [14:22:01]*** Stage 1: CUTSNS_PIN = 1 [14:22:01]Read from MH i2c: 01 [14:22:01]MH_I2C_Read... [14:22:01]*** Stop cut motor [14:22:01]*** Cut end [14:22:01]Read from MH i2c: 01 07 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [14:22:01]process_action close_receipt done [14:22:01]requested_data is exist [14:22:01]produce_requested_data [14:22:01]requested_item fm.sn is exist - process it [14:22:01]wFMCommunicate request_size=4 [14:22:01]MH_SAM_APDU [14:22:01]CAPDU: 80 11 00 00 [14:22:01]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 17 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 3D [14:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:22:01]wFMCommunicate OK [14:22:01]requested_item fd.num is exist - process it [14:22:01]SAM_PROTO_GetFieldsCounters [14:22:01]wFMCommunicate request_size=4 [14:22:01]MH_SAM_APDU [14:22:01]CAPDU: 80 13 00 00 [14:22:01]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 62 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 62 00 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0A 1E 00 00 0E 04 04 00 46 00 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 83 [14:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0A 1E 00 00 0E 04 04 00 46 00 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 [14:22:01]wFMCommunicate OK [14:22:01]SAM_PROTO_GetFieldsCounters done [14:22:01]requested_item shift.num is exist - process it [14:22:01]requested_item shift.opened is exist - process it [14:22:01]req_shift_opened [14:22:01]FM_GetShiftState [14:22:01]SAM_PROTO_GetShiftState [14:22:01]wFMCommunicate request_size=4 [14:22:01]MH_SAM_APDU [14:22:01]CAPDU: 80 13 01 00 [14:22:01]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 0E 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B4 [14:22:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:22:01]wFMCommunicate OK [14:22:01]SAM_PROTO_GetShiftState done [14:22:01]FM_GetShiftState done [14:22:01]req_shift_opened done [14:22:01]requested_item shift.open_date is exist - process it [14:22:01]req_shift_open_date [14:22:01]req_shift_open_date done [14:22:01]produce_requested_data done [14:22:01]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7690,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:22:01]process_action_free close_receipt [14:22:01]json_value_free [14:22:01]json_value_free done [14:22:01]process_json_proto returns [14:22:01]Send response to host [14:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7690,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:22:01]free response buf [14:22:01]execute_script done [14:22:01]execute_script returns [14:22:01]free content buf [14:22:01]Sock 10.Close socket [14:22:01]Sock 10.Thread stoped [14:22:05]ConnectInit Can't take IP for lk.salyk.kg [14:22:05]CommunicateWithHost connect error [14:22:05]CommunicateWithHost err = -1 [14:22:05]OFD Sender: Server communicate error [14:22:10]OFD Sender: Processing packet 7690 [packets to send 51, broken 50] [14:22:10]ProducePacketName [14:22:10]name=ofd_packets/00007690 [14:22:10]OFD Sender: To server: pG, [14:22:10]CommunicateWithHost lk.salyk.kg:30040 [14:22:10]ConnectInit lk.salyk.kg [14:22:11]recv_with_timeout no data received [14:22:12]Connected sock=10 [14:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 37 2D 08 01 C7 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 07 28 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0A 1E 00 00 35 04 06 00 27 AC A2 69 93 51 A2 85 F7 F4 30 69 6A E7 [14:22:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 FA 66 47 00 8E 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 32 30 39 34 32 35 38 10 04 04 00 0A 1E 00 00 F4 03 04 00 D2 D2 EF 66 B6 04 01 00 00 DA 26 EF 46 A8 7F 4E D3 [14:22:14]CommunicateWithHost err = 0 [14:22:14]CheckOFDResponse [14:22:14]1017 (14) - 77093643461234 [14:22:14]1041 (16) - 0000000002094258 [14:22:14]1040 (4) - 7690 [14:22:14]1012 (4) - 22.09.2024 08:18 [14:22:14]1206 (1) - 0 [14:22:14]OFD Sender: Remove packet 7690 [14:22:14]ProducePacketName [14:22:14]name=ofd_packets/00007690 [14:22:14]NVStorageDeleteData [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:23]recv_with_timeout no data received [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]recv_with_timeout no data received [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:55]recv_with_timeout no data received [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:33]accept exits with 9 [14:25:33]New connection [14:25:33]New thread 3067202916 created [14:25:33]Thread 3067059556 joined [14:25:33]Waiting for new connection... [14:25:33] Sock 9.Parse request [14:25:33]Sock 9.Check first char [14:25:33]Sock 9.First char is OK [14:25:33]request: POST /json_proto HTTP/1.0 [14:25:33]Method: POST [14:25:33]URL: /json_proto [14:25:33]Method is POST - this is cgi request [14:25:33]url: /json_proto [14:25:33]query_string will be loaded in cgi processing [14:25:33]execute_cgi json_proto POST (null) [14:25:33]execute_cgi path=json_proto method=POST [14:25:33]POST find Content-Length [14:25:33]Host: 172.17.47.195:8080 [14:25:33]Content-Length: 687 [14:25:33]Content-Type: application/json [14:25:33] [14:25:33]POST finish read [14:25:33]Found Content-Length = 687 [14:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:33]execute_script... [14:25: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)871794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:33]POST & json_proto [14:25:33]process_json_proto [14:25:33]json parsed OK: [14:25:33]protocol is kg_v1.0 [14:25:33]action value=close_receipt [14:25:33]process_action close_receipt [14:25:33]cmd_close_receipt [14:25:33]MH_GetDate [14:25:33]Write to MH i2c: F0 00 00 73 02 64 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: F0 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: F0 09 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: F0 09 00 73 02 00 DE 28 F0 66 96 2E 95 66 88 [14:25:33]GetLastDocTimeStamp 1727014919 [14:25:33]current date 1727015134 [14:25:33]FM_GetShiftState [14:25:33]SAM_PROTO_GetShiftState [14:25:33]wFMCommunicate request_size=4 [14:25:33]MH_SAM_APDU [14:25:33]CAPDU: 80 13 01 00 [14:25:33]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 0E 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B6 [14:25:33]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:25:33]wFMCommunicate OK [14:25:33]SAM_PROTO_GetShiftState done [14:25:33]FM_GetShiftState done [14:25:33]opened in 1726964224 [14:25:33]opened+sec_in_day 1727050624 [14:25:33]quantity*price = 120015 [14:25:33]sum+1 = 120016 [14:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 89 22.09.2024 14:25 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7691 ФПД: 137600471481216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142534&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7691&fm=137600471481216&tin=02508201610067®Number=0000000000190446&sum=120000 [14:25:34]StoreToDocumentArchive [14:25:34]shift 70 fd 7691 [14:25:34]save to /storage/0070/doc_00007691 [14:25:34]save last doc name /storage/0070/doc_00007691 to /storage/kkm_last_doc_name [14:25:34]save OK [14:25:34]Clear old archive folders... [14:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:25:34]tlvbuf is 00EF8530 [14:25:34]SAM_PROTO_ClearQueue [14:25:34]wFMCommunicate request_size=4 [14:25:34]MH_SAM_APDU [14:25:34]CAPDU: 80 09 00 00 [14:25:34]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [14:25:34]Write i2c OK [14:25:34]MH_I2C_Read... [14:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:34]Read from MH i2c: E2 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: E2 03 00 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [14:25:34]RAPDU: 90 00 [14:25:34]wFMCommunicate OK [14:25:34]SAM_PROTO_ClearQueue done [14:25:34]KKMCreateOFDPacket [14:25:34]OFDProtocolAddRootSTLVToBuf [14:25:34]FM_MakeSignedData [14:25:34]FM_MakeSignedData [14:25:34]SAM_PROTO_SignData [14:25:34]wFMCommunicate request_size=4 [14:25:34]MH_SAM_APDU [14:25:34]CAPDU: 80 0D 01 02 [14:25:34]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [14:25:34]Write i2c OK [14:25:34]MH_I2C_Read... [14:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:34]Read from MH i2c: E2 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: E2 03 00 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [14:25:34]RAPDU: 90 00 [14:25:34]wFMCommunicate OK [14:25:34]wFMCommunicate request_size=255 [14:25:34]MH_SAM_APDU [14:25:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DE 28 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0B 1E 00 00 35 04 06 00 [14:25:34]Write to MH i2c: E2 02 01 83 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 34 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DE 28 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0B 1E 00 00 35 04 06 00 00 00 F8 [14:25:34]Write i2c OK [14:25:34]MH_I2C_Read... [14:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:34]Read from MH i2c: E2 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: E2 03 00 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [14:25:34]RAPDU: 90 00 [14:25:34]wFMCommunicate OK [14:25:34]wFMCommunicate request_size=11 [14:25:34]MH_SAM_APDU [14:25:34]CAPDU: 80 0D 02 02 06 7D 25 9B 39 3B 80 [14:25:34]Write to MH i2c: E2 0E 00 84 02 80 0D 02 02 06 00 7D 25 9B 39 3B 80 00 00 3D [14:25:34]Write i2c OK [14:25:34]MH_I2C_Read... [14:25:34]OFD Sender: No OFD packet to send [14:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:35]Read from MH i2c: E2 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 03 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [14:25:35]RAPDU: 90 00 [14:25:35]wFMCommunicate OK [14:25:35]wFMCommunicate request_size=4 [14:25:35]MH_SAM_APDU [14:25:35]CAPDU: 80 0D 03 02 [14:25:35]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:35]Read from MH i2c: E2 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 0B 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 0B 00 85 02 00 C7 C6 E5 B3 CC 97 AA 25 90 00 5A [14:25:35]RAPDU: C7 C6 E5 B3 CC 97 AA 25 90 00 [14:25:35]wFMCommunicate OK [14:25:35]SAM_PROTO_SignData done [14:25:35]FM_MakeSignedData done [14:25:35]CreateOFDProtocolMessage [14:25:35]wFMCommunicate request_size=4 [14:25:35]MH_SAM_APDU [14:25:35]CAPDU: 80 11 00 00 [14:25:35]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:35]Read from MH i2c: E2 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 17 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 53 [14:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:25:35]wFMCommunicate OK [14:25:35]CreateOFDProtocolMessage done [14:25:35]OFDSenderStorePacket 7691 [14:25:35]StoreOFDPacket docnum=7691 [14:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 03 31 08 01 5B 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DE 28 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0B 1E 00 00 35 04 06 00 7D 25 9B 39 3B 80 C7 C6 E5 B3 CC 97 AA 25 [14:25:35]CheckFolder [14:25:35]dirname=/storage/ofd_packets [14:25:35]CheckFolder done [14:25:35]ProducePacketName [14:25:35]name=ofd_packets/00007691 [14:25:35]NVStorageSaveData ofd_packets/00007691 [14:25:35]File name is /storage/ofd_packets/00007691 [14:25:35]Write 302 bytes [14:25:35]NVStorageSaveData done [14:25:35]OFDSenderStorePacket done [14:25:35]KKMCreateOFDPacket done [14:25:35]NVStorageSaveData kkm_last_timestamp [14:25:35]File name is /storage/kkm_last_timestamp [14:25:35]Write 4 bytes [14:25:35]NVStorageSaveData done [14:25:35]ExternCall_PrintAddStr [14:25:35]wPrintStart [14:25:35]Write to MH i2c: 01 00 00 87 02 89 [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: 01 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: 01 07 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [14:25:35]RasterBufferAndPrint [14:25:35]line Счет N : (1)871794 [14:25:35]line ИНН: 02508201610067 [14:25:35]line Контрольно-Кассовый Чек [14:25:35]line ПРОДАЖА [14:25:35]line ТРК (МРК, ГНК) : 54 [14:25:35]line Товар: 2710194210 [14:25:35]line ДТ(л)-К-4 [14:25:35]line 15.750 * 76.20 [14:25:35]line = 1200.15 [14:25:35]line НДС 12% НСП 1% [14:25:35]line > о реализуемом товаре [14:25:35]line ОКРУГЛЕНИЕ: -0.15 [14:25:35]line ИТОГО: 1200.00 [14:25:35]line Внесено: 1200.00 [14:25:35]line СДАЧА: 0.00 [14:25:35]line НСП 1% : 10.62 [14:25:35]line НДС 12% : 127.45 [14:25:35]line Наличными: 1200.00 [14:25:35]line Безнал.: 0.00 [14:25:35]line Место: АЗС № 137 "Партнер Нефть" [14:25:35]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:25:35]line СНО: Общий режим [14:25:35]line Чек 89 22.09.2024 14:25 [14:25:35]line Смена: 70 ФФД: 1.0 [14:25:35]line ЗНМ: 0300000041 [14:25:35]line РНМ: 0000000000190446 [14:25:35]line Версия ККМ: v1.0 [14:25:35]line ФМ: 0000000002094258 [14:25:35]line ФД: 7691 [14:25:35]line ФПД: 137600471481216 [14:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142534&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7691&fm=137600471481216&tin=02508201610067®Number=0000000000190446&sum=120000 [14:25:35]OFD Sender: Processing packet 7691 [packets to send 51, broken 50] [14:25:35]ProducePacketName [14:25:35]name=ofd_packets/00007691 [14:25:35]OFD Sender: To server: pG, [14:25:35]CommunicateWithHost lk.salyk.kg:30040 [14:25:35]ConnectInit lk.salyk.kg [14:25:35]written 0, free lines is 4095 [14:25:35]Connected sock=10 [14:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 03 31 08 01 5B 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DE 28 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0B 1E 00 00 35 04 06 00 7D 25 9B 39 3B 80 C7 C6 E5 B3 CC 97 AA 25 [14:25:35]Write to MH i2c: 01 00 00 B2 02 B4 [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: 01 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: 01 07 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 F3 0C BA [14:25:35]RasterBufferAndPrint [14:25:35]line [14:25:35]line [14:25:35]line [14:25:35]line [14:25:35]line [14:25:35]written 0, free lines is 3321 [14:25:35]MH_Cut [14:25:35]Write to MH i2c: D1 01 00 B9 02 01 8D [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: D1 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: D1 01 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: D1 01 00 B9 02 00 8C [14:25:35]Write to MH i2c: 01 00 00 BA 02 BC [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:36]*** Cut start [14:25:36]*** Purtial cut [14:25:36]*** Stage 1: CUTSNS_PIN = 1 [14:25:36]Read from MH i2c: 01 [14:25:36]MH_I2C_Read... [14:25:36]*** Stop cut motor [14:25:36]Read from MH i2c: 01 07 00 [14:25:36]MH_I2C_Read... [14:25:36]*** Cut end [14:25:36]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [14:25:36]process_action close_receipt done [14:25:36]requested_data is exist [14:25:36]produce_requested_data [14:25:36]requested_item fm.sn is exist - process it [14:25:36]wFMCommunicate request_size=4 [14:25:36]MH_SAM_APDU [14:25:36]CAPDU: 80 11 00 00 [14:25:36]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [14:25:36]Write i2c OK [14:25:36]MH_I2C_Read... [14:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:36]Read from MH i2c: E2 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 17 00 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 88 [14:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:25:36]wFMCommunicate OK [14:25:36]requested_item fd.num is exist - process it [14:25:36]SAM_PROTO_GetFieldsCounters [14:25:36]wFMCommunicate request_size=4 [14:25:36]MH_SAM_APDU [14:25:36]CAPDU: 80 13 00 00 [14:25:36]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [14:25:36]Write i2c OK [14:25:36]MH_I2C_Read... [14:25:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 B4 33 47 00 01 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0B 1E 00 00 F4 03 04 00 9D D3 EF 66 B6 04 01 00 00 74 F2 65 89 F9 1F BC 2D [14:25:37]CommunicateWithHost err = 0 [14:25:37]CheckOFDResponse [14:25:37]1017 (14) - 77093643461234 [14:25:37]1041 (16) - 0000000002094258 [14:25:37]1040 (4) - 7691 [14:25:37]1012 (4) - 22.09.2024 08:21 [14:25:37]1206 (1) - 0 [14:25:37]OFD Sender: Remove packet 7691 [14:25:37]ProducePacketName [14:25:37]name=ofd_packets/00007691 [14:25:37]NVStorageDeleteData [14:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 62 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 62 00 BC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0B 1E 00 00 0E 04 04 00 46 00 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 D2 [14:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0B 1E 00 00 0E 04 04 00 46 00 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 [14:25:37]wFMCommunicate OK [14:25:37]SAM_PROTO_GetFieldsCounters done [14:25:37]requested_item shift.num is exist - process it [14:25:37]requested_item shift.opened is exist - process it [14:25:37]req_shift_opened [14:25:37]FM_GetShiftState [14:25:37]SAM_PROTO_GetShiftState [14:25:37]wFMCommunicate request_size=4 [14:25:37]MH_SAM_APDU [14:25:37]CAPDU: 80 13 01 00 [14:25:37]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 0E 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 FF [14:25:37]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:25:37]wFMCommunicate OK [14:25:37]SAM_PROTO_GetShiftState done [14:25:37]FM_GetShiftState done [14:25:37]req_shift_opened done [14:25:37]requested_item shift.open_date is exist - process it [14:25:37]req_shift_open_date [14:25:37]req_shift_open_date done [14:25:37]produce_requested_data done [14:25:37]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7691,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:25:37]process_action_free close_receipt [14:25:37]json_value_free [14:25:37]json_value_free done [14:25:37]process_json_proto returns [14:25:37]Send response to host [14:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7691,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:25:37]free response buf [14:25:37]execute_script done [14:25:37]execute_script returns [14:25:37]free content buf [14:25:37]Sock 9.Close socket [14:25:37]Sock 9.Thread stoped [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:50]recv_with_timeout no data received [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:45]recv_with_timeout no data received [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:02]accept exits with 7 [14:27:02]New connection [14:27:02]New thread 3067059556 created [14:27:02]Thread 3067202916 joined [14:27:02]Waiting for new connection... [14:27:02] Sock 7.Parse request [14:27:02]Sock 7.Check first char [14:27:02]Sock 7.First char is OK [14:27:02]request: POST /json_proto HTTP/1.0 [14:27:02]Method: POST [14:27:02]URL: /json_proto [14:27:02]Method is POST - this is cgi request [14:27:02]url: /json_proto [14:27:02]query_string will be loaded in cgi processing [14:27:02]execute_cgi json_proto POST (null) [14:27:02]execute_cgi path=json_proto method=POST [14:27:02]POST find Content-Length [14:27:02]Host: 172.17.47.195:8080 [14:27:02]Content-Length: 677 [14:27:02]Content-Type: application/json [14:27:02] [14:27:02]POST finish read [14:27:02]Found Content-Length = 677 [14:27:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:02]execute_script... [14:27:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:02]POST & json_proto [14:27:02]process_json_proto [14:27:02]json parsed OK: [14:27:02]protocol is kg_v1.0 [14:27:02]action value=close_receipt [14:27:02]process_action close_receipt [14:27:02]cmd_close_receipt [14:27:02]MH_GetDate [14:27:02]Write to MH i2c: F0 00 00 BE 02 AF [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: F0 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: F0 09 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: F0 09 00 BE 02 00 37 29 F0 66 96 2E 95 66 2D [14:27:02]GetLastDocTimeStamp 1727015134 [14:27:02]current date 1727015223 [14:27:02]FM_GetShiftState [14:27:02]SAM_PROTO_GetShiftState [14:27:02]wFMCommunicate request_size=4 [14:27:02]MH_SAM_APDU [14:27:02]CAPDU: 80 13 01 00 [14:27:02]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:02]Read from MH i2c: E2 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 0E 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 01 [14:27:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:27:02]wFMCommunicate OK [14:27:02]SAM_PROTO_GetShiftState done [14:27:02]FM_GetShiftState done [14:27:02]opened in 1726964224 [14:27:02]opened+sec_in_day 1727050624 [14:27:02]quantity*price = 35052 [14:27:02]sum+1 = 35054 [14:27:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 90 22.09.2024 14:27 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7692 ФПД: 117625388074753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142703&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7692&fm=117625388074753&tin=02508201610067®Number=0000000000190446&sum=35000 [14:27:04]StoreToDocumentArchive [14:27:04]shift 70 fd 7692 [14:27:04]save to /storage/0070/doc_00007692 [14:27:04]save last doc name /storage/0070/doc_00007692 to /storage/kkm_last_doc_name [14:27:04]save OK [14:27:04]Clear old archive folders... [14:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:04]tlvbuf is 00EF9300 [14:27:04]SAM_PROTO_ClearQueue [14:27:04]wFMCommunicate request_size=4 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 09 00 00 [14:27:04]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [14:27:04]RAPDU: 90 00 [14:27:04]wFMCommunicate OK [14:27:04]SAM_PROTO_ClearQueue done [14:27:04]KKMCreateOFDPacket [14:27:04]OFDProtocolAddRootSTLVToBuf [14:27:04]FM_MakeSignedData [14:27:04]FM_MakeSignedData [14:27:04]SAM_PROTO_SignData [14:27:04]wFMCommunicate request_size=4 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 0D 01 02 [14:27:04]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [14:27:04]RAPDU: 90 00 [14:27:04]wFMCommunicate OK [14:27:04]wFMCommunicate request_size=255 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 37 29 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0C 1E 00 00 35 04 06 00 6A [14:27:04]Write to MH i2c: E2 02 01 CE 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 37 29 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0C 1E 00 00 35 04 06 00 6A 00 00 D9 [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [14:27:04]RAPDU: 90 00 [14:27:04]wFMCommunicate OK [14:27:04]wFMCommunicate request_size=10 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 0D 02 02 05 FA CB 79 07 01 [14:27:04]Write to MH i2c: E2 0D 00 CF 02 80 0D 02 02 05 00 FA CB 79 07 01 00 00 9B [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [14:27:04]RAPDU: 90 00 [14:27:04]wFMCommunicate OK [14:27:04]wFMCommunicate request_size=4 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 0D 03 02 [14:27:04]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 0B 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 0B 00 D0 02 00 1D 43 E0 29 E7 0F D5 9D 90 00 1F [14:27:04]RAPDU: 1D 43 E0 29 E7 0F D5 9D 90 00 [14:27:04]wFMCommunicate OK [14:27:04]SAM_PROTO_SignData done [14:27:04]FM_MakeSignedData done [14:27:04]CreateOFDProtocolMessage [14:27:04]wFMCommunicate request_size=4 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 11 00 00 [14:27:04]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 17 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 9E [14:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:27:04]wFMCommunicate OK [14:27:04]CreateOFDProtocolMessage done [14:27:04]OFDSenderStorePacket 7692 [14:27:04]StoreOFDPacket docnum=7692 [14:27:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 44 D4 07 01 EE 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 37 29 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0C 1E 00 00 35 04 06 00 6A FA CB 79 07 01 1D 43 E0 29 E7 0F D5 9D [14:27:04]CheckFolder [14:27:04]dirname=/storage/ofd_packets [14:27:04]CheckFolder done [14:27:04]ProducePacketName [14:27:04]name=ofd_packets/00007692 [14:27:04]NVStorageSaveData ofd_packets/00007692 [14:27:04]File name is /storage/ofd_packets/00007692 [14:27:04]Write 301 bytes [14:27:04]NVStorageSaveData done [14:27:04]OFDSenderStorePacket done [14:27:04]KKMCreateOFDPacket done [14:27:04]NVStorageSaveData kkm_last_timestamp [14:27:04]File name is /storage/kkm_last_timestamp [14:27:04]Write 4 bytes [14:27:04]NVStorageSaveData done [14:27:04]ExternCall_PrintAddStr [14:27:04]wPrintStart [14:27:04]Write to MH i2c: 01 00 00 D2 02 D4 [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 07 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [14:27:04]RasterBufferAndPrint [14:27:04]line Счет N : (1)871795 [14:27:04]line ИНН: 02508201610067 [14:27:04]line Контрольно-Кассовый Чек [14:27:04]line ПРОДАЖА [14:27:04]line ТРК (МРК, ГНК) : 33 [14:27:04]line Товар: 2710124130 [14:27:04]line Аи-92-К-5 [14:27:04]line 5.170 * 67.80 [14:27:04]line = 350.53 [14:27:04]line НДС 12% НСП 1% [14:27:04]line > о реализуемом товаре [14:27:04]line ОКРУГЛЕНИЕ: -0.53 [14:27:04]line ИТОГО: 350.00 [14:27:04]line Внесено: 350.00 [14:27:04]line СДАЧА: 0.00 [14:27:04]line НСП 1% : 3.10 [14:27:04]line НДС 12% : 37.22 [14:27:04]line Наличными: 350.00 [14:27:04]line Безнал.: 0.00 [14:27:04]line Место: АЗС № 137 "Партнер Нефть" [14:27:04]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:27:04]line СНО: Общий режим [14:27:04]line Чек 90 22.09.2024 14:27 [14:27:04]line Смена: 70 ФФД: 1.0 [14:27:04]line ЗНМ: 0300000041 [14:27:04]line РНМ: 0000000000190446 [14:27:04]line Версия ККМ: v1.0 [14:27:04]line ФМ: 0000000002094258 [14:27:04]line ФД: 7692 [14:27:04]line ФПД: 117625388074753 [14:27:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142703&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7692&fm=117625388074753&tin=02508201610067®Number=0000000000190446&sum=35000 [14:27:04]OFD Sender: Processing packet 7692 [packets to send 51, broken 50] [14:27:04]ProducePacketName [14:27:04]name=ofd_packets/00007692 [14:27:04]OFD Sender: To server: pG, [14:27:04]CommunicateWithHost lk.salyk.kg:30040 [14:27:04]ConnectInit lk.salyk.kg [14:27:04]written 0, free lines is 4095 [14:27:05]Connected sock=10 [14:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 44 D4 07 01 EE 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 37 29 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0C 1E 00 00 35 04 06 00 6A FA CB 79 07 01 1D 43 E0 29 E7 0F D5 9D [14:27:05]Write to MH i2c: 01 00 00 FD 02 FF [14:27:05]Write i2c OK [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: 01 [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: 01 07 00 [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 F4 0C 06 [14:27:05]RasterBufferAndPrint [14:27:05]line [14:27:05]line [14:27:05]line [14:27:05]line [14:27:05]line [14:27:05]written 0, free lines is 3322 [14:27:05]MH_Cut [14:27:05]Write to MH i2c: D1 01 00 04 03 01 D9 [14:27:05]Write i2c OK [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: D1 [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: D1 01 00 [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: D1 01 00 04 03 00 D8 [14:27:05]Write to MH i2c: 01 00 00 05 03 08 [14:27:05]Write i2c OK [14:27:05]MH_I2C_Read... [14:27:06]*** Cut start [14:27:06]*** Purtial cut [14:27:06]*** Stage 1: CUTSNS_PIN = 1 [14:27:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 DE 65 47 00 5C F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0C 1E 00 00 F4 03 04 00 F6 D3 EF 66 B6 04 01 00 00 83 D1 EC 62 27 3B 5F CD [14:27:06]CommunicateWithHost err = 0 [14:27:06]CheckOFDResponse [14:27:06]1017 (14) - 77093643461234 [14:27:06]1041 (16) - 0000000002094258 [14:27:06]1040 (4) - 7692 [14:27:06]1012 (4) - 22.09.2024 08:23 [14:27:06]1206 (1) - 0 [14:27:06]OFD Sender: Remove packet 7692 [14:27:06]ProducePacketName [14:27:06]name=ofd_packets/00007692 [14:27:06]NVStorageDeleteData [14:27:06]Read from MH i2c: 01 [14:27:06]MH_I2C_Read... [14:27:06]*** Stop cut motor [14:27:06]*** Cut end [14:27:06]Read from MH i2c: 01 07 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [14:27:06]process_action close_receipt done [14:27:06]requested_data is exist [14:27:06]produce_requested_data [14:27:06]requested_item fm.sn is exist - process it [14:27:06]wFMCommunicate request_size=4 [14:27:06]MH_SAM_APDU [14:27:06]CAPDU: 80 11 00 00 [14:27:06]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:06]Read from MH i2c: E2 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 17 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D4 [14:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:27:06]wFMCommunicate OK [14:27:06]requested_item fd.num is exist - process it [14:27:06]SAM_PROTO_GetFieldsCounters [14:27:06]wFMCommunicate request_size=4 [14:27:06]MH_SAM_APDU [14:27:06]CAPDU: 80 13 00 00 [14:27:06]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:06]Read from MH i2c: E2 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 62 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0C 1E 00 00 0E 04 04 00 46 00 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 22 [14:27:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0C 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:06]wFMCommunicate OK [14:27:06]SAM_PROTO_GetFieldsCounters done [14:27:06]requested_item shift.num is exist - process it [14:27:06]requested_item shift.opened is exist - process it [14:27:06]req_shift_opened [14:27:06]FM_GetShiftState [14:27:06]SAM_PROTO_GetShiftState [14:27:06]wFMCommunicate request_size=4 [14:27:06]MH_SAM_APDU [14:27:06]CAPDU: 80 13 01 00 [14:27:06]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 [14:27:06]MH_I2C_Read... [14:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:06]Read from MH i2c: E2 0E 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 4B [14:27:06]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:27:06]wFMCommunicate OK [14:27:06]SAM_PROTO_GetShiftState done [14:27:06]FM_GetShiftState done [14:27:06]req_shift_opened done [14:27:06]requested_item shift.open_date is exist - process it [14:27:06]req_shift_open_date [14:27:06]req_shift_open_date done [14:27:06]produce_requested_data done [14:27:06]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7692,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:27:06]process_action_free close_receipt [14:27:06]json_value_free [14:27:06]json_value_free done [14:27:06]process_json_proto returns [14:27:06]Send response to host [14:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7692,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:27:06]free response buf [14:27:06]execute_script done [14:27:06]execute_script returns [14:27:06]free content buf [14:27:06]Sock 7.Close socket [14:27:06]Sock 7.Thread stoped [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:19]recv_with_timeout no data received [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [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]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]accept exits with 9 [14:28:21]New connection [14:28:21]New thread 3067202916 created [14:28:21]Thread 3067059556 joined [14:28:21]Waiting for new connection... [14:28:21] Sock 9.Parse request [14:28:21]Sock 9.Check first char [14:28:21]Sock 9.First char is OK [14:28:21]request: POST /json_proto HTTP/1.0 [14:28:21]Method: POST [14:28:21]URL: /json_proto [14:28:21]Method is POST - this is cgi request [14:28:21]url: /json_proto [14:28:21]query_string will be loaded in cgi processing [14:28:21]execute_cgi json_proto POST (null) [14:28:21]execute_cgi path=json_proto method=POST [14:28:21]POST find Content-Length [14:28:21]Host: 172.17.47.195:8080 [14:28:21]Content-Length: 682 [14:28:21]Content-Type: application/json [14:28:21] [14:28:21]POST finish read [14:28:21]Found Content-Length = 682 [14:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:21]execute_script... [14: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)871796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:21]POST & json_proto [14:28:21]process_json_proto [14:28:21]json parsed OK: [14:28:21]protocol is kg_v1.0 [14:28:21]action value=close_receipt [14:28:21]process_action close_receipt [14:28:21]cmd_close_receipt [14:28:21]MH_GetDate [14:28:21]Write to MH i2c: F0 00 00 09 03 FB [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: F0 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: F0 09 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: F0 09 00 09 03 00 86 29 F0 66 96 2E 95 66 C8 [14:28:21]GetLastDocTimeStamp 1727015223 [14:28:21]current date 1727015302 [14:28:21]FM_GetShiftState [14:28:21]SAM_PROTO_GetShiftState [14:28:21]wFMCommunicate request_size=4 [14:28:21]MH_SAM_APDU [14:28:21]CAPDU: 80 13 01 00 [14:28:21]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:21]Read from MH i2c: E2 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 0E 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 4D [14:28:21]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:28:21]wFMCommunicate OK [14:28:21]SAM_PROTO_GetShiftState done [14:28:21]FM_GetShiftState done [14:28:21]opened in 1726964224 [14:28:21]opened+sec_in_day 1727050624 [14:28:21]quantity*price = 100005 [14:28:21]sum+1 = 100006 [14:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 91 22.09.2024 14:28 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7693 ФПД: 191574168008515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142822&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7693&fm=191574168008515&tin=02508201610067®Number=0000000000190446&sum=100000 [14:28:22]StoreToDocumentArchive [14:28:22]shift 70 fd 7693 [14:28:22]save to /storage/0070/doc_00007693 [14:28:22]save last doc name /storage/0070/doc_00007693 to /storage/kkm_last_doc_name [14:28:22]save OK [14:28:22]Clear old archive folders... [14:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:22]tlvbuf is 00F69B60 [14:28:22]SAM_PROTO_ClearQueue [14:28:22]wFMCommunicate request_size=4 [14:28:22]MH_SAM_APDU [14:28:22]CAPDU: 80 09 00 00 [14:28:22]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [14:28:22]Write i2c OK [14:28:22]MH_I2C_Read... [14:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:22]Read from MH i2c: E2 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 03 00 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [14:28:22]RAPDU: 90 00 [14:28:22]wFMCommunicate OK [14:28:22]SAM_PROTO_ClearQueue done [14:28:22]KKMCreateOFDPacket [14:28:22]OFDProtocolAddRootSTLVToBuf [14:28:22]FM_MakeSignedData [14:28:22]FM_MakeSignedData [14:28:22]SAM_PROTO_SignData [14:28:22]wFMCommunicate request_size=4 [14:28:22]MH_SAM_APDU [14:28:22]CAPDU: 80 0D 01 02 [14:28:22]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [14:28:22]Write i2c OK [14:28:22]MH_I2C_Read... [14:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:22]Read from MH i2c: E2 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 03 00 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [14:28:22]RAPDU: 90 00 [14:28:22]wFMCommunicate OK [14:28:22]wFMCommunicate request_size=255 [14:28:22]MH_SAM_APDU [14: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 86 29 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0D 1E 00 00 35 04 06 00 AE [14:28:22]Write to MH i2c: E2 02 01 19 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 86 29 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0D 1E 00 00 35 04 06 00 AE 00 00 1E [14:28:22]Write i2c OK [14:28:22]MH_I2C_Read... [14:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:23]Read from MH i2c: E2 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 03 00 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [14:28:23]RAPDU: 90 00 [14:28:23]wFMCommunicate OK [14:28:23]wFMCommunicate request_size=10 [14:28:23]MH_SAM_APDU [14:28:23]CAPDU: 80 0D 02 02 05 3C 56 3B 77 43 [14:28:23]Write to MH i2c: E2 0D 00 1A 03 80 0D 02 02 05 00 3C 56 3B 77 43 00 00 28 [14:28:23]Write i2c OK [14:28:23]MH_I2C_Read... [14:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:23]Read from MH i2c: E2 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 03 00 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [14:28:23]RAPDU: 90 00 [14:28:23]wFMCommunicate OK [14:28:23]wFMCommunicate request_size=4 [14:28:23]MH_SAM_APDU [14:28:23]CAPDU: 80 0D 03 02 [14:28:23]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [14:28:23]Write i2c OK [14:28:23]MH_I2C_Read... [14:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:23]Read from MH i2c: E2 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 0B 00 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 0B 00 1B 03 00 14 1D 19 96 33 ED 05 A4 90 00 43 [14:28:23]RAPDU: 14 1D 19 96 33 ED 05 A4 90 00 [14:28:23]wFMCommunicate OK [14:28:23]SAM_PROTO_SignData done [14:28:23]FM_MakeSignedData done [14:28:23]CreateOFDProtocolMessage [14:28:23]wFMCommunicate request_size=4 [14:28:23]MH_SAM_APDU [14:28:23]CAPDU: 80 11 00 00 [14:28:23]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [14:28:23]Write i2c OK [14:28:23]MH_I2C_Read... [14:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:23]Read from MH i2c: E2 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 17 00 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 EA [14:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:28:23]wFMCommunicate OK [14:28:23]CreateOFDProtocolMessage done [14:28:23]OFDSenderStorePacket 7693 [14:28:23]StoreOFDPacket docnum=7693 [14:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E0 EF 07 01 31 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 86 29 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0D 1E 00 00 35 04 06 00 AE 3C 56 3B 77 43 14 1D 19 96 33 ED 05 A4 [14:28:23]CheckFolder [14:28:23]dirname=/storage/ofd_packets [14:28:23]CheckFolder done [14:28:23]ProducePacketName [14:28:23]name=ofd_packets/00007693 [14:28:23]NVStorageSaveData ofd_packets/00007693 [14:28:23]File name is /storage/ofd_packets/00007693 [14:28:23]Write 301 bytes [14:28:23]NVStorageSaveData done [14:28:23]OFDSenderStorePacket done [14:28:23]KKMCreateOFDPacket done [14:28:23]NVStorageSaveData kkm_last_timestamp [14:28:23]File name is /storage/kkm_last_timestamp [14:28:23]Write 4 bytes [14:28:23]NVStorageSaveData done [14:28:23]ExternCall_PrintAddStr [14:28:23]wPrintStart [14:28:23]Write to MH i2c: 01 00 00 1D 03 20 [14:28:23]Write i2c OK [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: 01 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: 01 07 00 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [14:28:23]RasterBufferAndPrint [14:28:23]line Счет N : (1)871796 [14:28:23]line ИНН: 02508201610067 [14:28:23]line Контрольно-Кассовый Чек [14:28:23]line ПРОДАЖА [14:28:23]line ТРК (МРК, ГНК) : 43 [14:28:23]line Товар: 2710124130 [14:28:23]line Аи-92-К-5 [14:28:23]line 14.750 * 67.80 [14:28:23]line = 1000.05 [14:28:23]line НДС 12% НСП 1% [14:28:23]line > о реализуемом товаре [14:28:23]line ОКРУГЛЕНИЕ: -0.05 [14:28:23]line ИТОГО: 1000.00 [14:28:23]line Внесено: 1000.00 [14:28:23]line СДАЧА: 0.00 [14:28:23]line НСП 1% : 8.85 [14:28:23]line НДС 12% : 106.20 [14:28:23]line Наличными: 1000.00 [14:28:23]line Безнал.: 0.00 [14:28:23]line Место: АЗС № 137 "Партнер Нефть" [14:28:23]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:28:23]line СНО: Общий режим [14:28:23]line Чек 91 22.09.2024 14:28 [14:28:23]line Смена: 70 ФФД: 1.0 [14:28:23]line ЗНМ: 0300000041 [14:28:23]line РНМ: 0000000000190446 [14:28:23]line Версия ККМ: v1.0 [14:28:23]line ФМ: 0000000002094258 [14:28:23]line ФД: 7693 [14:28:23]line ФПД: 191574168008515 [14:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142822&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7693&fm=191574168008515&tin=02508201610067®Number=0000000000190446&sum=100000 [14:28:23]OFD Sender: Processing packet 7693 [packets to send 51, broken 50] [14:28:23]ProducePacketName [14:28:23]name=ofd_packets/00007693 [14:28:23]OFD Sender: To server: pG, [14:28:23]CommunicateWithHost lk.salyk.kg:30040 [14:28:23]ConnectInit lk.salyk.kg [14:28:23]written 0, free lines is 4095 [14:28:24]Write to MH i2c: 01 00 00 48 03 4B [14:28:24]Write i2c OK [14:28:24]MH_I2C_Read... [14:28:24]Read from MH i2c: 01 [14:28:24]MH_I2C_Read... [14:28:24]Read from MH i2c: 01 07 00 [14:28:24]MH_I2C_Read... [14:28:24]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 E9 0C 47 [14:28:24]RasterBufferAndPrint [14:28:24]line [14:28:24]line [14:28:24]line [14:28:24]line [14:28:24]line [14:28:24]written 0, free lines is 3311 [14:28:24]MH_Cut [14:28:24]Write to MH i2c: D1 01 00 4F 03 01 24 [14:28:24]Write i2c OK [14:28:24]MH_I2C_Read... [14:28:24]Read from MH i2c: D1 [14:28:24]MH_I2C_Read... [14:28:24]Read from MH i2c: D1 01 00 [14:28:24]MH_I2C_Read... [14:28:24]Read from MH i2c: D1 01 00 4F 03 00 23 [14:28:24]Write to MH i2c: 01 00 00 50 03 53 [14:28:24]Write i2c OK [14:28:24]MH_I2C_Read... [14:28:24]recv_with_timeout no data received [14:28:24]*** Cut start [14:28:24]*** Purtial cut [14:28:24]*** Stage 1: CUTSNS_PIN = 1 [14:28:25]Read from MH i2c: 01 [14:28:25]MH_I2C_Read... [14:28:25]*** Stop cut motor [14:28:25]*** Cut end [14:28:25]Read from MH i2c: 01 07 00 [14:28:25]MH_I2C_Read... [14:28:25]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [14:28:25]process_action close_receipt done [14:28:25]requested_data is exist [14:28:25]produce_requested_data [14:28:25]requested_item fm.sn is exist - process it [14:28:25]wFMCommunicate request_size=4 [14:28:25]MH_SAM_APDU [14:28:25]CAPDU: 80 11 00 00 [14:28:25]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [14:28:25]Write i2c OK [14:28:25]MH_I2C_Read... [14:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:25]Read from MH i2c: E2 [14:28:25]MH_I2C_Read... [14:28:25]Read from MH i2c: E2 17 00 [14:28:25]MH_I2C_Read... [14:28:25]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 1F [14:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:28:25]wFMCommunicate OK [14:28:25]requested_item fd.num is exist - process it [14:28:25]SAM_PROTO_GetFieldsCounters [14:28:25]wFMCommunicate request_size=4 [14:28:25]MH_SAM_APDU [14:28:25]CAPDU: 80 13 00 00 [14:28:25]Write to MH i2c: E2 08 00 52 03 80 13 00 00 00 00 00 00 D1 [14:28:25]Write i2c OK [14:28:25]MH_I2C_Read... [14:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:25]Read from MH i2c: E2 [14:28:25]MH_I2C_Read... [14:28:25]Read from MH i2c: E2 62 00 [14:28:25]MH_I2C_Read... [14:28:25]Read from MH i2c: E2 62 00 52 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0D 1E 00 00 0E 04 04 00 46 00 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 71 [14:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0D 1E 00 00 0E 04 04 00 46 00 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 [14:28:25]wFMCommunicate OK [14:28:25]SAM_PROTO_GetFieldsCounters done [14:28:25]requested_item shift.num is exist - process it [14:28:25]requested_item shift.opened is exist - process it [14:28:25]req_shift_opened [14:28:25]FM_GetShiftState [14:28:25]SAM_PROTO_GetShiftState [14:28:25]wFMCommunicate request_size=4 [14:28:25]MH_SAM_APDU [14:28:25]CAPDU: 80 13 01 00 [14:28:25]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [14:28:25]Write i2c OK [14:28:25]MH_I2C_Read... [14:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:25]Read from MH i2c: E2 [14:28:25]MH_I2C_Read... [14:28:25]Read from MH i2c: E2 0E 00 [14:28:25]MH_I2C_Read... [14:28:25]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 96 [14:28:25]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:28:25]wFMCommunicate OK [14:28:25]SAM_PROTO_GetShiftState done [14:28:25]FM_GetShiftState done [14:28:25]req_shift_opened done [14:28:25]requested_item shift.open_date is exist - process it [14:28:25]req_shift_open_date [14:28:25]req_shift_open_date done [14:28:25]produce_requested_data done [14:28:25]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7693,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:28:25]process_action_free close_receipt [14:28:25]json_value_free [14:28:25]json_value_free done [14:28:25]process_json_proto returns [14:28:25]Send response to host [14:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7693,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:28:25]free response buf [14:28:25]execute_script done [14:28:25]execute_script returns [14:28:25]free content buf [14:28:25]Sock 9.Close socket [14:28:25]Sock 9.Thread stoped [14:28:27]Connected sock=11 [14:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E0 EF 07 01 31 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 86 29 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0D 1E 00 00 35 04 06 00 AE 3C 56 3B 77 43 14 1D 19 96 33 ED 05 A4 [14:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E3 38 47 00 69 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0D 1E 00 00 F4 03 04 00 49 D4 EF 66 B6 04 01 00 00 5B BC 88 92 52 35 54 67 [14:28:28]CommunicateWithHost err = 0 [14:28:28]CheckOFDResponse [14:28:28]1017 (14) - 77093643461234 [14:28:28]1041 (16) - 0000000002094258 [14:28:28]1040 (4) - 7693 [14:28:28]1012 (4) - 22.09.2024 08:24 [14:28:28]1206 (1) - 0 [14:28:28]OFD Sender: Remove packet 7693 [14:28:28]ProducePacketName [14:28:28]name=ofd_packets/00007693 [14:28:28]NVStorageDeleteData [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:38]accept exits with 10 [14:30:38]New connection [14:30:38]New thread 3067059556 created [14:30:38]Thread 3067202916 joined [14:30:38]Waiting for new connection... [14:30:38] Sock 10.Parse request [14:30:38]Sock 10.Check first char [14:30:38]Sock 10.First char is OK [14:30:38]request: POST /json_proto HTTP/1.0 [14:30:38]Method: POST [14:30:38]URL: /json_proto [14:30:38]Method is POST - this is cgi request [14:30:38]url: /json_proto [14:30:38]query_string will be loaded in cgi processing [14:30:38]execute_cgi json_proto POST (null) [14:30:38]execute_cgi path=json_proto method=POST [14:30:38]POST find Content-Length [14:30:38]Host: 172.17.47.195:8080 [14:30:38]Content-Length: 687 [14:30:38]Content-Type: application/json [14:30:38] [14:30:38]POST finish read [14:30:38]Found Content-Length = 687 [14:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:38]execute_script... [14:30:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:38]POST & json_proto [14:30:38]process_json_proto [14:30:38]json parsed OK: [14:30:38]protocol is kg_v1.0 [14:30:38]action value=close_receipt [14:30:38]process_action close_receipt [14:30:38]cmd_close_receipt [14:30:38]MH_GetDate [14:30:38]Write to MH i2c: F0 00 00 54 03 46 [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: F0 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: F0 09 00 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: F0 09 00 54 03 00 0F 2A F0 66 96 2E 95 66 9D [14:30:38]GetLastDocTimeStamp 1727015302 [14:30:38]current date 1727015439 [14:30:38]FM_GetShiftState [14:30:38]SAM_PROTO_GetShiftState [14:30:38]wFMCommunicate request_size=4 [14:30:38]MH_SAM_APDU [14:30:38]CAPDU: 80 13 01 00 [14:30:38]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:38]Read from MH i2c: E2 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 0E 00 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 98 [14:30:38]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:30:38]wFMCommunicate OK [14:30:38]SAM_PROTO_GetShiftState done [14:30:38]FM_GetShiftState done [14:30:38]opened in 1726964224 [14:30:38]opened+sec_in_day 1727050624 [14:30:38]quantity*price = 100050 [14:30:38]sum+1 = 100052 [14:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 92 22.09.2024 14:30 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7694 ФПД: 131382654537675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143039&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7694&fm=131382654537675&tin=02508201610067®Number=0000000000190446&sum=100000 [14:30:39]StoreToDocumentArchive [14:30:39]shift 70 fd 7694 [14:30:39]save to /storage/0070/doc_00007694 [14:30:39]save last doc name /storage/0070/doc_00007694 to /storage/kkm_last_doc_name [14:30:39]save OK [14:30:39]Clear old archive folders... [14:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:30:39]tlvbuf is 00EF86B0 [14:30:39]SAM_PROTO_ClearQueue [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 09 00 00 [14:30:39]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [14:30:39]RAPDU: 90 00 [14:30:39]wFMCommunicate OK [14:30:39]SAM_PROTO_ClearQueue done [14:30:39]KKMCreateOFDPacket [14:30:39]OFDProtocolAddRootSTLVToBuf [14:30:39]FM_MakeSignedData [14:30:39]FM_MakeSignedData [14:30:39]SAM_PROTO_SignData [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 0D 01 02 [14:30:39]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [14:30:39]RAPDU: 90 00 [14:30:39]wFMCommunicate OK [14:30:39]wFMCommunicate request_size=255 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 0F 2A F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0E 1E 00 00 35 04 06 00 [14:30:39]Write to MH i2c: E2 02 01 64 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 0F 2A F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0E 1E 00 00 35 04 06 00 00 00 A5 [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:40]Read from MH i2c: E2 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 03 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [14:30:40]RAPDU: 90 00 [14:30:40]wFMCommunicate OK [14:30:40]wFMCommunicate request_size=11 [14:30:40]MH_SAM_APDU [14:30:40]CAPDU: 80 0D 02 02 06 77 7D E8 74 0F CB [14:30:40]Write to MH i2c: E2 0E 00 65 03 80 0D 02 02 06 00 77 7D E8 74 0F CB 00 00 18 [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:40]Read from MH i2c: E2 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 03 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [14:30:40]RAPDU: 90 00 [14:30:40]wFMCommunicate OK [14:30:40]wFMCommunicate request_size=4 [14:30:40]MH_SAM_APDU [14:30:40]CAPDU: 80 0D 03 02 [14:30:40]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:40]Read from MH i2c: E2 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 0B 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 0B 00 66 03 00 45 1B F5 90 1C A8 B2 A3 90 00 E3 [14:30:40]RAPDU: 45 1B F5 90 1C A8 B2 A3 90 00 [14:30:40]wFMCommunicate OK [14:30:40]SAM_PROTO_SignData done [14:30:40]FM_MakeSignedData done [14:30:40]CreateOFDProtocolMessage [14:30:40]wFMCommunicate request_size=4 [14:30:40]MH_SAM_APDU [14:30:40]CAPDU: 80 11 00 00 [14:30:40]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:40]Read from MH i2c: E2 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 17 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 35 [14:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:30:40]wFMCommunicate OK [14:30:40]CreateOFDProtocolMessage done [14:30:40]OFDSenderStorePacket 7694 [14:30:40]StoreOFDPacket docnum=7694 [14:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 61 C9 08 01 93 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 0F 2A F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0E 1E 00 00 35 04 06 00 77 7D E8 74 0F CB 45 1B F5 90 1C A8 B2 A3 [14:30:40]CheckFolder [14:30:40]dirname=/storage/ofd_packets [14:30:40]CheckFolder done [14:30:40]ProducePacketName [14:30:40]name=ofd_packets/00007694 [14:30:40]NVStorageSaveData ofd_packets/00007694 [14:30:40]File name is /storage/ofd_packets/00007694 [14:30:40]Write 302 bytes [14:30:40]NVStorageSaveData done [14:30:40]OFDSenderStorePacket done [14:30:40]KKMCreateOFDPacket done [14:30:40]NVStorageSaveData kkm_last_timestamp [14:30:40]File name is /storage/kkm_last_timestamp [14:30:40]Write 4 bytes [14:30:40]NVStorageSaveData done [14:30:40]ExternCall_PrintAddStr [14:30:40]wPrintStart [14:30:40]Write to MH i2c: 01 00 00 68 03 6B [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 07 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [14:30:40]RasterBufferAndPrint [14:30:40]line Счет N : (1)871797 [14:30:40]line ИНН: 02508201610067 [14:30:40]line Контрольно-Кассовый Чек [14:30:40]line ПРОДАЖА [14:30:40]line ТРК (МРК, ГНК) : 34 [14:30:40]line Товар: 2710194210 [14:30:40]line ДТ(л)-К-4 [14:30:40]line 13.130 * 76.20 [14:30:40]line = 1000.51 [14:30:40]line НДС 12% НСП 1% [14:30:40]line > о реализуемом товаре [14:30:40]line ОКРУГЛЕНИЕ: -0.51 [14:30:40]line ИТОГО: 1000.00 [14:30:40]line Внесено: 1000.00 [14:30:40]line СДАЧА: 0.00 [14:30:40]line НСП 1% : 8.85 [14:30:40]line НДС 12% : 106.25 [14:30:40]line Наличными: 1000.00 [14:30:40]line Безнал.: 0.00 [14:30:40]line Место: АЗС № 137 "Партнер Нефть" [14:30:40]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:30:40]line СНО: Общий режим [14:30:40]line Чек 92 22.09.2024 14:30 [14:30:40]line Смена: 70 ФФД: 1.0 [14:30:40]line ЗНМ: 0300000041 [14:30:40]line РНМ: 0000000000190446 [14:30:40]line Версия ККМ: v1.0 [14:30:40]line ФМ: 0000000002094258 [14:30:40]line ФД: 7694 [14:30:40]line ФПД: 131382654537675 [14:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143039&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7694&fm=131382654537675&tin=02508201610067®Number=0000000000190446&sum=100000 [14:30:40]OFD Sender: Processing packet 7694 [packets to send 51, broken 50] [14:30:40]ProducePacketName [14:30:40]name=ofd_packets/00007694 [14:30:40]OFD Sender: To server: pG, [14:30:40]CommunicateWithHost lk.salyk.kg:30040 [14:30:40]ConnectInit lk.salyk.kg [14:30:40]written 0, free lines is 4095 [14:30:41]Write to MH i2c: 01 00 00 93 03 96 [14:30:41]Write i2c OK [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: 01 [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: 01 07 00 [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 E9 0C 92 [14:30:41]RasterBufferAndPrint [14:30:41]line [14:30:41]line [14:30:41]line [14:30:41]line [14:30:41]line [14:30:41]written 0, free lines is 3311 [14:30:41]MH_Cut [14:30:41]Write to MH i2c: D1 01 00 9A 03 01 6F [14:30:41]Write i2c OK [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: D1 [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: D1 01 00 [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: D1 01 00 9A 03 00 6E [14:30:41]Write to MH i2c: 01 00 00 9B 03 9E [14:30:41]Write i2c OK [14:30:41]MH_I2C_Read... [14:30:41]*** Cut start [14:30:41]*** Purtial cut [14:30:41]*** Stage 1: CUTSNS_PIN = 1 [14:30:42]Read from MH i2c: 01 [14:30:42]MH_I2C_Read... [14:30:42]*** Stop cut motor [14:30:42]*** Cut end [14:30:42]Read from MH i2c: 01 07 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [14:30:42]process_action close_receipt done [14:30:42]requested_data is exist [14:30:42]produce_requested_data [14:30:42]requested_item fm.sn is exist - process it [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 11 00 00 [14:30:42]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:42]Read from MH i2c: E2 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 17 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 6A [14:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:30:42]wFMCommunicate OK [14:30:42]requested_item fd.num is exist - process it [14:30:42]SAM_PROTO_GetFieldsCounters [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 13 00 00 [14:30:42]Write to MH i2c: E2 08 00 9D 03 80 13 00 00 00 00 00 00 1C [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:42]Read from MH i2c: E2 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 62 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 62 00 9D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0E 1E 00 00 0E 04 04 00 46 00 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 C0 [14:30:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0E 1E 00 00 0E 04 04 00 46 00 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 [14:30:42]wFMCommunicate OK [14:30:42]SAM_PROTO_GetFieldsCounters done [14:30:42]requested_item shift.num is exist - process it [14:30:42]requested_item shift.opened is exist - process it [14:30:42]req_shift_opened [14:30:42]FM_GetShiftState [14:30:42]SAM_PROTO_GetShiftState [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 13 01 00 [14:30:42]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:42]Read from MH i2c: E2 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 0E 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E1 [14:30:42]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:30:42]wFMCommunicate OK [14:30:42]SAM_PROTO_GetShiftState done [14:30:42]FM_GetShiftState done [14:30:42]req_shift_opened done [14:30:42]requested_item shift.open_date is exist - process it [14:30:42]req_shift_open_date [14:30:42]req_shift_open_date done [14:30:42]produce_requested_data done [14:30:42]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7694,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:30:42]process_action_free close_receipt [14:30:42]json_value_free [14:30:42]json_value_free done [14:30:42]process_json_proto returns [14:30:42]Send response to host [14:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7694,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:30:42]free response buf [14:30:42]execute_script done [14:30:42]execute_script returns [14:30:42]free content buf [14:30:42]Sock 10.Close socket [14:30:42]Sock 10.Thread stoped [14:30:45]ConnectInit Can't take IP for lk.salyk.kg [14:30:45]CommunicateWithHost connect error [14:30:45]CommunicateWithHost err = -1 [14:30:45]OFD Sender: Server communicate error [14:30:50]OFD Sender: Processing packet 7694 [packets to send 51, broken 50] [14:30:50]ProducePacketName [14:30:50]name=ofd_packets/00007694 [14:30:50]OFD Sender: To server: pG, [14:30:50]CommunicateWithHost lk.salyk.kg:30040 [14:30:50]ConnectInit lk.salyk.kg [14:30:51]Connected sock=9 [14:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 61 C9 08 01 93 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 0F 2A F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0E 1E 00 00 35 04 06 00 77 7D E8 74 0F CB 45 1B F5 90 1C A8 B2 A3 [14:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 65 33 47 00 EE 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 32 30 39 34 32 35 38 10 04 04 00 0E 1E 00 00 F4 03 04 00 D9 D4 EF 66 B6 04 01 00 00 D5 03 C9 AF C7 45 07 8C [14:30:53]CommunicateWithHost err = 0 [14:30:53]CheckOFDResponse [14:30:53]1017 (14) - 77093643461234 [14:30:53]1041 (16) - 0000000002094258 [14:30:53]1040 (4) - 7694 [14:30:53]1012 (4) - 22.09.2024 08:27 [14:30:53]1206 (1) - 0 [14:30:53]OFD Sender: Remove packet 7694 [14:30:53]ProducePacketName [14:30:53]name=ofd_packets/00007694 [14:30:53]NVStorageDeleteData [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:12]recv_with_timeout no data received [14:31:13]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:31]recv_with_timeout no data received [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:02]accept exits with 7 [14:33:02]New connection [14:33:02]New thread 3067202916 created [14:33:02]Thread 3067059556 joined [14:33:02]Waiting for new connection... [14:33:02] Sock 7.Parse request [14:33:02]Sock 7.Check first char [14:33:02]Sock 7.First char is OK [14:33:02]request: POST /json_proto HTTP/1.0 [14:33:02]Method: POST [14:33:02]URL: /json_proto [14:33:02]Method is POST - this is cgi request [14:33:02]url: /json_proto [14:33:02]query_string will be loaded in cgi processing [14:33:02]execute_cgi json_proto POST (null) [14:33:02]execute_cgi path=json_proto method=POST [14:33:02]POST find Content-Length [14:33:02]Host: 172.17.47.195:8080 [14:33:02]Content-Length: 682 [14:33:02]Content-Type: application/json [14:33:02] [14:33:02]POST finish read [14:33:02]Found Content-Length = 682 [14:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:02]execute_script... [14:33: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)871798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:02]POST & json_proto [14:33:02]process_json_proto [14:33:02]json parsed OK: [14:33:02]protocol is kg_v1.0 [14:33:02]action value=close_receipt [14:33:02]process_action close_receipt [14:33:02]cmd_close_receipt [14:33:02]MH_GetDate [14:33:02]Write to MH i2c: F0 00 00 9F 03 91 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: F0 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: F0 09 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: F0 09 00 9F 03 00 9F 2A F0 66 96 2E 95 66 78 [14:33:02]GetLastDocTimeStamp 1727015439 [14:33:02]current date 1727015583 [14:33:02]FM_GetShiftState [14:33:02]SAM_PROTO_GetShiftState [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 13 01 00 [14:33:02]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 0E 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E3 [14:33:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:33:02]wFMCommunicate OK [14:33:02]SAM_PROTO_GetShiftState done [14:33:02]FM_GetShiftState done [14:33:02]opened in 1726964224 [14:33:02]opened+sec_in_day 1727050624 [14:33:02]quantity*price = 65074 [14:33:02]sum+1 = 65076 [14:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.11 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 93 22.09.2024 14:33 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7695 ФПД: 116383113101693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143303&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7695&fm=116383113101693&tin=02508201610067®Number=0000000000190446&sum=65000 [14:33:03]StoreToDocumentArchive [14:33:03]shift 70 fd 7695 [14:33:03]save to /storage/0070/doc_00007695 [14:33:03]save last doc name /storage/0070/doc_00007695 to /storage/kkm_last_doc_name [14:33:03]save OK [14:33:03]Clear old archive folders... [14:33:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:33:03]tlvbuf is B6F95910 [14:33:03]SAM_PROTO_ClearQueue [14:33:03]wFMCommunicate request_size=4 [14:33:03]MH_SAM_APDU [14:33:03]CAPDU: 80 09 00 00 [14:33:03]Write to MH i2c: E2 08 00 AD 03 80 09 00 00 00 00 00 00 22 [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:03]Read from MH i2c: E2 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 03 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [14:33:03]RAPDU: 90 00 [14:33:03]wFMCommunicate OK [14:33:03]SAM_PROTO_ClearQueue done [14:33:03]KKMCreateOFDPacket [14:33:03]OFDProtocolAddRootSTLVToBuf [14:33:03]FM_MakeSignedData [14:33:03]FM_MakeSignedData [14:33:03]SAM_PROTO_SignData [14:33:03]wFMCommunicate request_size=4 [14:33:03]MH_SAM_APDU [14:33:03]CAPDU: 80 0D 01 02 [14:33:03]Write to MH i2c: E2 08 00 AE 03 80 0D 01 02 00 00 00 00 2A [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:03]Read from MH i2c: E2 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 03 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [14:33:03]RAPDU: 90 00 [14:33:03]wFMCommunicate OK [14:33:03]wFMCommunicate request_size=255 [14:33:03]MH_SAM_APDU [14:33:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9F 2A F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0F 1E 00 00 35 04 06 00 [14:33:03]Write to MH i2c: E2 02 01 AF 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9F 2A F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0F 1E 00 00 35 04 06 00 00 00 0E [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 03 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [14:33:04]RAPDU: 90 00 [14:33:04]wFMCommunicate OK [14:33:04]wFMCommunicate request_size=11 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 0D 02 02 06 69 D9 8E 1D 41 7D [14:33:04]Write to MH i2c: E2 0E 00 B0 03 80 0D 02 02 06 00 69 D9 8E 1D 41 7D 00 00 E4 [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]OFD Sender: No OFD packet to send [14:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 03 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [14:33:04]RAPDU: 90 00 [14:33:04]wFMCommunicate OK [14:33:04]wFMCommunicate request_size=4 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 0D 03 02 [14:33:04]Write to MH i2c: E2 08 00 B1 03 80 0D 03 02 00 00 00 00 2F [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 0B 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 0B 00 B1 03 00 67 32 82 0E E7 FC DE 13 90 00 2D [14:33:04]RAPDU: 67 32 82 0E E7 FC DE 13 90 00 [14:33:04]wFMCommunicate OK [14:33:04]SAM_PROTO_SignData done [14:33:04]FM_MakeSignedData done [14:33:04]CreateOFDProtocolMessage [14:33:04]wFMCommunicate request_size=4 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 11 00 00 [14:33:04]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 17 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 80 [14:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:33:04]wFMCommunicate OK [14:33:04]CreateOFDProtocolMessage done [14:33:04]OFDSenderStorePacket 7695 [14:33:04]StoreOFDPacket docnum=7695 [14:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 2E 29 08 01 86 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9F 2A F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0F 1E 00 00 35 04 06 00 69 D9 8E 1D 41 7D 67 32 82 0E E7 FC DE 13 [14:33:04]CheckFolder [14:33:04]dirname=/storage/ofd_packets [14:33:04]CheckFolder done [14:33:04]ProducePacketName [14:33:04]name=ofd_packets/00007695 [14:33:04]NVStorageSaveData ofd_packets/00007695 [14:33:04]File name is /storage/ofd_packets/00007695 [14:33:04]Write 302 bytes [14:33:04]NVStorageSaveData done [14:33:04]OFDSenderStorePacket done [14:33:04]KKMCreateOFDPacket done [14:33:04]NVStorageSaveData kkm_last_timestamp [14:33:04]File name is /storage/kkm_last_timestamp [14:33:04]Write 4 bytes [14:33:04]NVStorageSaveData done [14:33:04]ExternCall_PrintAddStr [14:33:04]wPrintStart [14:33:04]Write to MH i2c: 01 00 00 B3 03 B6 [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: 01 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: 01 07 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 FF 0F CB [14:33:04]RasterBufferAndPrint [14:33:04]line Счет N : (1)871798 [14:33:04]line ИНН: 02508201610067 [14:33:04]line Контрольно-Кассовый Чек [14:33:04]line ПРОДАЖА [14:33:04]line ТРК (МРК, ГНК) : 34 [14:33:04]line Товар: 2710194210 [14:33:04]line ДТ(л)-К-4 [14:33:04]line 8.540 * 76.20 [14:33:04]line = 650.75 [14:33:04]line НДС 12% НСП 1% [14:33:04]line > о реализуемом товаре [14:33:04]line ОКРУГЛЕНИЕ: -0.75 [14:33:04]line ИТОГО: 650.00 [14:33:04]line Внесено: 650.00 [14:33:04]line СДАЧА: 0.00 [14:33:04]line НСП 1% : 5.76 [14:33:04]line НДС 12% : 69.11 [14:33:04]line Наличными: 650.00 [14:33:04]line Безнал.: 0.00 [14:33:04]line Место: АЗС № 137 "Партнер Нефть" [14:33:04]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:33:04]line СНО: Общий режим [14:33:04]line Чек 93 22.09.2024 14:33 [14:33:04]line Смена: 70 ФФД: 1.0 [14:33:04]line ЗНМ: 0300000041 [14:33:04]line РНМ: 0000000000190446 [14:33:04]line Версия ККМ: v1.0 [14:33:04]line ФМ: 0000000002094258 [14:33:04]line ФД: 7695 [14:33:04]line ФПД: 116383113101693 [14:33:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143303&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7695&fm=116383113101693&tin=02508201610067®Number=0000000000190446&sum=65000 [14:33:04]OFD Sender: Processing packet 7695 [packets to send 51, broken 50] [14:33:04]ProducePacketName [14:33:04]name=ofd_packets/00007695 [14:33:04]OFD Sender: To server: pG, [14:33:04]CommunicateWithHost lk.salyk.kg:30040 [14:33:04]ConnectInit lk.salyk.kg [14:33:04]written 0, free lines is 4095 [14:33:05]Write to MH i2c: 01 00 00 DE 03 E1 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: 01 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: 01 07 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 E6 0C DA [14:33:05]RasterBufferAndPrint [14:33:05]line [14:33:05]line [14:33:05]line [14:33:05]line [14:33:05]line [14:33:05]written 0, free lines is 3308 [14:33:05]MH_Cut [14:33:05]Write to MH i2c: D1 01 00 E5 03 01 BA [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: D1 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: D1 01 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: D1 01 00 E5 03 00 B9 [14:33:05]Write to MH i2c: 01 00 00 E6 03 E9 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** Cut start [14:33:05]*** Purtial cut [14:33:05]*** Stage 1: CUTSNS_PIN = 1 [14:33:05]Read from MH i2c: 01 [14:33:05]MH_I2C_Read... [14:33:05]*** Stop cut motor [14:33:05]*** Cut end [14:33:05]Read from MH i2c: 01 07 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [14:33:05]process_action close_receipt done [14:33:05]requested_data is exist [14:33:05]produce_requested_data [14:33:05]requested_item fm.sn is exist - process it [14:33:05]wFMCommunicate request_size=4 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 11 00 00 [14:33:05]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 17 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 B5 [14:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:33:06]wFMCommunicate OK [14:33:06]requested_item fd.num is exist - process it [14:33:06]SAM_PROTO_GetFieldsCounters [14:33:06]wFMCommunicate request_size=4 [14:33:06]MH_SAM_APDU [14:33:06]CAPDU: 80 13 00 00 [14:33:06]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 62 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 62 00 E8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0F 1E 00 00 0E 04 04 00 46 00 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 0F [14:33:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 0F 1E 00 00 0E 04 04 00 46 00 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 [14:33:06]wFMCommunicate OK [14:33:06]SAM_PROTO_GetFieldsCounters done [14:33:06]requested_item shift.num is exist - process it [14:33:06]requested_item shift.opened is exist - process it [14:33:06]req_shift_opened [14:33:06]FM_GetShiftState [14:33:06]SAM_PROTO_GetShiftState [14:33:06]wFMCommunicate request_size=4 [14:33:06]MH_SAM_APDU [14:33:06]CAPDU: 80 13 01 00 [14:33:06]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 0E 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 2C [14:33:06]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:33:06]wFMCommunicate OK [14:33:06]SAM_PROTO_GetShiftState done [14:33:06]FM_GetShiftState done [14:33:06]req_shift_opened done [14:33:06]requested_item shift.open_date is exist - process it [14:33:06]req_shift_open_date [14:33:06]req_shift_open_date done [14:33:06]produce_requested_data done [14:33:06]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7695,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:33:06]process_action_free close_receipt [14:33:06]json_value_free [14:33:06]json_value_free done [14:33:06]process_json_proto returns [14:33:06]Send response to host [14:33:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7695,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:33:06]free response buf [14:33:06]execute_script done [14:33:06]execute_script returns [14:33:06]free content buf [14:33:06]Sock 7.Close socket [14:33:06]Sock 7.Thread stoped [14:33:09]recv_with_timeout no data received [14:33:09]ConnectInit Can't take IP for lk.salyk.kg [14:33:09]CommunicateWithHost connect error [14:33:09]CommunicateWithHost err = -1 [14:33:09]OFD Sender: Server communicate error [14:33:14]OFD Sender: Processing packet 7695 [packets to send 51, broken 50] [14:33:14]ProducePacketName [14:33:14]name=ofd_packets/00007695 [14:33:14]OFD Sender: To server: pG, [14:33:14]CommunicateWithHost lk.salyk.kg:30040 [14:33:14]ConnectInit lk.salyk.kg [14:33:23]recv_with_timeout no data received [14:33:33]Connected sock=10 [14:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 2E 29 08 01 86 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9F 2A F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 0F 1E 00 00 35 04 06 00 69 D9 8E 1D 41 7D 67 32 82 0E E7 FC DE 13 [14:33:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 54 73 47 00 43 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 32 30 39 34 32 35 38 10 04 04 00 0F 1E 00 00 F4 03 04 00 7E D5 EF 66 B6 04 01 00 00 D5 56 6A F1 20 D3 20 DD [14:33:37]CommunicateWithHost err = 0 [14:33:37]CheckOFDResponse [14:33:37]1017 (14) - 77093643461234 [14:33:37]1041 (16) - 0000000002094258 [14:33:37]1040 (4) - 7695 [14:33:37]1012 (4) - 22.09.2024 08:29 [14:33:37]1206 (1) - 0 [14:33:37]OFD Sender: Remove packet 7695 [14:33:37]ProducePacketName [14:33:37]name=ofd_packets/00007695 [14:33:37]NVStorageDeleteData [14:33:38]OFD Sender: No OFD packet to send [14:33:41]recv_with_timeout no data received [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5962898+1721052822=1727015720 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 28 2B F0 66 96 2E 95 66 67 [14:35:20]Current date/time: 22.09.2024 14:35 [14:35:20]FM_Init [14:35:20]wFMConnect [14:35:20]MH_SAM_On [14:35:20]Write to MH i2c: E0 00 00 08 00 E7 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_init finished! [14:35:20]*** atr: [14:35:20]*** 0F 3B D5 18 FF 81 91 FE [14:35:20]*** 1F C3 80 73 C8 21 10 0A [14:35:20]*** 00 00 00 00 00 00 00 00 [14:35:20]*** 00 00 00 00 00 00 00 00 [14:35:20]*** 00 00 00 00 00 00 00 00 [14:35:20]*** 00 00 00 00 00 00 00 00 [14:35:20]*** 00 00 00 00 00 00 00 00 [14:35:20]*** 00 00 00 00 00 00 00 00 [14:35:20]Read from MH i2c: E0 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E0 10 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:35:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:35:20]wFMCommunicate request_size=10 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:35:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]wFMCommunicate request_size=4 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 11 00 00 [14:35:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 17 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [14:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:35:20]wFMCommunicate OK [14:35:20]Detected FM SN is 0000000002094258 [14:35:20]Stored FM SN is 0000000002094258 [14:35:20]wFMCommunicate request_size=9 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 16 00 00 04 BC C2 00 00 [14:35:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]FM PIN OK [14:35:20]wFMCommunicate request_size=8 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 14 04 00 03 02 00 01 [14:35:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]wFMCommunicate request_size=13 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:35:20]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]wFMCommunicate request_size=4 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 11 00 00 [14:35:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 17 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [14:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:35:20]wFMCommunicate OK [14:35:20]DocumentArchiveInit [14:35:20]Start Httpd... [14:35:20]Httpd thread 3067022692 created [14:35:20]Write to MH i2c: 01 00 00 0F 00 0F [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: 01 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: 01 07 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:35:20]MH Int Process started [14:35:20]Allocated Socket 7 [14:35:20]Bind OK [14:35:20]Listen OK [14:35:20]httpd running on port 8080 [14:35:20]Waiting for new connection... [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:30]recv_with_timeout no data received [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:09]recv_with_timeout no data received [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]accept exits with 9 [14:37:25]New connection [14:37:25]New thread 3066735972 created [14:37:25]Waiting for new connection... [14:37:25] Sock 9.Parse request [14:37:25]Sock 9.Check first char [14:37:25]Sock 9.First char is OK [14:37:25]request: POST /json_proto HTTP/1.0 [14:37:25]Method: POST [14:37:25]URL: /json_proto [14:37:25]Method is POST - this is cgi request [14:37:25]url: /json_proto [14:37:25]query_string will be loaded in cgi processing [14:37:25]execute_cgi json_proto POST (null) [14:37:25]execute_cgi path=json_proto method=POST [14:37:25]POST find Content-Length [14:37:25]Host: 172.17.47.195:8080 [14:37:25]Content-Length: 687 [14:37:25]Content-Type: application/json [14:37:25] [14:37:25]POST finish read [14:37:25]Found Content-Length = 687 [14:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 17.620, "sum" : 1342.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1342.00, "payments": [ { "type": 0, "sum" : 1342.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:25]execute_script... [14:37:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 17.620, "sum" : 1342.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1342.00, "payments": [ { "type": 0, "sum" : 1342.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:25]POST & json_proto [14:37:25]process_json_proto [14:37:25]json parsed OK: [14:37:25]protocol is kg_v1.0 [14:37:25]action value=close_receipt [14:37:25]process_action close_receipt [14:37:25]cmd_close_receipt [14:37:25]MH_GetDate [14:37:25]Write to MH i2c: F0 00 00 10 00 FF [14:37:25]Write i2c OK [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: F0 [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: F0 09 00 [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: F0 09 00 10 00 00 A6 2B F0 66 96 2E 95 66 EE [14:37:25]GetLastDocTimeStamp 1727015583 [14:37:25]current date 1727015846 [14:37:25]FM_GetShiftState [14:37:25]SAM_PROTO_GetShiftState [14:37:25]wFMCommunicate request_size=4 [14:37:25]MH_SAM_APDU [14:37:25]CAPDU: 80 13 01 00 [14:37:25]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [14:37:25]Write i2c OK [14:37:25]MH_I2C_Read... [14:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:25]Read from MH i2c: E2 [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: E2 0E 00 [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 51 [14:37:25]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:37:25]wFMCommunicate OK [14:37:25]SAM_PROTO_GetShiftState done [14:37:25]FM_GetShiftState done [14:37:25]opened in 1726964224 [14:37:25]opened+sec_in_day 1727050624 [14:37:25]quantity*price = 134264 [14:37:25]sum+1 = 134265 [14:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1342.00 Внесено: 3000.00 СДАЧА: 1658.00 НСП 1% : 11.88 НДС 12% : 142.58 Наличными: 1342.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 94 22.09.2024 14:37 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7696 ФПД: 98565568699591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143726&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7696&fm=98565568699591&tin=02508201610067®Number=0000000000190446&sum=134200 [14:37:26]StoreToDocumentArchive [14:37:26]shift 70 fd 7696 [14:37:26]save to /storage/0070/doc_00007696 [14:37:26]save last doc name /storage/0070/doc_00007696 to /storage/kkm_last_doc_name [14:37:26]save OK [14:37:26]Clear old archive folders... [14:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:37:26]tlvbuf is 012D0EF0 [14:37:26]SAM_PROTO_ClearQueue [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 09 00 00 [14:37:26]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]SAM_PROTO_ClearQueue done [14:37:26]KKMCreateOFDPacket [14:37:26]OFDProtocolAddRootSTLVToBuf [14:37:26]FM_MakeSignedData [14:37:26]FM_MakeSignedData [14:37:26]SAM_PROTO_SignData [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 0D 01 02 [14:37:26]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]wFMCommunicate request_size=255 [14:37:26]MH_SAM_APDU [14:37: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 34 FF 03 08 00 03 D4 44 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 78 0C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 0C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 37 00 00 00 00 07 04 06 00 38 0C 02 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 A6 2B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 10 1E 00 00 35 04 06 00 [14:37:26]Write to MH i2c: E2 02 01 20 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 34 FF 03 08 00 03 D4 44 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 78 0C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 0C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 37 00 00 00 00 07 04 06 00 38 0C 02 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 A6 2B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 10 1E 00 00 35 04 06 00 00 00 6E [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]wFMCommunicate request_size=11 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 0D 02 02 06 59 A5 15 B5 9C C7 [14:37:26]Write to MH i2c: E2 0E 00 21 00 80 0D 02 02 06 00 59 A5 15 B5 9C C7 00 00 D2 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 0D 03 02 [14:37:26]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 0B 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 0B 00 22 00 00 78 37 F9 93 CD 85 B2 B1 90 00 8E [14:37:26]RAPDU: 78 37 F9 93 CD 85 B2 B1 90 00 [14:37:26]wFMCommunicate OK [14:37:26]SAM_PROTO_SignData done [14:37:26]FM_MakeSignedData done [14:37:26]CreateOFDProtocolMessage [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 11 00 00 [14:37:26]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 17 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 EE [14:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:37:26]wFMCommunicate OK [14:37:26]CreateOFDProtocolMessage done [14:37:26]OFDSenderStorePacket 7696 [14:37:26]StoreOFDPacket docnum=7696 [14:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 14 A4 08 01 74 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 44 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 78 0C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 0C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 37 00 00 00 00 07 04 06 00 38 0C 02 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 A6 2B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 10 1E 00 00 35 04 06 00 59 A5 15 B5 9C C7 78 37 F9 93 CD 85 B2 B1 [14:37:26]CheckFolder [14:37:26]dirname=/storage/ofd_packets [14:37:26]CheckFolder done [14:37:26]ProducePacketName [14:37:26]name=ofd_packets/00007696 [14:37:26]NVStorageSaveData ofd_packets/00007696 [14:37:26]File name is /storage/ofd_packets/00007696 [14:37:26]Write 302 bytes [14:37:26]NVStorageSaveData done [14:37:26]OFDSenderStorePacket done [14:37:26]KKMCreateOFDPacket done [14:37:26]NVStorageSaveData kkm_last_timestamp [14:37:26]File name is /storage/kkm_last_timestamp [14:37:26]Write 4 bytes [14:37:26]NVStorageSaveData done [14:37:26]ExternCall_PrintAddStr [14:37:26]wPrintStart [14:37:26]Write to MH i2c: 01 00 00 24 00 24 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 07 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [14:37:26]RasterBufferAndPrint [14:37:26]line Счет N : (1)871799 [14:37:26]line ИНН: 02508201610067 [14:37:26]line Контрольно-Кассовый Чек [14:37:26]line ПРОДАЖА [14:37:26]line ТРК (МРК, ГНК) : 54 [14:37:26]line Товар: 2710194210 [14:37:26]line ДТ(л)-К-4 [14:37:26]line 17.620 * 76.20 [14:37:26]line = 1342.64 [14:37:26]line НДС 12% НСП 1% [14:37:26]line > о реализуемом товаре [14:37:26]line ОКРУГЛЕНИЕ: -0.64 [14:37:26]line ИТОГО: 1342.00 [14:37:26]line Внесено: 3000.00 [14:37:26]line СДАЧА: 1658.00 [14:37:26]line НСП 1% : 11.88 [14:37:26]line НДС 12% : 142.58 [14:37:26]line Наличными: 1342.00 [14:37:26]line Безнал.: 0.00 [14:37:26]line Место: АЗС № 137 "Партнер Нефть" [14:37:26]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:37:26]line СНО: Общий режим [14:37:26]line Чек 94 22.09.2024 14:37 [14:37:26]line Смена: 70 ФФД: 1.0 [14:37:26]line ЗНМ: 0300000041 [14:37:26]line РНМ: 0000000000190446 [14:37:26]line Версия ККМ: v1.0 [14:37:26]line ФМ: 0000000002094258 [14:37:26]line ФД: 7696 [14:37:26]line ФПД: 98565568699591 [14:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143726&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7696&fm=98565568699591&tin=02508201610067®Number=0000000000190446&sum=134200 [14:37:27]OFD Sender: Processing packet 7696 [packets to send 51, broken 50] [14:37:27]ProducePacketName [14:37:27]name=ofd_packets/00007696 [14:37:27]OFD Sender: To server: pG, [14:37:27]CommunicateWithHost lk.salyk.kg:30040 [14:37:27]ConnectInit lk.salyk.kg [14:37:27]written 0, free lines is 4095 [14:37:27]Write to MH i2c: 01 00 00 4F 00 4F [14:37:27]Write i2c OK [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: 01 [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: 01 07 00 [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 F3 0C 55 [14:37:27]RasterBufferAndPrint [14:37:27]line [14:37:27]line [14:37:27]line [14:37:27]line [14:37:27]line [14:37:27]written 0, free lines is 3321 [14:37:27]MH_Cut [14:37:27]Write to MH i2c: D1 01 00 56 00 01 28 [14:37:27]Write i2c OK [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: D1 [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: D1 01 00 [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: D1 01 00 56 00 00 27 [14:37:27]Write to MH i2c: 01 00 00 57 00 57 [14:37:27]Write i2c OK [14:37:27]MH_I2C_Read... [14:37:28]*** Cut start [14:37:28]*** Purtial cut [14:37:28]*** Stage 1: CUTSNS_PIN = 1 [14:37:28]Read from MH i2c: 01 [14:37:28]MH_I2C_Read... [14:37:28]*** Stop cut motor [14:37:28]*** Cut end [14:37:28]Read from MH i2c: 01 07 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [14:37:28]process_action close_receipt done [14:37:28]requested_data is exist [14:37:28]produce_requested_data [14:37:28]requested_item fm.sn is exist - process it [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 11 00 00 [14:37:28]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 17 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 23 [14:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:37:28]wFMCommunicate OK [14:37:28]requested_item fd.num is exist - process it [14:37:28]SAM_PROTO_GetFieldsCounters [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 13 00 00 [14:37:28]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 62 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 10 1E 00 00 0E 04 04 00 46 00 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 81 [14:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 10 1E 00 00 0E 04 04 00 46 00 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 [14:37:28]wFMCommunicate OK [14:37:28]SAM_PROTO_GetFieldsCounters done [14:37:28]requested_item shift.num is exist - process it [14:37:28]requested_item shift.opened is exist - process it [14:37:28]req_shift_opened [14:37:28]FM_GetShiftState [14:37:28]SAM_PROTO_GetShiftState [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 13 01 00 [14:37:28]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 0E 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 9A [14:37:28]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:37:28]wFMCommunicate OK [14:37:28]SAM_PROTO_GetShiftState done [14:37:28]FM_GetShiftState done [14:37:28]req_shift_opened done [14:37:28]requested_item shift.open_date is exist - process it [14:37:28]req_shift_open_date [14:37:28]req_shift_open_date done [14:37:28]produce_requested_data done [14:37:28]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7696,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:37:28]process_action_free close_receipt [14:37:28]json_value_free [14:37:28]json_value_free done [14:37:28]process_json_proto returns [14:37:28]Send response to host [14:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7696,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:37:28]free response buf [14:37:28]execute_script done [14:37:28]execute_script returns [14:37:28]free content buf [14:37:28]Sock 9.Close socket [14:37:28]Sock 9.Thread stoped [14:37:31]Connected sock=11 [14:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 14 A4 08 01 74 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 44 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 78 0C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 0C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 37 00 00 00 00 07 04 06 00 38 0C 02 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 A6 2B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 10 1E 00 00 35 04 06 00 59 A5 15 B5 9C C7 78 37 F9 93 CD 85 B2 B1 [14:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 B9 7F 47 00 1D 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 10 1E 00 00 F4 03 04 00 68 D6 EF 66 B6 04 01 00 00 79 F8 A5 5D F6 1B 05 1E [14:37:32]CommunicateWithHost err = 0 [14:37:32]CheckOFDResponse [14:37:32]1017 (14) - 77093643461234 [14:37:32]1041 (16) - 0000000002094258 [14:37:32]1040 (4) - 7696 [14:37:32]1012 (4) - 22.09.2024 08:33 [14:37:32]1206 (1) - 0 [14:37:32]OFD Sender: Remove packet 7696 [14:37:32]ProducePacketName [14:37:32]name=ofd_packets/00007696 [14:37:32]NVStorageDeleteData [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:39]accept exits with 10 [14:38:39]New connection [14:38:39]New thread 3066592612 created [14:38:39]Thread 3066735972 joined [14:38:39]Waiting for new connection... [14:38:39] Sock 10.Parse request [14:38:39]Sock 10.Check first char [14:38:39]Sock 10.First char is OK [14:38:39]request: POST /json_proto HTTP/1.0 [14:38:39]Method: POST [14:38:39]URL: /json_proto [14:38:39]Method is POST - this is cgi request [14:38:39]url: /json_proto [14:38:39]query_string will be loaded in cgi processing [14:38:39]execute_cgi json_proto POST (null) [14:38:39]execute_cgi path=json_proto method=POST [14:38:39]POST find Content-Length [14:38:39]Host: 172.17.47.195:8080 [14:38:39]Content-Length: 687 [14:38:39]Content-Type: application/json [14:38:39] [14:38:39]POST finish read [14:38:39]Found Content-Length = 687 [14:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 16.640, "sum" : 1267.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1267.00, "total" : 1267.00, "payments": [ { "type": 0, "sum" : 1267.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:39]execute_script... [14:38:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 16.640, "sum" : 1267.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1267.00, "total" : 1267.00, "payments": [ { "type": 0, "sum" : 1267.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:39]POST & json_proto [14:38:39]process_json_proto [14:38:39]json parsed OK: [14:38:39]protocol is kg_v1.0 [14:38:39]action value=close_receipt [14:38:39]process_action close_receipt [14:38:39]cmd_close_receipt [14:38:39]MH_GetDate [14:38:39]Write to MH i2c: F0 00 00 5B 00 4A [14:38:39]Write i2c OK [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: F0 [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: F0 09 00 [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: F0 09 00 5B 00 00 F0 2B F0 66 96 2E 95 66 83 [14:38:39]GetLastDocTimeStamp 1727015846 [14:38:39]current date 1727015920 [14:38:39]FM_GetShiftState [14:38:39]SAM_PROTO_GetShiftState [14:38:39]wFMCommunicate request_size=4 [14:38:39]MH_SAM_APDU [14:38:39]CAPDU: 80 13 01 00 [14:38:39]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [14:38:39]Write i2c OK [14:38:39]MH_I2C_Read... [14:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:39]Read from MH i2c: E2 [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: E2 0E 00 [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 9C [14:38:39]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:38:39]wFMCommunicate OK [14:38:39]SAM_PROTO_GetShiftState done [14:38:39]FM_GetShiftState done [14:38:39]opened in 1726964224 [14:38:39]opened+sec_in_day 1727050624 [14:38:39]quantity*price = 126796 [14:38:39]sum+1 = 126798 [14:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.97 ИТОГО: 1267.00 Внесено: 1267.00 СДАЧА: 0.00 НСП 1% : 11.22 НДС 12% : 134.65 Наличными: 1267.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 95 22.09.2024 14:38 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7697 ФПД: 92498587305466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143840&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7697&fm=92498587305466&tin=02508201610067®Number=0000000000190446&sum=126700 [14:38:40]StoreToDocumentArchive [14:38:40]shift 70 fd 7697 [14:38:40]save to /storage/0070/doc_00007697 [14:38:40]save last doc name /storage/0070/doc_00007697 to /storage/kkm_last_doc_name [14:38:40]save OK [14:38:40]Clear old archive folders... [14:38:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:38:40]tlvbuf is 012BE4E0 [14:38:40]SAM_PROTO_ClearQueue [14:38:40]wFMCommunicate request_size=4 [14:38:40]MH_SAM_APDU [14:38:40]CAPDU: 80 09 00 00 [14:38:40]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [14:38:40]Write i2c OK [14:38:40]MH_I2C_Read... [14:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:41]Read from MH i2c: E2 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 03 00 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [14:38:41]RAPDU: 90 00 [14:38:41]wFMCommunicate OK [14:38:41]SAM_PROTO_ClearQueue done [14:38:41]KKMCreateOFDPacket [14:38:41]OFDProtocolAddRootSTLVToBuf [14:38:41]FM_MakeSignedData [14:38:41]FM_MakeSignedData [14:38:41]SAM_PROTO_SignData [14:38:41]wFMCommunicate request_size=4 [14:38:41]MH_SAM_APDU [14:38:41]CAPDU: 80 0D 01 02 [14:38:41]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [14:38:41]Write i2c OK [14:38:41]MH_I2C_Read... [14:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:41]Read from MH i2c: E2 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 03 00 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [14:38:41]RAPDU: 90 00 [14:38:41]wFMCommunicate OK [14:38:41]wFMCommunicate request_size=255 [14:38:41]MH_SAM_APDU [14:38:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 00 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC EE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 EC EE 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 F0 2B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 11 1E 00 00 35 04 06 00 [14:38:41]Write to MH i2c: E2 02 01 6B 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 34 FF 03 08 00 03 00 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC EE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 EC EE 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 F0 2B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 11 1E 00 00 35 04 06 00 00 00 B1 [14:38:41]Write i2c OK [14:38:41]MH_I2C_Read... [14:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:41]Read from MH i2c: E2 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 03 00 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [14:38:41]RAPDU: 90 00 [14:38:41]wFMCommunicate OK [14:38:41]wFMCommunicate request_size=11 [14:38:41]MH_SAM_APDU [14:38:41]CAPDU: 80 0D 02 02 06 54 20 81 70 45 FA [14:38:41]Write to MH i2c: E2 0E 00 6C 00 80 0D 02 02 06 00 54 20 81 70 45 FA 00 00 96 [14:38:41]Write i2c OK [14:38:41]MH_I2C_Read... [14:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:41]Read from MH i2c: E2 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 03 00 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [14:38:41]RAPDU: 90 00 [14:38:41]wFMCommunicate OK [14:38:41]wFMCommunicate request_size=4 [14:38:41]MH_SAM_APDU [14:38:41]CAPDU: 80 0D 03 02 [14:38:41]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [14:38:41]Write i2c OK [14:38:41]MH_I2C_Read... [14:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:41]Read from MH i2c: E2 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 0B 00 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 0B 00 6D 00 00 A5 51 68 73 15 61 13 43 90 00 86 [14:38:41]RAPDU: A5 51 68 73 15 61 13 43 90 00 [14:38:41]wFMCommunicate OK [14:38:41]SAM_PROTO_SignData done [14:38:41]FM_MakeSignedData done [14:38:41]CreateOFDProtocolMessage [14:38:41]wFMCommunicate request_size=4 [14:38:41]MH_SAM_APDU [14:38:41]CAPDU: 80 11 00 00 [14:38:41]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [14:38:41]Write i2c OK [14:38:41]MH_I2C_Read... [14:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:41]Read from MH i2c: E2 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 17 00 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 39 [14:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:38:41]wFMCommunicate OK [14:38:41]CreateOFDProtocolMessage done [14:38:41]OFDSenderStorePacket 7697 [14:38:41]StoreOFDPacket docnum=7697 [14:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 8A CC 08 01 95 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 00 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC EE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 EC EE 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 F0 2B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 11 1E 00 00 35 04 06 00 54 20 81 70 45 FA A5 51 68 73 15 61 13 43 [14:38:41]CheckFolder [14:38:41]dirname=/storage/ofd_packets [14:38:41]CheckFolder done [14:38:41]ProducePacketName [14:38:41]name=ofd_packets/00007697 [14:38:41]NVStorageSaveData ofd_packets/00007697 [14:38:41]File name is /storage/ofd_packets/00007697 [14:38:41]Write 302 bytes [14:38:41]NVStorageSaveData done [14:38:41]OFDSenderStorePacket done [14:38:41]KKMCreateOFDPacket done [14:38:41]NVStorageSaveData kkm_last_timestamp [14:38:41]File name is /storage/kkm_last_timestamp [14:38:41]Write 4 bytes [14:38:41]NVStorageSaveData done [14:38:41]ExternCall_PrintAddStr [14:38:41]wPrintStart [14:38:41]Write to MH i2c: 01 00 00 6F 00 6F [14:38:41]Write i2c OK [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: 01 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: 01 07 00 [14:38:41]MH_I2C_Read... [14:38:41]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [14:38:41]RasterBufferAndPrint [14:38:41]line Счет N : (1)871801 [14:38:41]line ИНН: 02508201610067 [14:38:41]line Контрольно-Кассовый Чек [14:38:41]line ПРОДАЖА [14:38:41]line ТРК (МРК, ГНК) : 54 [14:38:41]line Товар: 2710194210 [14:38:41]line ДТ(л)-К-4 [14:38:41]line 16.640 * 76.20 [14:38:41]line = 1267.97 [14:38:41]line НДС 12% НСП 1% [14:38:41]line > о реализуемом товаре [14:38:41]line ОКРУГЛЕНИЕ: -0.97 [14:38:41]line ИТОГО: 1267.00 [14:38:41]line Внесено: 1267.00 [14:38:41]line СДАЧА: 0.00 [14:38:41]line НСП 1% : 11.22 [14:38:41]line НДС 12% : 134.65 [14:38:41]line Наличными: 1267.00 [14:38:41]line Безнал.: 0.00 [14:38:41]line Место: АЗС № 137 "Партнер Нефть" [14:38:41]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:38:41]line СНО: Общий режим [14:38:41]line Чек 95 22.09.2024 14:38 [14:38:41]line Смена: 70 ФФД: 1.0 [14:38:41]line ЗНМ: 0300000041 [14:38:41]line РНМ: 0000000000190446 [14:38:41]line Версия ККМ: v1.0 [14:38:41]line ФМ: 0000000002094258 [14:38:41]line ФД: 7697 [14:38:41]line ФПД: 92498587305466 [14:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143840&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7697&fm=92498587305466&tin=02508201610067®Number=0000000000190446&sum=126700 [14:38:41]OFD Sender: Processing packet 7697 [packets to send 51, broken 50] [14:38:41]ProducePacketName [14:38:41]name=ofd_packets/00007697 [14:38:41]OFD Sender: To server: pG, [14:38:41]CommunicateWithHost lk.salyk.kg:30040 [14:38:41]ConnectInit lk.salyk.kg [14:38:41]written 0, free lines is 4095 [14:38:42]Write to MH i2c: 01 00 00 9A 00 9A [14:38:42]Write i2c OK [14:38:42]MH_I2C_Read... [14:38:42]Read from MH i2c: 01 [14:38:42]MH_I2C_Read... [14:38:42]Read from MH i2c: 01 07 00 [14:38:42]MH_I2C_Read... [14:38:42]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 E9 0C 96 [14:38:42]RasterBufferAndPrint [14:38:42]line [14:38:42]line [14:38:42]line [14:38:42]line [14:38:42]line [14:38:42]written 0, free lines is 3311 [14:38:42]MH_Cut [14:38:42]Write to MH i2c: D1 01 00 A1 00 01 73 [14:38:42]Write i2c OK [14:38:42]MH_I2C_Read... [14:38:42]Read from MH i2c: D1 [14:38:42]MH_I2C_Read... [14:38:42]Read from MH i2c: D1 01 00 [14:38:42]MH_I2C_Read... [14:38:42]Read from MH i2c: D1 01 00 A1 00 00 72 [14:38:42]Write to MH i2c: 01 00 00 A2 00 A2 [14:38:42]Write i2c OK [14:38:42]MH_I2C_Read... [14:38:42]*** Cut start [14:38:42]*** Purtial cut [14:38:42]*** Stage 1: CUTSNS_PIN = 1 [14:38:43]Read from MH i2c: 01 [14:38:43]MH_I2C_Read... [14:38:43]*** Stop cut motor [14:38:43]*** Cut end [14:38:43]Read from MH i2c: 01 07 00 [14:38:43]MH_I2C_Read... [14:38:43]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [14:38:43]process_action close_receipt done [14:38:43]requested_data is exist [14:38:43]produce_requested_data [14:38:43]requested_item fm.sn is exist - process it [14:38:43]wFMCommunicate request_size=4 [14:38:43]MH_SAM_APDU [14:38:43]CAPDU: 80 11 00 00 [14:38:43]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [14:38:43]Write i2c OK [14:38:43]MH_I2C_Read... [14:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:43]Read from MH i2c: E2 [14:38:43]MH_I2C_Read... [14:38:43]Read from MH i2c: E2 17 00 [14:38:43]MH_I2C_Read... [14:38:43]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 6E [14:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:38:43]wFMCommunicate OK [14:38:43]requested_item fd.num is exist - process it [14:38:43]SAM_PROTO_GetFieldsCounters [14:38:43]wFMCommunicate request_size=4 [14:38:43]MH_SAM_APDU [14:38:43]CAPDU: 80 13 00 00 [14:38:43]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [14:38:43]Write i2c OK [14:38:43]MH_I2C_Read... [14:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:43]Read from MH i2c: E2 [14:38:43]MH_I2C_Read... [14:38:43]Read from MH i2c: E2 62 00 [14:38:43]MH_I2C_Read... [14:38:43]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 11 1E 00 00 0E 04 04 00 46 00 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 D0 [14:38:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 11 1E 00 00 0E 04 04 00 46 00 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 [14:38:43]wFMCommunicate OK [14:38:43]SAM_PROTO_GetFieldsCounters done [14:38:43]requested_item shift.num is exist - process it [14:38:43]requested_item shift.opened is exist - process it [14:38:43]req_shift_opened [14:38:43]FM_GetShiftState [14:38:43]SAM_PROTO_GetShiftState [14:38:43]wFMCommunicate request_size=4 [14:38:43]MH_SAM_APDU [14:38:43]CAPDU: 80 13 01 00 [14:38:43]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [14:38:43]Write i2c OK [14:38:43]MH_I2C_Read... [14:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:43]Read from MH i2c: E2 [14:38:43]MH_I2C_Read... [14:38:43]Read from MH i2c: E2 0E 00 [14:38:43]MH_I2C_Read... [14:38:43]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E5 [14:38:43]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:38:43]wFMCommunicate OK [14:38:43]SAM_PROTO_GetShiftState done [14:38:43]FM_GetShiftState done [14:38:43]req_shift_opened done [14:38:43]requested_item shift.open_date is exist - process it [14:38:43]req_shift_open_date [14:38:43]req_shift_open_date done [14:38:43]produce_requested_data done [14:38:43]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7697,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:38:43]process_action_free close_receipt [14:38:43]json_value_free [14:38:43]json_value_free done [14:38:43]process_json_proto returns [14:38:43]Send response to host [14:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7697,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:38:43]free response buf [14:38:43]execute_script done [14:38:43]execute_script returns [14:38:43]free content buf [14:38:43]Sock 10.Close socket [14:38:43]Sock 10.Thread stoped [14:38:45]Connected sock=11 [14:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 8A CC 08 01 95 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 00 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC EE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 EC EE 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 F0 2B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 11 1E 00 00 35 04 06 00 54 20 81 70 45 FA A5 51 68 73 15 61 13 43 [14:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 35 F6 47 00 E7 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 11 1E 00 00 F4 03 04 00 B3 D6 EF 66 B6 04 01 00 00 CD 7C 78 8E 30 DB 02 F0 [14:38:48]CommunicateWithHost err = 0 [14:38:48]CheckOFDResponse [14:38:48]1017 (14) - 77093643461234 [14:38:48]1041 (16) - 0000000002094258 [14:38:48]1040 (4) - 7697 [14:38:48]1012 (4) - 22.09.2024 08:34 [14:38:48]1206 (1) - 0 [14:38:48]OFD Sender: Remove packet 7697 [14:38:48]ProducePacketName [14:38:48]name=ofd_packets/00007697 [14:38:48]NVStorageDeleteData [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:11]recv_with_timeout no data received [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:47]accept exits with 8 [14:41:47]New connection [14:41:47]New thread 3066735972 created [14:41:47]Thread 3066592612 joined [14:41:47]Waiting for new connection... [14:41:47] Sock 8.Parse request [14:41:47]Sock 8.Check first char [14:41:47]Sock 8.First char is OK [14:41:47]request: POST /json_proto HTTP/1.0 [14:41:47]Method: POST [14:41:47]URL: /json_proto [14:41:47]Method is POST - this is cgi request [14:41:47]url: /json_proto [14:41:47]query_string will be loaded in cgi processing [14:41:47]execute_cgi json_proto POST (null) [14:41:47]execute_cgi path=json_proto method=POST [14:41:47]POST find Content-Length [14:41:47]Host: 172.17.47.195:8080 [14:41:47]Content-Length: 682 [14:41:47]Content-Type: application/json [14:41:47] [14:41:47]POST finish read [14:41:47]Found Content-Length = 682 [14:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.120, "sum" : 390.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:47]execute_script... [14: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)871804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.120, "sum" : 390.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:47]POST & json_proto [14:41:47]process_json_proto [14:41:47]json parsed OK: [14:41:47]protocol is kg_v1.0 [14:41:47]action value=close_receipt [14:41:47]process_action close_receipt [14:41:47]cmd_close_receipt [14:41:47]MH_GetDate [14:41:47]Write to MH i2c: F0 00 00 A6 00 95 [14:41:47]Write i2c OK [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: F0 [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: F0 09 00 [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: F0 09 00 A6 00 00 AC 2C F0 66 96 2E 95 66 8B [14:41:47]GetLastDocTimeStamp 1727015920 [14:41:47]current date 1727016108 [14:41:47]FM_GetShiftState [14:41:47]SAM_PROTO_GetShiftState [14:41:47]wFMCommunicate request_size=4 [14:41:47]MH_SAM_APDU [14:41:47]CAPDU: 80 13 01 00 [14:41:47]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [14:41:47]Write i2c OK [14:41:47]MH_I2C_Read... [14:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:47]Read from MH i2c: E2 [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: E2 0E 00 [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E7 [14:41:47]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:41:47]wFMCommunicate OK [14:41:47]SAM_PROTO_GetShiftState done [14:41:47]FM_GetShiftState done [14:41:47]opened in 1726964224 [14:41:47]opened+sec_in_day 1727050624 [14:41:47]quantity*price = 39014 [14:41:47]sum+1 = 39015 [14:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.45 НДС 12% : 41.43 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 96 22.09.2024 14:41 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7698 ФПД: 134506983297322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144148&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7698&fm=134506983297322&tin=02508201610067®Number=0000000000190446&sum=39000 [14:41:48]StoreToDocumentArchive [14:41:48]shift 70 fd 7698 [14:41:48]save to /storage/0070/doc_00007698 [14:41:48]save last doc name /storage/0070/doc_00007698 to /storage/kkm_last_doc_name [14:41:48]save OK [14:41:48]Clear old archive folders... [14:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:41:48]tlvbuf is 012C0F80 [14:41:48]SAM_PROTO_ClearQueue [14:41:48]wFMCommunicate request_size=4 [14:41:48]MH_SAM_APDU [14:41:48]CAPDU: 80 09 00 00 [14:41:48]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [14:41:48]Write i2c OK [14:41:48]MH_I2C_Read... [14:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:48]Read from MH i2c: E2 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 03 00 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [14:41:48]RAPDU: 90 00 [14:41:48]wFMCommunicate OK [14:41:48]SAM_PROTO_ClearQueue done [14:41:48]KKMCreateOFDPacket [14:41:48]OFDProtocolAddRootSTLVToBuf [14:41:48]FM_MakeSignedData [14:41:48]FM_MakeSignedData [14:41:48]SAM_PROTO_SignData [14:41:48]wFMCommunicate request_size=4 [14:41:48]MH_SAM_APDU [14:41:48]CAPDU: 80 0D 01 02 [14:41:48]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [14:41:48]Write i2c OK [14:41:48]MH_I2C_Read... [14:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:48]Read from MH i2c: E2 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 03 00 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [14:41:48]RAPDU: 90 00 [14:41:48]wFMCommunicate OK [14:41:48]wFMCommunicate request_size=255 [14:41:48]MH_SAM_APDU [14:41:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 66 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 AC 2C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 12 1E 00 00 35 04 06 00 [14:41:48]Write to MH i2c: E2 02 01 B6 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 34 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 66 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 AC 2C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 12 1E 00 00 35 04 06 00 00 00 DF [14:41:48]Write i2c OK [14:41:48]MH_I2C_Read... [14:41:49]OFD Sender: No OFD packet to send [14:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:49]Read from MH i2c: E2 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 03 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [14:41:49]RAPDU: 90 00 [14:41:49]wFMCommunicate OK [14:41:49]wFMCommunicate request_size=11 [14:41:49]MH_SAM_APDU [14:41:49]CAPDU: 80 0D 02 02 06 7A 55 58 F5 91 2A [14:41:49]Write to MH i2c: E2 0E 00 B7 00 80 0D 02 02 06 00 7A 55 58 F5 91 2A 00 00 14 [14:41:49]Write i2c OK [14:41:49]MH_I2C_Read... [14:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:49]Read from MH i2c: E2 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 03 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [14:41:49]RAPDU: 90 00 [14:41:49]wFMCommunicate OK [14:41:49]wFMCommunicate request_size=4 [14:41:49]MH_SAM_APDU [14:41:49]CAPDU: 80 0D 03 02 [14:41:49]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [14:41:49]Write i2c OK [14:41:49]MH_I2C_Read... [14:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:49]Read from MH i2c: E2 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 0B 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 0B 00 B8 00 00 A6 7D 14 29 D6 DE C2 9D 90 00 A7 [14:41:49]RAPDU: A6 7D 14 29 D6 DE C2 9D 90 00 [14:41:49]wFMCommunicate OK [14:41:49]SAM_PROTO_SignData done [14:41:49]FM_MakeSignedData done [14:41:49]CreateOFDProtocolMessage [14:41:49]wFMCommunicate request_size=4 [14:41:49]MH_SAM_APDU [14:41:49]CAPDU: 80 11 00 00 [14:41:49]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [14:41:49]Write i2c OK [14:41:49]MH_I2C_Read... [14:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:49]Read from MH i2c: E2 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 17 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 84 [14:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:41:49]wFMCommunicate OK [14:41:49]CreateOFDProtocolMessage done [14:41:49]OFDSenderStorePacket 7698 [14:41:49]StoreOFDPacket docnum=7698 [14:41:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 54 C0 08 01 C4 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 66 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 AC 2C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 12 1E 00 00 35 04 06 00 7A 55 58 F5 91 2A A6 7D 14 29 D6 DE C2 9D [14:41:49]CheckFolder [14:41:49]dirname=/storage/ofd_packets [14:41:49]CheckFolder done [14:41:49]ProducePacketName [14:41:49]name=ofd_packets/00007698 [14:41:49]NVStorageSaveData ofd_packets/00007698 [14:41:49]File name is /storage/ofd_packets/00007698 [14:41:49]Write 302 bytes [14:41:49]NVStorageSaveData done [14:41:49]OFDSenderStorePacket done [14:41:49]KKMCreateOFDPacket done [14:41:49]NVStorageSaveData kkm_last_timestamp [14:41:49]File name is /storage/kkm_last_timestamp [14:41:49]Write 4 bytes [14:41:49]NVStorageSaveData done [14:41:49]ExternCall_PrintAddStr [14:41:49]wPrintStart [14:41:49]Write to MH i2c: 01 00 00 BA 00 BA [14:41:49]Write i2c OK [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: 01 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: 01 07 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [14:41:49]RasterBufferAndPrint [14:41:49]line Счет N : (1)871804 [14:41:49]line ИНН: 02508201610067 [14:41:49]line Контрольно-Кассовый Чек [14:41:49]line ПРОДАЖА [14:41:49]line ТРК (МРК, ГНК) : 54 [14:41:49]line Товар: 2710194210 [14:41:49]line ДТ(л)-К-4 [14:41:49]line 5.120 * 76.20 [14:41:49]line = 390.14 [14:41:49]line НДС 12% НСП 1% [14:41:49]line > о реализуемом товаре [14:41:49]line ОКРУГЛЕНИЕ: -0.14 [14:41:49]line ИТОГО: 390.00 [14:41:49]line Внесено: 390.00 [14:41:49]line СДАЧА: 0.00 [14:41:49]line НСП 1% : 3.45 [14:41:49]line НДС 12% : 41.43 [14:41:49]line Наличными: 390.00 [14:41:49]line Безнал.: 0.00 [14:41:49]line Место: АЗС № 137 "Партнер Нефть" [14:41:49]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:41:49]line СНО: Общий режим [14:41:49]line Чек 96 22.09.2024 14:41 [14:41:49]line Смена: 70 ФФД: 1.0 [14:41:49]line ЗНМ: 0300000041 [14:41:49]line РНМ: 0000000000190446 [14:41:49]line Версия ККМ: v1.0 [14:41:49]line ФМ: 0000000002094258 [14:41:49]line ФД: 7698 [14:41:49]line ФПД: 134506983297322 [14:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144148&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7698&fm=134506983297322&tin=02508201610067®Number=0000000000190446&sum=39000 [14:41:49]OFD Sender: Processing packet 7698 [packets to send 51, broken 50] [14:41:49]ProducePacketName [14:41:49]name=ofd_packets/00007698 [14:41:49]OFD Sender: To server: pG, [14:41:49]CommunicateWithHost lk.salyk.kg:30040 [14:41:49]ConnectInit lk.salyk.kg [14:41:49]written 0, free lines is 4095 [14:41:50]Write to MH i2c: 01 00 00 E5 00 E5 [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: 01 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: 01 07 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 E5 0C DD [14:41:50]RasterBufferAndPrint [14:41:50]line [14:41:50]line [14:41:50]line [14:41:50]line [14:41:50]line [14:41:50]written 0, free lines is 3307 [14:41:50]MH_Cut [14:41:50]Write to MH i2c: D1 01 00 EC 00 01 BE [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: D1 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: D1 01 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: D1 01 00 EC 00 00 BD [14:41:50]Write to MH i2c: 01 00 00 ED 00 ED [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]*** Cut start [14:41:50]*** Purtial cut [14:41:50]*** Stage 1: CUTSNS_PIN = 1 [14:41:50]Read from MH i2c: 01 [14:41:50]MH_I2C_Read... [14:41:50]*** Stop cut motor [14:41:50]*** Cut end [14:41:50]Read from MH i2c: 01 07 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [14:41:50]process_action close_receipt done [14:41:50]requested_data is exist [14:41:50]produce_requested_data [14:41:50]requested_item fm.sn is exist - process it [14:41:50]wFMCommunicate request_size=4 [14:41:50]MH_SAM_APDU [14:41:50]CAPDU: 80 11 00 00 [14:41:50]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:51]Connected sock=10 [14:41:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 54 C0 08 01 C4 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 66 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 AC 2C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 12 1E 00 00 35 04 06 00 7A 55 58 F5 91 2A A6 7D 14 29 D6 DE C2 9D [14:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 17 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 B9 [14:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:41:51]wFMCommunicate OK [14:41:51]requested_item fd.num is exist - process it [14:41:51]SAM_PROTO_GetFieldsCounters [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 13 00 00 [14:41:51]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 62 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 12 1E 00 00 0E 04 04 00 46 00 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 1F [14:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 12 1E 00 00 0E 04 04 00 46 00 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 [14:41:51]wFMCommunicate OK [14:41:51]SAM_PROTO_GetFieldsCounters done [14:41:51]requested_item shift.num is exist - process it [14:41:51]requested_item shift.opened is exist - process it [14:41:51]req_shift_opened [14:41:51]FM_GetShiftState [14:41:51]SAM_PROTO_GetShiftState [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 13 01 00 [14:41:51]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 0E 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 30 [14:41:51]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:41:51]wFMCommunicate OK [14:41:51]SAM_PROTO_GetShiftState done [14:41:51]FM_GetShiftState done [14:41:51]req_shift_opened done [14:41:51]requested_item shift.open_date is exist - process it [14:41:51]req_shift_open_date [14:41:51]req_shift_open_date done [14:41:51]produce_requested_data done [14:41:51]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7698,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:41:51]process_action_free close_receipt [14:41:51]json_value_free [14:41:51]json_value_free done [14:41:51]process_json_proto returns [14:41:51]Send response to host [14:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7698,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:41:51]free response buf [14:41:51]execute_script done [14:41:51]execute_script returns [14:41:51]free content buf [14:41:51]Sock 8.Close socket [14:41:51]Sock 8.Thread stoped [14:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 65 C9 47 00 87 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 32 30 39 34 32 35 38 10 04 04 00 12 1E 00 00 F4 03 04 00 6C D7 EF 66 B6 04 01 00 00 6D 79 F2 F3 31 A8 A7 A9 [14:41:51]CommunicateWithHost err = 0 [14:41:51]CheckOFDResponse [14:41:51]1017 (14) - 77093643461234 [14:41:51]1041 (16) - 0000000002094258 [14:41:51]1040 (4) - 7698 [14:41:51]1012 (4) - 22.09.2024 08:38 [14:41:51]1206 (1) - 0 [14:41:51]OFD Sender: Remove packet 7698 [14:41:51]ProducePacketName [14:41:51]name=ofd_packets/00007698 [14:41:51]NVStorageDeleteData [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:41:58]recv_with_timeout no data received [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:20]recv_with_timeout no data received [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:29]recv_with_timeout no data received [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:43:58]accept exits with 9 [14:43:58]New connection [14:43:58]New thread 3066592612 created [14:43:58]Thread 3066735972 joined [14:43:58]Waiting for new connection... [14:43:58] Sock 9.Parse request [14:43:58]Sock 9.Check first char [14:43:58]Sock 9.First char is OK [14:43:58]request: POST /json_proto HTTP/1.0 [14:43:58]Method: POST [14:43:58]URL: /json_proto [14:43:58]Method is POST - this is cgi request [14:43:58]url: /json_proto [14:43:58]query_string will be loaded in cgi processing [14:43:58]execute_cgi json_proto POST (null) [14:43:58]execute_cgi path=json_proto method=POST [14:43:58]POST find Content-Length [14:43:58]Host: 172.17.47.195:8080 [14:43:58]Content-Length: 677 [14:43:58]Content-Type: application/json [14:43:58] [14:43:58]POST finish read [14:43:58]Found Content-Length = 677 [14:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871805", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:58]execute_script... [14:43:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871805", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:58]POST & json_proto [14:43:58]process_json_proto [14:43:58]json parsed OK: [14:43:58]protocol is kg_v1.0 [14:43:58]action value=close_receipt [14:43:58]process_action close_receipt [14:43:58]cmd_close_receipt [14:43:58]MH_GetDate [14:43:58]Write to MH i2c: F0 00 00 F1 00 E0 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: F0 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: F0 09 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: F0 09 00 F1 00 00 2F 2D F0 66 96 2E 95 66 5A [14:43:58]GetLastDocTimeStamp 1727016108 [14:43:58]current date 1727016239 [14:43:58]FM_GetShiftState [14:43:58]SAM_PROTO_GetShiftState [14:43:58]wFMCommunicate request_size=4 [14:43:58]MH_SAM_APDU [14:43:58]CAPDU: 80 13 01 00 [14:43:58]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:58]Read from MH i2c: E2 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 0E 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 32 [14:43:58]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:43:58]wFMCommunicate OK [14:43:58]SAM_PROTO_GetShiftState done [14:43:58]FM_GetShiftState done [14:43:58]opened in 1726964224 [14:43:58]opened+sec_in_day 1727050624 [14:43:58]quantity*price = 50036 [14:43:58]sum+1 = 50037 [14:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 97 22.09.2024 14:43 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7699 ФПД: 196912363297462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144359&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7699&fm=196912363297462&tin=02508201610067®Number=0000000000190446&sum=50000 [14:43:59]StoreToDocumentArchive [14:43:59]shift 70 fd 7699 [14:43:59]save to /storage/0070/doc_00007699 [14:43:59]save last doc name /storage/0070/doc_00007699 to /storage/kkm_last_doc_name [14:43:59]save OK [14:43:59]Clear old archive folders... [14:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:59]tlvbuf is 012BD580 [14:43:59]SAM_PROTO_ClearQueue [14:43:59]wFMCommunicate request_size=4 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 09 00 00 [14:43:59]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:59]Read from MH i2c: E2 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [14:43:59]RAPDU: 90 00 [14:43:59]wFMCommunicate OK [14:43:59]SAM_PROTO_ClearQueue done [14:43:59]KKMCreateOFDPacket [14:43:59]OFDProtocolAddRootSTLVToBuf [14:43:59]FM_MakeSignedData [14:43:59]FM_MakeSignedData [14:43:59]SAM_PROTO_SignData [14:43:59]wFMCommunicate request_size=4 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 0D 01 02 [14:43:59]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:59]Read from MH i2c: E2 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [14:43:59]RAPDU: 90 00 [14:43:59]wFMCommunicate OK [14:43:59]wFMCommunicate request_size=255 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2F 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 13 1E 00 00 35 04 06 00 B3 [14:43:59]Write to MH i2c: E2 02 01 01 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2F 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 13 1E 00 00 35 04 06 00 B3 00 00 33 [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:59]Read from MH i2c: E2 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [14:43:59]RAPDU: 90 00 [14:43:59]wFMCommunicate OK [14:43:59]wFMCommunicate request_size=10 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 0D 02 02 05 17 3B 77 5A B6 [14:43:59]Write to MH i2c: E2 0D 00 02 01 80 0D 02 02 05 00 17 3B 77 5A B6 00 00 60 [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:59]Read from MH i2c: E2 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [14:43:59]RAPDU: 90 00 [14:43:59]wFMCommunicate OK [14:43:59]wFMCommunicate request_size=4 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 0D 03 02 [14:43:59]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 0B 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 0B 00 03 01 00 48 AE 42 5C 68 0F 08 1F 90 00 B2 [14:44:00]RAPDU: 48 AE 42 5C 68 0F 08 1F 90 00 [14:44:00]wFMCommunicate OK [14:44:00]SAM_PROTO_SignData done [14:44:00]FM_MakeSignedData done [14:44:00]CreateOFDProtocolMessage [14:44:00]wFMCommunicate request_size=4 [14:44:00]MH_SAM_APDU [14:44:00]CAPDU: 80 11 00 00 [14:44:00]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 17 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D0 [14:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:44:00]wFMCommunicate OK [14:44:00]CreateOFDProtocolMessage done [14:44:00]OFDSenderStorePacket 7699 [14:44:00]StoreOFDPacket docnum=7699 [14:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 39 69 07 01 C6 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2F 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 13 1E 00 00 35 04 06 00 B3 17 3B 77 5A B6 48 AE 42 5C 68 0F 08 1F [14:44:00]CheckFolder [14:44:00]dirname=/storage/ofd_packets [14:44:00]CheckFolder done [14:44:00]ProducePacketName [14:44:00]name=ofd_packets/00007699 [14:44:00]NVStorageSaveData ofd_packets/00007699 [14:44:00]File name is /storage/ofd_packets/00007699 [14:44:00]Write 301 bytes [14:44:00]NVStorageSaveData done [14:44:00]OFDSenderStorePacket done [14:44:00]KKMCreateOFDPacket done [14:44:00]NVStorageSaveData kkm_last_timestamp [14:44:00]File name is /storage/kkm_last_timestamp [14:44:00]Write 4 bytes [14:44:00]NVStorageSaveData done [14:44:00]ExternCall_PrintAddStr [14:44:00]wPrintStart [14:44:00]Write to MH i2c: 01 00 00 05 01 06 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 07 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [14:44:00]RasterBufferAndPrint [14:44:00]line Счет N : (1)871805 [14:44:00]line ИНН: 02508201610067 [14:44:00]line Контрольно-Кассовый Чек [14:44:00]line ПРОДАЖА [14:44:00]line ТРК (МРК, ГНК) : 63 [14:44:00]line Товар: 2710124130 [14:44:00]line Аи-92-К-5 [14:44:00]line 7.380 * 67.80 [14:44:00]line = 500.36 [14:44:00]line НДС 12% НСП 1% [14:44:00]line > о реализуемом товаре [14:44:00]line ОКРУГЛЕНИЕ: -0.36 [14:44:00]line ИТОГО: 500.00 [14:44:00]line Внесено: 500.00 [14:44:00]line СДАЧА: 0.00 [14:44:00]line НСП 1% : 4.43 [14:44:00]line НДС 12% : 53.14 [14:44:00]line Наличными: 500.00 [14:44:00]line Безнал.: 0.00 [14:44:00]line Место: АЗС № 137 "Партнер Нефть" [14:44:00]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:44:00]line СНО: Общий режим [14:44:00]line Чек 97 22.09.2024 14:43 [14:44:00]line Смена: 70 ФФД: 1.0 [14:44:00]line ЗНМ: 0300000041 [14:44:00]line РНМ: 0000000000190446 [14:44:00]line Версия ККМ: v1.0 [14:44:00]line ФМ: 0000000002094258 [14:44:00]line ФД: 7699 [14:44:00]line ФПД: 196912363297462 [14:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144359&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7699&fm=196912363297462&tin=02508201610067®Number=0000000000190446&sum=50000 [14:44:00]OFD Sender: Processing packet 7699 [packets to send 51, broken 50] [14:44:00]ProducePacketName [14:44:00]name=ofd_packets/00007699 [14:44:00]OFD Sender: To server: pG, [14:44:00]CommunicateWithHost lk.salyk.kg:30040 [14:44:00]ConnectInit lk.salyk.kg [14:44:00]written 0, free lines is 4095 [14:44:00]Write to MH i2c: 01 00 00 30 01 31 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 07 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 E7 0C 2B [14:44:00]RasterBufferAndPrint [14:44:00]line [14:44:00]line [14:44:00]line [14:44:00]line [14:44:00]line [14:44:00]written 0, free lines is 3309 [14:44:00]MH_Cut [14:44:00]Write to MH i2c: D1 01 00 37 01 01 0A [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: D1 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: D1 01 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: D1 01 00 37 01 00 09 [14:44:00]Write to MH i2c: 01 00 00 38 01 39 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:01]*** Cut start [14:44:01]*** Purtial cut [14:44:01]*** Stage 1: CUTSNS_PIN = 1 [14:44:01]Read from MH i2c: 01 [14:44:01]MH_I2C_Read... [14:44:01]*** Stop cut motor [14:44:01]*** Cut end [14:44:01]Read from MH i2c: 01 07 00 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 FF 0F 4E [14:44:01]process_action close_receipt done [14:44:01]requested_data is exist [14:44:01]produce_requested_data [14:44:01]requested_item fm.sn is exist - process it [14:44:01]wFMCommunicate request_size=4 [14:44:01]MH_SAM_APDU [14:44:01]CAPDU: 80 11 00 00 [14:44:01]Write to MH i2c: E2 08 00 39 01 80 11 00 00 00 00 00 00 B4 [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:01]Read from MH i2c: E2 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 17 00 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 17 00 39 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 05 [14:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:44:01]wFMCommunicate OK [14:44:01]requested_item fd.num is exist - process it [14:44:01]SAM_PROTO_GetFieldsCounters [14:44:01]wFMCommunicate request_size=4 [14:44:01]MH_SAM_APDU [14:44:01]CAPDU: 80 13 00 00 [14:44:01]Write to MH i2c: E2 08 00 3A 01 80 13 00 00 00 00 00 00 B7 [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:02]Read from MH i2c: E2 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 62 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 62 00 3A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 13 1E 00 00 0E 04 04 00 46 00 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 6F [14:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 13 1E 00 00 0E 04 04 00 46 00 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 [14:44:02]wFMCommunicate OK [14:44:02]SAM_PROTO_GetFieldsCounters done [14:44:02]requested_item shift.num is exist - process it [14:44:02]requested_item shift.opened is exist - process it [14:44:02]req_shift_opened [14:44:02]FM_GetShiftState [14:44:02]SAM_PROTO_GetShiftState [14:44:02]wFMCommunicate request_size=4 [14:44:02]MH_SAM_APDU [14:44:02]CAPDU: 80 13 01 00 [14:44:02]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:02]Read from MH i2c: E2 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 0E 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 7C [14:44:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:44:02]wFMCommunicate OK [14:44:02]SAM_PROTO_GetShiftState done [14:44:02]FM_GetShiftState done [14:44:02]req_shift_opened done [14:44:02]requested_item shift.open_date is exist - process it [14:44:02]req_shift_open_date [14:44:02]req_shift_open_date done [14:44:02]produce_requested_data done [14:44:02]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7699,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:44:02]process_action_free close_receipt [14:44:02]json_value_free [14:44:02]json_value_free done [14:44:02]process_json_proto returns [14:44:02]Send response to host [14:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7699,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:44:02]free response buf [14:44:02]execute_script done [14:44:02]execute_script returns [14:44:02]free content buf [14:44:02]Sock 9.Close socket [14:44:02]Sock 9.Thread stoped [14:44:03]Connected sock=11 [14:44:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 39 69 07 01 C6 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2F 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 13 1E 00 00 35 04 06 00 B3 17 3B 77 5A B6 48 AE 42 5C 68 0F 08 1F [14:44:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 AA 2D 47 00 7E 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 32 30 39 34 32 35 38 10 04 04 00 13 1E 00 00 F4 03 04 00 F1 D7 EF 66 B6 04 01 00 00 3E 6D 8B 1B 6B A4 3E 0C [14:44:08]CommunicateWithHost err = 0 [14:44:08]CheckOFDResponse [14:44:08]1017 (14) - 77093643461234 [14:44:08]1041 (16) - 0000000002094258 [14:44:08]1040 (4) - 7699 [14:44:08]1012 (4) - 22.09.2024 08:40 [14:44:08]1206 (1) - 0 [14:44:08]OFD Sender: Remove packet 7699 [14:44:08]ProducePacketName [14:44:08]name=ofd_packets/00007699 [14:44:08]NVStorageDeleteData [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:16]recv_with_timeout no data received [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:40]accept exits with 10 [14:44:40]New connection [14:44:40]New thread 3066735972 created [14:44:40]Thread 3066592612 joined [14:44:40]Waiting for new connection... [14:44:40] Sock 10.Parse request [14:44:40]Sock 10.Check first char [14:44:40]Sock 10.First char is OK [14:44:40]request: POST /json_proto HTTP/1.0 [14:44:40]Method: POST [14:44:40]URL: /json_proto [14:44:40]Method is POST - this is cgi request [14:44:40]url: /json_proto [14:44:40]query_string will be loaded in cgi processing [14:44:40]execute_cgi json_proto POST (null) [14:44:40]execute_cgi path=json_proto method=POST [14:44:40]POST find Content-Length [14:44:40]Host: 172.17.47.195:8080 [14:44:40]Content-Length: 824 [14:44:40]Content-Type: application/json [14:44:40] [14:44:40]POST finish read [14:44:40]Found Content-Length = 824 [14:44:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1100.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:40]execute_script... [14:44: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)871806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1100.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:40]POST & json_proto [14:44:40]process_json_proto [14:44:40]json parsed OK: [14:44:40]protocol is kg_v1.0 [14:44:40]action value=close_receipt [14:44:40]process_action close_receipt [14:44:40]cmd_close_receipt [14:44:40]MH_GetDate [14:44:40]Write to MH i2c: F0 00 00 3C 01 2C [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: F0 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: F0 09 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: F0 09 00 3C 01 00 58 2D F0 66 96 2E 95 66 CF [14:44:40]GetLastDocTimeStamp 1727016239 [14:44:40]current date 1727016280 [14:44:40]FM_GetShiftState [14:44:40]SAM_PROTO_GetShiftState [14:44:40]wFMCommunicate request_size=4 [14:44:40]MH_SAM_APDU [14:44:40]CAPDU: 80 13 01 00 [14:44:40]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:40]Read from MH i2c: E2 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 0E 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 7E [14:44:40]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:44:40]wFMCommunicate OK [14:44:40]SAM_PROTO_GetShiftState done [14:44:40]FM_GetShiftState done [14:44:40]opened in 1726964224 [14:44:40]opened+sec_in_day 1727050624 [14:44:40]quantity*price = 110032 [14:44:40]sum+1 = 110034 [14:44:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.33 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 0.00 Безнал.: 1100.33 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 98 22.09.2024 14:44 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094258 ФД: 7700 ФПД: 162723781926859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144441&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7700&fm=162723781926859&tin=02508201610067®Number=0000000000190446&sum=110033 [14:44:41]StoreToDocumentArchive [14:44:41]shift 70 fd 7700 [14:44:41]save to /storage/0070/doc_00007700 [14:44:41]save last doc name /storage/0070/doc_00007700 to /storage/kkm_last_doc_name [14:44:41]save OK [14:44:41]Clear old archive folders... [14:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:44:41]tlvbuf is 012DCAA0 [14:44:41]SAM_PROTO_ClearQueue [14:44:41]wFMCommunicate request_size=4 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 09 00 00 [14:44:41]Write to MH i2c: E2 08 00 4A 01 80 09 00 00 00 00 00 00 BD [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:41]Read from MH i2c: E2 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 03 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [14:44:41]RAPDU: 90 00 [14:44:41]wFMCommunicate OK [14:44:41]SAM_PROTO_ClearQueue done [14:44:41]KKMCreateOFDPacket [14:44:41]OFDProtocolAddRootSTLVToBuf [14:44:41]FM_MakeSignedData [14:44:41]FM_MakeSignedData [14:44:41]SAM_PROTO_SignData [14:44:41]wFMCommunicate request_size=4 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 0D 01 02 [14:44:41]Write to MH i2c: E2 08 00 4B 01 80 0D 01 02 00 00 00 00 C5 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:41]Read from MH i2c: E2 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 03 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [14:44:41]RAPDU: 90 00 [14:44:41]wFMCommunicate OK [14:44:41]wFMCommunicate request_size=255 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 59 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 14 1E 00 00 35 04 06 00 [14:44:41]Write to MH i2c: E2 02 01 4C 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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 59 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 14 1E 00 00 35 04 06 00 00 00 5D [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:41]Read from MH i2c: E2 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 03 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [14:44:41]RAPDU: 90 00 [14:44:41]wFMCommunicate OK [14:44:41]wFMCommunicate request_size=11 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 0D 02 02 06 93 FF 15 37 DF CB [14:44:41]Write to MH i2c: E2 0E 00 4D 01 80 0D 02 02 06 00 93 FF 15 37 DF CB 00 00 5C [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:41]Read from MH i2c: E2 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 03 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [14:44:41]RAPDU: 90 00 [14:44:41]wFMCommunicate OK [14:44:41]wFMCommunicate request_size=4 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 0D 03 02 [14:44:41]Write to MH i2c: E2 08 00 4E 01 80 0D 03 02 00 00 00 00 CA [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:41]Read from MH i2c: E2 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 0B 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 0B 00 4E 01 00 BF 24 94 A5 05 EF D7 FB 90 00 AD [14:44:41]RAPDU: BF 24 94 A5 05 EF D7 FB 90 00 [14:44:41]wFMCommunicate OK [14:44:41]SAM_PROTO_SignData done [14:44:41]FM_MakeSignedData done [14:44:41]CreateOFDProtocolMessage [14:44:41]wFMCommunicate request_size=4 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 11 00 00 [14:44:41]Write to MH i2c: E2 08 00 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5963696+1721052822=1727016518 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 47 2E F0 66 96 2E 95 66 89 [14:48:39]Current date/time: 22.09.2024 14:48 [14:48:39]FM_Init [14:48:39]wFMConnect [14:48:39]MH_SAM_On [14:48:39]Write to MH i2c: E0 00 00 08 00 E7 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_init finished! [14:48:39]*** atr: [14:48:39]*** 0F 3B D5 18 FF 81 91 FE [14:48:39]*** 1F C3 80 73 C8 21 10 0A [14:48:39]*** 00 00 00 00 00 00 00 00 [14:48:39]*** 00 00 00 00 00 00 00 00 [14:48:39]*** 00 00 00 00 00 00 00 00 [14:48:39]*** 00 00 00 00 00 00 00 00 [14:48:39]*** 00 00 00 00 00 00 00 00 [14:48:39]*** 00 00 00 00 00 00 00 00 [14:48:39]Read from MH i2c: E0 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E0 10 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:48:39]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:48:39]wFMCommunicate request_size=10 [14:48:39]MH_SAM_APDU [14:48:39]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:48:39]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 03 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:48:39]RAPDU: 90 00 [14:48:39]wFMCommunicate OK [14:48:39]wFMCommunicate request_size=4 [14:48:39]MH_SAM_APDU [14:48:39]CAPDU: 80 11 00 00 [14:48:39]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 17 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [14:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:48:39]wFMCommunicate OK [14:48:39]Detected FM SN is 0000000002094258 [14:48:39]Stored FM SN is 0000000002094258 [14:48:39]wFMCommunicate request_size=9 [14:48:39]MH_SAM_APDU [14:48:39]CAPDU: 80 16 00 00 04 BC C2 00 00 [14:48:39]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 03 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:48:39]RAPDU: 90 00 [14:48:39]wFMCommunicate OK [14:48:39]FM PIN OK [14:48:39]wFMCommunicate request_size=8 [14:48:39]MH_SAM_APDU [14:48:39]CAPDU: 80 14 04 00 03 02 00 01 [14:48:39]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 03 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:48:39]RAPDU: 90 00 [14:48:39]wFMCommunicate OK [14:48:39]wFMCommunicate request_size=13 [14:48:39]MH_SAM_APDU [14:48:39]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:48:39]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 03 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:48:39]RAPDU: 90 00 [14:48:39]wFMCommunicate OK [14:48:39]wFMCommunicate request_size=4 [14:48:39]MH_SAM_APDU [14:48:39]CAPDU: 80 11 00 00 [14:48:39]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 17 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [14:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:48:39]wFMCommunicate OK [14:48:39]DocumentArchiveInit [14:48:39]Start Httpd... [14:48:39]Httpd thread 3067342180 created [14:48:39]Write to MH i2c: 01 00 00 0F 00 0F [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 07 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:48:39]MH Int Process started [14:48:39]Allocated Socket 8 [14:48:39]Bind OK [14:48:39]Listen OK [14:48:39]httpd running on port 8080 [14:48:39]Waiting for new connection... [14:48:39]OFD Sender: Processing packet 7700 [packets to send 52, broken 50] [14:48:39]ProducePacketName [14:48:39]name=ofd_packets/00007700 [14:48:39]OFD Sender: To server: pG, [14:48:39]CommunicateWithHost lk.salyk.kg:30040 [14:48:39]ConnectInit lk.salyk.kg [14:48:41]Connected sock=9 [14:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 B7 F7 08 01 98 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 59 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 14 1E 00 00 35 04 06 00 93 FF 15 37 DF CB BF 24 94 A5 05 EF D7 FB [14:48:42]accept exits with 6 [14:48:42]New connection [14:48:42]New thread 3067055460 created [14:48:42]Waiting for new connection... [14:48:42] Sock 6.Parse request [14:48:42]Sock 6.Check first char [14:48:42]Sock 6.First char is OK [14:48:42]request: POST /json_proto HTTP/1.0 [14:48:42]Method: POST [14:48:42]URL: /json_proto [14:48:42]Method is POST - this is cgi request [14:48:42]url: /json_proto [14:48:42]query_string will be loaded in cgi processing [14:48:42]execute_cgi json_proto POST (null) [14:48:42]execute_cgi path=json_proto method=POST [14:48:42]POST find Content-Length [14:48:42]Host: 172.17.47.195:8080 [14:48:42]Content-Length: 215 [14:48:42]Content-Type: application/json [14:48:42] [14:48:42]POST finish read [14:48:42]Found Content-Length = 215 [14:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:42]execute_script... [14:48:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:42]POST & json_proto [14:48:42]process_json_proto [14:48:42]json parsed OK: [14:48:42]protocol is kg_v1.0 [14:48:42]action value=get_value [14:48:42]process_action get_value [14:48:42]cmd_get_value [14:48:42]process_action get_value done [14:48:42]requested_data is exist [14:48:42]produce_requested_data [14:48:42]requested_item kkm.sn is exist - process it [14:48:42]requested_item kkm.ver is exist - process it [14:48:42]requested_item fm.sn is exist - process it [14:48:42]wFMCommunicate request_size=4 [14:48:42]MH_SAM_APDU [14:48:42]CAPDU: 80 11 00 00 [14:48:42]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:48:42]Write i2c OK [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: E2 [14:48:42]MH_I2C_Read... [14:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:42]Read from MH i2c: E2 17 00 [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [14:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:48:42]wFMCommunicate OK [14:48:42]requested_item fd.num is exist - process it [14:48:42]SAM_PROTO_GetFieldsCounters [14:48:42]wFMCommunicate request_size=4 [14:48:42]MH_SAM_APDU [14:48:42]CAPDU: 80 13 00 00 [14:48:42]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:48:42]Write i2c OK [14:48:42]MH_I2C_Read... [14:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 B6 98 47 00 48 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 14 1E 00 00 F4 03 04 00 06 D9 EF 66 B6 04 01 00 00 0C 52 97 73 84 FE 74 0C [14:48:42]CommunicateWithHost err = 0 [14:48:42]CheckOFDResponse [14:48:42]1017 (14) - 77093643461234 [14:48:42]1041 (16) - 0000000002094258 [14:48:42]1040 (4) - 7700 [14:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:42]1012 (4) - 22.09.2024 08:44 [14:48:42]1206 (1) - 0 [14:48:42]OFD Sender: Remove packet 7700 [14:48:42]ProducePacketName [14:48:42]name=ofd_packets/00007700 [14:48:42]NVStorageDeleteData [14:48:42]Read from MH i2c: E2 [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: E2 62 00 [14:48:42]MH_I2C_Read... [14:48:42]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 15 1E 00 00 0E 04 04 00 46 00 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 4D [14:48:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 15 1E 00 00 0E 04 04 00 46 00 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 [14:48:42]wFMCommunicate OK [14:48:42]SAM_PROTO_GetFieldsCounters done [14:48:42]requested_item shift.num is exist - process it [14:48:42]requested_item shift.opened is exist - process it [14:48:42]req_shift_opened [14:48:42]FM_GetShiftState [14:48:42]SAM_PROTO_GetShiftState [14:48:42]wFMCommunicate request_size=4 [14:48:42]MH_SAM_APDU [14:48:42]CAPDU: 80 13 01 00 [14:48:42]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:48:42]Write i2c OK [14:48:42]MH_I2C_Read... [14:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:42]Read from MH i2c: E2 [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: E2 0E 00 [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [14:48:42]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:48:42]wFMCommunicate OK [14:48:42]SAM_PROTO_GetShiftState done [14:48:42]FM_GetShiftState done [14:48:42]req_shift_opened done [14:48:42]requested_item shift.open_date is exist - process it [14:48:42]req_shift_open_date [14:48:42]req_shift_open_date done [14:48:42]produce_requested_data done [14:48:42]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7701,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:48:42]process_action_free get_value [14:48:42]json_value_free [14:48:42]json_value_free done [14:48:42]process_json_proto returns [14:48:42]Send response to host [14:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7701,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:48:42]free response buf [14:48:42]execute_script done [14:48:42]execute_script returns [14:48:42]free content buf [14:48:42]Sock 6.Close socket [14:48:42]Sock 6.Thread stoped [14:48:42]accept exits with 10 [14:48:42]New connection [14:48:42]New thread 3066912100 created [14:48:42]Thread 3067055460 joined [14:48:42]Waiting for new connection... [14:48:42] Sock 10.Parse request [14:48:42]Sock 10.Check first char [14:48:42]Sock 10.First char is OK [14:48:42]request: POST /json_proto HTTP/1.0 [14:48:42]Method: POST [14:48:42]URL: /json_proto [14:48:42]Method is POST - this is cgi request [14:48:42]url: /json_proto [14:48:42]query_string will be loaded in cgi processing [14:48:42]execute_cgi json_proto POST (null) [14:48:42]execute_cgi path=json_proto method=POST [14:48:42]POST find Content-Length [14:48:42]Host: 172.17.47.195:8080 [14:48:42]Content-Length: 331 [14:48:42]Content-Type: application/json [14:48:42] [14:48:42]POST finish read [14:48:42]Found Content-Length = 331 [14:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:48:42]execute_script... [14:48:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:48:42]POST & json_proto [14:48:42]process_json_proto [14:48:42]json parsed OK: [14:48:42]protocol is kg_v1.0 [14:48:42]action value=get_value [14:48:42]process_action get_value [14:48:42]cmd_get_value [14:48:42]process_action get_value done [14:48:42]requested_data is exist [14:48:42]produce_requested_data [14:48:42]requested_item fm.sale.total is exist - process it [14:48:42]SAM_PROTO_GetFMData [14:48:42]wFMCommunicate request_size=4 [14:48:42]MH_SAM_APDU [14:48:42]CAPDU: 80 13 03 00 [14:48:42]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:48:42]Write i2c OK [14:48:42]MH_I2C_Read... [14:48:43]OFD Sender: Processing packet 7701 [packets to send 51, broken 50] [14:48:43]ProducePacketName [14:48:43]name=ofd_packets/00007701 [14:48:43]OFD Sender: To server: pG, [14:48:43]CommunicateWithHost lk.salyk.kg:30040 [14:48:43]ConnectInit lk.salyk.kg [14:48:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 FD 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 89 1D 00 00 69 04 A0 00 6F 04 04 00 5C 1D 00 00 B1 04 04 00 FA 0C F1 30 70 04 04 00 B4 79 08 29 72 04 04 00 46 93 E8 07 00 04 7C 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 4D D1 32 05 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 50 E6 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 02 [14:48:43]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 89 1D 00 00 69 04 A0 00 6F 04 04 00 5C 1D 00 00 B1 04 04 00 FA 0C F1 30 70 04 04 00 B4 79 08 29 72 04 04 00 46 93 E8 07 00 04 7C 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 4D D1 32 05 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 50 E6 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 17 00 00 [14:48:43]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 FD 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [14:48:43]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 17 00 00 [14:48:43]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 FD 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [14:48:43]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 17 00 00 [14:48:43]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:44]Read from MH i2c: E2 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 FD 00 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [14:48:44]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:48:44]wFMCommunicate OK [14:48:44]wFMCommunicate request_size=4 [14:48:44]MH_SAM_APDU [14:48:44]CAPDU: 80 17 00 00 [14:48:44]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [14:48:44]Read from MH i2c: E2 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 DE 00 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [14:48:44]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:48:44]wFMCommunicate OK [14:48:44]SAM_PROTO_GetFMData done [14:48:44]requested_item fm.sale_refund.total is exist - process it [14:48:44]requested_item fm.buy.total is exist - process it [14:48:44]requested_item shift.sale.total is exist - process it [14:48:44]SAM_PROTO_GetShiftData [14:48:44]wFMCommunicate request_size=4 [14:48:44]MH_SAM_APDU [14:48:44]CAPDU: 80 13 02 00 [14:48:44]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:48:44]Read from MH i2c: E2 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 FD 00 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 63 00 00 00 69 04 9C 00 6F 04 04 00 62 00 00 00 B1 04 03 00 FE 3A 99 70 04 03 00 44 78 8E 72 04 03 00 BA C2 0A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 14 47 10 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 3A 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 F7 [14:48:44]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 63 00 00 00 69 04 9C 00 6F 04 04 00 62 00 00 00 B1 04 03 00 FE 3A 99 70 04 03 00 44 78 8E 72 04 03 00 BA C2 0A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 14 47 10 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 3A 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [14:48:44]wFMCommunicate OK [14:48:44]wFMCommunicate request_size=4 [14:48:44]MH_SAM_APDU [14:48:44]CAPDU: 80 17 00 00 [14:48:44]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:45]Read from MH i2c: E2 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [14:48:45]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [14:48:45]wFMCommunicate OK [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 17 00 00 [14:48:45]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:48:45]Write i2c OK [14:48:45]MH_I2C_Read... [14:48:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:45]Read from MH i2c: E2 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [14:48:45]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:48:45]wFMCommunicate OK [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 17 00 00 [14:48:45]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:48:45]Write i2c OK [14:48:45]MH_I2C_Read... [14:48:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:45]Read from MH i2c: E2 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [14:48:45]RAPDU: 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 90 00 [14:48:45]wFMCommunicate OK [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 17 00 00 [14:48:45]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:48:45]Write i2c OK [14:48:45]MH_I2C_Read... [14:48:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [14:48:46]Read from MH i2c: E2 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 D4 00 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [14:48:46]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:48:46]wFMCommunicate OK [14:48:46]SAM_PROTO_GetShiftData done [14:48:46]requested_item shift.sale.total_cash is exist - process it [14:48:46]requested_item shift.sale_refund.total is exist - process it [14:48:46]requested_item shift.sale_refund.total_cash is exist - process it [14:48:46]requested_item shift.buy.total is exist - process it [14:48:46]requested_item shift.buy.total_cash is exist - process it [14:48:46]produce_requested_data done [14:48:46]produce_requested_data return {"fm.sale.total":8211038.66,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":100421.10,"shift.sale.total_cash":93369.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:48:46]process_action_free get_value [14:48:46]json_value_free [14:48:46]json_value_free done [14:48:46]process_json_proto returns [14:48:46]Send response to host [14:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8211038.66,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":100421.10,"shift.sale.total_cash":93369.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:48:46]free response buf [14:48:46]execute_script done [14:48:46]execute_script returns [14:48:46]free content buf [14:48:46]Sock 10.Close socket [14:48:46]Sock 10.Thread stoped [14:48:46]accept exits with 6 [14:48:46]New connection [14:48:46]New thread 3067055460 created [14:48:46]Thread 3066912100 joined [14:48:46]Waiting for new connection... [14:48:46] Sock 6.Parse request [14:48:46]Sock 6.Check first char [14:48:46]Sock 6.First char is OK [14:48:46]request: POST /json_proto HTTP/1.0 [14:48:46]Method: POST [14:48:46]URL: /json_proto [14:48:46]Method is POST - this is cgi request [14:48:46]url: /json_proto [14:48:46]query_string will be loaded in cgi processing [14:48:46]execute_cgi json_proto POST (null) [14:48:46]execute_cgi path=json_proto method=POST [14:48:46]POST find Content-Length [14:48:46]Host: 172.17.47.195:8080 [14:48:46]Content-Length: 677 [14:48:46]Content-Type: application/json [14:48:46] [14:48:46]POST finish read [14:48:46]Found Content-Length = 677 [14:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871808", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:46]execute_script... [14:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871808", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:46]POST & json_proto [14:48:46]process_json_proto [14:48:46]json parsed OK: [14:48:46]protocol is kg_v1.0 [14:48:46]action value=close_receipt [14:48:46]process_action close_receipt [14:48:46]cmd_close_receipt [14:48:46]MH_GetDate [14:48:46]Write to MH i2c: F0 00 00 1D 00 0C [14:48:46]Write i2c OK [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: F0 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: F0 09 00 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: F0 09 00 1D 00 00 4E 2E F0 66 96 2E 95 66 A6 [14:48:46]GetLastDocTimeStamp 1727016299 [14:48:46]current date 1727016526 [14:48:46]FM_GetShiftState [14:48:46]SAM_PROTO_GetShiftState [14:48:46]wFMCommunicate request_size=4 [14:48:46]MH_SAM_APDU [14:48:46]CAPDU: 80 13 01 00 [14:48:46]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:48:46]Write i2c OK [14:48:46]MH_I2C_Read... [14:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:46]Read from MH i2c: E2 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 0E 00 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [14:48:46]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:48:46]wFMCommunicate OK [14:48:46]SAM_PROTO_GetShiftState done [14:48:46]FM_GetShiftState done [14:48:46]opened in 1726964224 [14:48:46]opened+sec_in_day 1727050624 [14:48:46]quantity*price = 30035 [14:48:46]sum+1 = 30036 [14:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 100 22.09.2024 14:48 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7702 ФПД: 276219157079349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144846&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7702&fm=276219157079349&tin=02508201610067®Number=0000000000190446&sum=30000 [14:48:48]StoreToDocumentArchive [14:48:48]shift 70 fd 7702 [14:48:48]save to /storage/0070/doc_00007702 [14:48:48]save last doc name /storage/0070/doc_00007702 to /storage/kkm_last_doc_name [14:48:48]save OK [14:48:48]Clear old archive folders... [14:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:48]tlvbuf is 009F18A0 [14:48:48]SAM_PROTO_ClearQueue [14:48:48]wFMCommunicate request_size=4 [14:48:48]MH_SAM_APDU [14:48:48]CAPDU: 80 09 00 00 [14:48:48]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:48:48]Write i2c OK [14:48:48]MH_I2C_Read... [14:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:48]Read from MH i2c: E2 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 03 00 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:48:48]RAPDU: 90 00 [14:48:48]wFMCommunicate OK [14:48:48]SAM_PROTO_ClearQueue done [14:48:48]KKMCreateOFDPacket [14:48:48]OFDProtocolAddRootSTLVToBuf [14:48:48]FM_MakeSignedData [14:48:48]FM_MakeSignedData [14:48:48]SAM_PROTO_SignData [14:48:48]wFMCommunicate request_size=4 [14:48:48]MH_SAM_APDU [14:48:48]CAPDU: 80 0D 01 02 [14:48:48]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:48:48]Write i2c OK [14:48:48]MH_I2C_Read... [14:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:48]Read from MH i2c: E2 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 03 00 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:48:48]RAPDU: 90 00 [14:48:48]wFMCommunicate OK [14:48:48]wFMCommunicate request_size=255 [14:48:48]MH_SAM_APDU [14:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4E 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 16 1E 00 00 35 04 06 00 FB [14:48:48]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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4E 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 16 1E 00 00 35 04 06 00 FB 00 00 EB [14:48:48]Write i2c OK [14:48:48]MH_I2C_Read... [14:48:48]recv_with_timeout no data received [14:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:48]Read from MH i2c: E2 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 03 00 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:48:48]RAPDU: 90 00 [14:48:48]wFMCommunicate OK [14:48:48]wFMCommunicate request_size=10 [14:48:48]MH_SAM_APDU [14:48:48]CAPDU: 80 0D 02 02 05 38 48 BC E5 35 [14:48:48]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 38 48 BC E5 35 00 00 08 [14:48:48]Write i2c OK [14:48:48]MH_I2C_Read... [14:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:48]Read from MH i2c: E2 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 03 00 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:48:48]RAPDU: 90 00 [14:48:48]wFMCommunicate OK [14:48:48]wFMCommunicate request_size=4 [14:48:48]MH_SAM_APDU [14:48:48]CAPDU: 80 0D 03 02 [14:48:48]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:48:48]Write i2c OK [14:48:48]MH_I2C_Read... [14:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:48]Read from MH i2c: E2 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 0B 00 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 0B 00 2F 00 00 48 C6 C4 85 43 97 09 79 90 00 5E [14:48:48]RAPDU: 48 C6 C4 85 43 97 09 79 90 00 [14:48:48]wFMCommunicate OK [14:48:48]SAM_PROTO_SignData done [14:48:48]FM_MakeSignedData done [14:48:48]CreateOFDProtocolMessage [14:48:48]wFMCommunicate request_size=4 [14:48:48]MH_SAM_APDU [14:48:48]CAPDU: 80 11 00 00 [14:48:48]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:48:48]Write i2c OK [14:48:48]MH_I2C_Read... [14:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:48]Read from MH i2c: E2 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 17 00 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [14:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:48:48]wFMCommunicate OK [14:48:48]CreateOFDProtocolMessage done [14:48:48]OFDSenderStorePacket 7702 [14:48:48]StoreOFDPacket docnum=7702 [14:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E9 6B 07 01 BF 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4E 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 16 1E 00 00 35 04 06 00 FB 38 48 BC E5 35 48 C6 C4 85 43 97 09 79 [14:48:48]CheckFolder [14:48:48]dirname=/storage/ofd_packets [14:48:48]CheckFolder done [14:48:48]ProducePacketName [14:48:48]name=ofd_packets/00007702 [14:48:48]NVStorageSaveData ofd_packets/00007702 [14:48:48]File name is /storage/ofd_packets/00007702 [14:48:48]Write 301 bytes [14:48:48]NVStorageSaveData done [14:48:48]OFDSenderStorePacket done [14:48:48]KKMCreateOFDPacket done [14:48:48]NVStorageSaveData kkm_last_timestamp [14:48:48]File name is /storage/kkm_last_timestamp [14:48:48]Write 4 bytes [14:48:48]NVStorageSaveData done [14:48:48]ExternCall_PrintAddStr [14:48:48]wPrintStart [14:48:48]Write to MH i2c: 01 00 00 31 00 31 [14:48:48]Write i2c OK [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: 01 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: 01 07 00 [14:48:48]MH_I2C_Read... [14:48:48]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:48:48]RasterBufferAndPrint [14:48:48]line Счет N : (1)871808 [14:48:48]line ИНН: 02508201610067 [14:48:48]line Контрольно-Кассовый Чек [14:48:48]line ПРОДАЖА [14:48:48]line ТРК (МРК, ГНК) : 53 [14:48:48]line Товар: 2710124130 [14:48:48]line Аи-92-К-5 [14:48:48]line 4.430 * 67.80 [14:48:48]line = 300.35 [14:48:48]line НДС 12% НСП 1% [14:48:48]line > о реализуемом товаре [14:48:48]line ОКРУГЛЕНИЕ: -0.35 [14:48:48]line ИТОГО: 300.00 [14:48:48]line Внесено: 300.00 [14:48:48]line СДАЧА: 0.00 [14:48:48]line НСП 1% : 2.66 [14:48:48]line НДС 12% : 31.90 [14:48:48]line Наличными: 300.00 [14:48:48]line Безнал.: 0.00 [14:48:48]line Место: АЗС № 137 "Партнер Нефть" [14:48:48]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:48:48]line СНО: Общий режим [14:48:48]line Чек 100 22.09.2024 14:48 [14:48:48]line Смена: 70 ФФД: 1.0 [14:48:48]line ЗНМ: 0300000041 [14:48:48]line РНМ: 0000000000190446 [14:48:48]line Версия ККМ: v1.0 [14:48:48]line ФМ: 0000000002094258 [14:48:48]line ФД: 7702 [14:48:48]line ФПД: 276219157079349 [14:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144846&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7702&fm=276219157079349&tin=02508201610067®Number=0000000000190446&sum=30000 [14:48:48]written 0, free lines is 4095 [14:48:49]Write to MH i2c: 01 00 00 5C 00 5C [14:48:49]Write i2c OK [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: 01 [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: 01 07 00 [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 FD 0C 6C [14:48:49]RasterBufferAndPrint [14:48:49]line [14:48:49]line [14:48:49]line [14:48:49]line [14:48:49]line [14:48:49]written 0, free lines is 3346 [14:48:49]MH_Cut [14:48:49]Write to MH i2c: D1 01 00 63 00 01 35 [14:48:49]Write i2c OK [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: D1 [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: D1 01 00 [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: D1 01 00 63 00 00 34 [14:48:49]Write to MH i2c: 01 00 00 64 00 64 [14:48:49]Write i2c OK [14:48:49]MH_I2C_Read... [14:48:50]*** Cut start [14:48:50]*** Purtial cut [14:48:50]*** Stage 1: CUTSNS_PIN = 1 [14:48:50]Read from MH i2c: 01 [14:48:50]MH_I2C_Read... [14:48:50]*** Stop cut motor [14:48:50]*** Cut end [14:48:50]Read from MH i2c: 01 07 00 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:48:50]process_action close_receipt done [14:48:50]requested_data is exist [14:48:50]produce_requested_data [14:48:50]requested_item fm.sn is exist - process it [14:48:50]wFMCommunicate request_size=4 [14:48:50]MH_SAM_APDU [14:48:50]CAPDU: 80 11 00 00 [14:48:50]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [14:48:50]Write i2c OK [14:48:50]MH_I2C_Read... [14:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:50]Read from MH i2c: E2 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 17 00 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [14:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:48:50]wFMCommunicate OK [14:48:50]requested_item fd.num is exist - process it [14:48:50]SAM_PROTO_GetFieldsCounters [14:48:50]wFMCommunicate request_size=4 [14:48:50]MH_SAM_APDU [14:48:50]CAPDU: 80 13 00 00 [14:48:50]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [14:48:50]Write i2c OK [14:48:50]MH_I2C_Read... [14:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:50]Read from MH i2c: E2 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 62 00 [14:48:50]MH_I2C_Read... [14:48:50]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 16 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [14:48:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 16 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:50]wFMCommunicate OK [14:48:50]SAM_PROTO_GetFieldsCounters done [14:48:50]requested_item shift.num is exist - process it [14:48:50]requested_item shift.opened is exist - process it [14:48:50]req_shift_opened [14:48:50]FM_GetShiftState [14:48:50]SAM_PROTO_GetShiftState [14:48:50]wFMCommunicate request_size=4 [14:48:50]MH_SAM_APDU [14:48:50]CAPDU: 80 13 01 00 [14:48:50]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:48:50]Write i2c OK [14:48:50]MH_I2C_Read... [14:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:50]Read from MH i2c: E2 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 0E 00 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [14:48:50]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:48:50]wFMCommunicate OK [14:48:50]SAM_PROTO_GetShiftState done [14:48:50]FM_GetShiftState done [14:48:50]req_shift_opened done [14:48:50]requested_item shift.open_date is exist - process it [14:48:50]req_shift_open_date [14:48:50]req_shift_open_date done [14:48:50]produce_requested_data done [14:48:50]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7702,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:48:50]process_action_free close_receipt [14:48:50]json_value_free [14:48:50]json_value_free done [14:48:50]process_json_proto returns [14:48:50]Send response to host [14:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7702,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:48:50]free response buf [14:48:50]execute_script done [14:48:50]execute_script returns [14:48:50]free content buf [14:48:50]Sock 6.Close socket [14:48:50]Sock 6.Thread stoped [14:48:55]Connected sock=11 [14:48:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 C9 2A 08 01 2C 26 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6B 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 15 1E 00 00 35 04 06 00 A9 0C 3F D7 90 55 56 A6 76 0C 97 70 1C 63 [14:49:00]recv_with_timeout no data received [14:49:00]CommunicateWithHost answer receiving error [14:49:00]CommunicateWithHost err = -3 [14:49:00]OFD Sender: Server communicate error [14:49:00]OFD Sender: Processing packet 7701 [packets to send 52, broken 50] [14:49:00]ProducePacketName [14:49:00]name=ofd_packets/00007701 [14:49:00]OFD Sender: To server: pG, [14:49:00]CommunicateWithHost lk.salyk.kg:30040 [14:49:00]ConnectInit lk.salyk.kg [14:49:04]recv_with_timeout no data received [14:49:05]ConnectInit Can't take IP for lk.salyk.kg [14:49:05]CommunicateWithHost connect error [14:49:05]CommunicateWithHost err = -1 [14:49:05]OFD Sender: Server communicate error [14:49:10]OFD Sender: Processing packet 7701 [packets to send 52, broken 50] [14:49:10]ProducePacketName [14:49:10]name=ofd_packets/00007701 [14:49:10]OFD Sender: To server: pG, [14:49:10]CommunicateWithHost lk.salyk.kg:30040 [14:49:10]ConnectInit lk.salyk.kg [14:49:15]ConnectInit Can't take IP for lk.salyk.kg [14:49:15]CommunicateWithHost connect error [14:49:15]CommunicateWithHost err = -1 [14:49:15]OFD Sender: Server communicate error [14:49:20]OFD Sender: Processing packet 7701 [packets to send 52, broken 50] [14:49:20]ProducePacketName [14:49:20]name=ofd_packets/00007701 [14:49:20]OFD Sender: To server: pG, [14:49:20]CommunicateWithHost lk.salyk.kg:30040 [14:49:20]ConnectInit lk.salyk.kg [14:49:22]recv_with_timeout no data received [14:49:25]ConnectInit Can't take IP for lk.salyk.kg [14:49:25]CommunicateWithHost connect error [14:49:25]CommunicateWithHost err = -1 [14:49:25]OFD Sender: Server communicate error [14:49:28]accept exits with 10 [14:49:28]New connection [14:49:28]New thread 3066912100 created [14:49:28]Thread 3067055460 joined [14:49:28]Waiting for new connection... [14:49:28] Sock 10.Parse request [14:49:28]Sock 10.Check first char [14:49:28]Sock 10.First char is OK [14:49:28]request: POST /json_proto HTTP/1.0 [14:49:28]Method: POST [14:49:28]URL: /json_proto [14:49:28]Method is POST - this is cgi request [14:49:28]url: /json_proto [14:49:28]query_string will be loaded in cgi processing [14:49:28]execute_cgi json_proto POST (null) [14:49:28]execute_cgi path=json_proto method=POST [14:49:28]POST find Content-Length [14:49:28]Host: 172.17.47.195:8080 [14:49:28]Content-Length: 677 [14:49:28]Content-Type: application/json [14:49:28] [14:49:28]POST finish read [14:49:28]Found Content-Length = 677 [14:49:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871809", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:28]execute_script... [14:49:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871809", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:28]POST & json_proto [14:49:28]process_json_proto [14:49:28]json parsed OK: [14:49:28]protocol is kg_v1.0 [14:49:28]action value=close_receipt [14:49:28]process_action close_receipt [14:49:28]cmd_close_receipt [14:49:28]MH_GetDate [14:49:28]Write to MH i2c: F0 00 00 68 00 57 [14:49:28]Write i2c OK [14:49:28]MH_I2C_Read... [14:49:28]Read from MH i2c: F0 [14:49:28]MH_I2C_Read... [14:49:28]Read from MH i2c: F0 09 00 [14:49:28]MH_I2C_Read... [14:49:28]Read from MH i2c: F0 09 00 68 00 00 78 2E F0 66 96 2E 95 66 1B [14:49:28]GetLastDocTimeStamp 1727016526 [14:49:28]current date 1727016568 [14:49:28]FM_GetShiftState [14:49:28]SAM_PROTO_GetShiftState [14:49:28]wFMCommunicate request_size=4 [14:49:28]MH_SAM_APDU [14:49:28]CAPDU: 80 13 01 00 [14:49:28]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [14:49:28]Write i2c OK [14:49:28]MH_I2C_Read... [14:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:28]Read from MH i2c: E2 [14:49:28]MH_I2C_Read... [14:49:28]Read from MH i2c: E2 0E 00 [14:49:28]MH_I2C_Read... [14:49:28]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [14:49:28]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:49:28]wFMCommunicate OK [14:49:28]SAM_PROTO_GetShiftState done [14:49:28]FM_GetShiftState done [14:49:28]opened in 1726964224 [14:49:28]opened+sec_in_day 1727050624 [14:49:28]quantity*price = 50036 [14:49:28]sum+1 = 50037 [14:49:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 101 22.09.2024 14:49 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7703 ФПД: 141236498727935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144928&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7703&fm=141236498727935&tin=02508201610067®Number=0000000000190446&sum=50000 [14:49:29]StoreToDocumentArchive [14:49:29]shift 70 fd 7703 [14:49:29]save to /storage/0070/doc_00007703 [14:49:29]save last doc name /storage/0070/doc_00007703 to /storage/kkm_last_doc_name [14:49:29]save OK [14:49:29]Clear old archive folders... [14:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:29]tlvbuf is 009B56D0 [14:49:29]SAM_PROTO_ClearQueue [14:49:29]wFMCommunicate request_size=4 [14:49:29]MH_SAM_APDU [14:49:29]CAPDU: 80 09 00 00 [14:49:29]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [14:49:29]Write i2c OK [14:49:29]MH_I2C_Read... [14:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:29]Read from MH i2c: E2 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: E2 03 00 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:49:29]RAPDU: 90 00 [14:49:29]wFMCommunicate OK [14:49:29]SAM_PROTO_ClearQueue done [14:49:29]KKMCreateOFDPacket [14:49:29]OFDProtocolAddRootSTLVToBuf [14:49:29]FM_MakeSignedData [14:49:29]FM_MakeSignedData [14:49:29]SAM_PROTO_SignData [14:49:29]wFMCommunicate request_size=4 [14:49:29]MH_SAM_APDU [14:49:29]CAPDU: 80 0D 01 02 [14:49:29]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [14:49:29]Write i2c OK [14:49:29]MH_I2C_Read... [14:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:29]Read from MH i2c: E2 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: E2 03 00 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:49:29]RAPDU: 90 00 [14:49:29]wFMCommunicate OK [14:49:29]wFMCommunicate request_size=255 [14:49:29]MH_SAM_APDU [14:49:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 78 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 17 1E 00 00 35 04 06 00 80 [14:49:29]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 78 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 17 1E 00 00 35 04 06 00 80 00 00 C8 [14:49:29]Write i2c OK [14:49:29]MH_I2C_Read... [14:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:30]Read from MH i2c: E2 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 03 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:49:30]RAPDU: 90 00 [14:49:30]wFMCommunicate OK [14:49:30]wFMCommunicate request_size=10 [14:49:30]MH_SAM_APDU [14:49:30]CAPDU: 80 0D 02 02 05 74 2F 56 03 FF [14:49:30]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 74 2F 56 03 FF 00 00 F8 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:30]Read from MH i2c: E2 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 03 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:49:30]RAPDU: 90 00 [14:49:30]wFMCommunicate OK [14:49:30]wFMCommunicate request_size=4 [14:49:30]MH_SAM_APDU [14:49:30]CAPDU: 80 0D 03 02 [14:49:30]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:30]Read from MH i2c: E2 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 0B 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 0B 00 7A 00 00 E9 3D 46 57 26 23 CB B4 90 00 81 [14:49:30]RAPDU: E9 3D 46 57 26 23 CB B4 90 00 [14:49:30]wFMCommunicate OK [14:49:30]SAM_PROTO_SignData done [14:49:30]FM_MakeSignedData done [14:49:30]CreateOFDProtocolMessage [14:49:30]wFMCommunicate request_size=4 [14:49:30]MH_SAM_APDU [14:49:30]CAPDU: 80 11 00 00 [14:49:30]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:30]Read from MH i2c: E2 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 17 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [14:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:49:30]wFMCommunicate OK [14:49:30]CreateOFDProtocolMessage done [14:49:30]OFDSenderStorePacket 7703 [14:49:30]StoreOFDPacket docnum=7703 [14:49:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 A2 20 07 01 D2 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 78 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 17 1E 00 00 35 04 06 00 80 74 2F 56 03 FF E9 3D 46 57 26 23 CB B4 [14:49:30]CheckFolder [14:49:30]dirname=/storage/ofd_packets [14:49:30]CheckFolder done [14:49:30]ProducePacketName [14:49:30]name=ofd_packets/00007703 [14:49:30]NVStorageSaveData ofd_packets/00007703 [14:49:30]File name is /storage/ofd_packets/00007703 [14:49:30]Write 301 bytes [14:49:30]NVStorageSaveData done [14:49:30]OFDSenderStorePacket done [14:49:30]KKMCreateOFDPacket done [14:49:30]NVStorageSaveData kkm_last_timestamp [14:49:30]File name is /storage/kkm_last_timestamp [14:49:30]Write 4 bytes [14:49:30]NVStorageSaveData done [14:49:30]ExternCall_PrintAddStr [14:49:30]wPrintStart [14:49:30]Write to MH i2c: 01 00 00 7C 00 7C [14:49:30]OFD Sender: Processing packet 7701 [packets to send 53, broken 50] [14:49:30]ProducePacketName [14:49:30]name=ofd_packets/00007701 [14:49:30]OFD Sender: To server: pG, [14:49:30]CommunicateWithHost lk.salyk.kg:30040 [14:49:30]ConnectInit lk.salyk.kg [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: 01 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: 01 07 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [14:49:30]RasterBufferAndPrint [14:49:30]line Счет N : (1)871809 [14:49:30]line ИНН: 02508201610067 [14:49:30]line Контрольно-Кассовый Чек [14:49:30]line ПРОДАЖА [14:49:30]line ТРК (МРК, ГНК) : 63 [14:49:30]line Товар: 2710124130 [14:49:30]line Аи-92-К-5 [14:49:30]line 7.380 * 67.80 [14:49:30]line = 500.36 [14:49:30]line НДС 12% НСП 1% [14:49:30]line > о реализуемом товаре [14:49:30]line ОКРУГЛЕНИЕ: -0.36 [14:49:30]line ИТОГО: 500.00 [14:49:30]line Внесено: 500.00 [14:49:30]line СДАЧА: 0.00 [14:49:30]line НСП 1% : 4.43 [14:49:30]line НДС 12% : 53.14 [14:49:30]line Наличными: 500.00 [14:49:30]line Безнал.: 0.00 [14:49:30]line Место: АЗС № 137 "Партнер Нефть" [14:49:30]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:49:30]line СНО: Общий режим [14:49:30]line Чек 101 22.09.2024 14:49 [14:49:30]line Смена: 70 ФФД: 1.0 [14:49:30]line ЗНМ: 0300000041 [14:49:30]line РНМ: 0000000000190446 [14:49:30]line Версия ККМ: v1.0 [14:49:30]line ФМ: 0000000002094258 [14:49:30]line ФД: 7703 [14:49:30]line ФПД: 141236498727935 [14:49:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144928&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7703&fm=141236498727935&tin=02508201610067®Number=0000000000190446&sum=50000 [14:49:30]written 0, free lines is 4095 [14:49:30]Write to MH i2c: 01 00 00 A7 00 A7 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: 01 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: 01 07 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 F2 0C AC [14:49:30]RasterBufferAndPrint [14:49:30]line [14:49:30]line [14:49:30]line [14:49:30]line [14:49:30]line [14:49:30]written 0, free lines is 3335 [14:49:30]MH_Cut [14:49:30]Write to MH i2c: D1 01 00 AE 00 01 80 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: D1 [14:49:30]MH_I2C_Read... [14:49:30]Connected sock=7 [14:49:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 C9 2A 08 01 2C 26 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6B 2D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 15 1E 00 00 35 04 06 00 A9 0C 3F D7 90 55 56 A6 76 0C 97 70 1C 63 [14:49:30]Read from MH i2c: D1 01 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: D1 01 00 AE 00 00 7F [14:49:30]Write to MH i2c: 01 00 00 AF 00 AF [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:31]*** Cut start [14:49:31]*** Purtial cut [14:49:31]*** Stage 1: CUTSNS_PIN = 1 [14:49:31]Read from MH i2c: 01 [14:49:31]MH_I2C_Read... [14:49:31]*** Stop cut motor [14:49:31]*** Cut end [14:49:31]Read from MH i2c: 01 07 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [14:49:31]process_action close_receipt done [14:49:31]requested_data is exist [14:49:31]produce_requested_data [14:49:31]requested_item fm.sn is exist - process it [14:49:31]wFMCommunicate request_size=4 [14:49:31]MH_SAM_APDU [14:49:31]CAPDU: 80 11 00 00 [14:49:31]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:31]Read from MH i2c: E2 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 17 00 [14:49:31]MH_I2C_Read... [14:49:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E4 74 47 00 AC CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 15 1E 00 00 F4 03 04 00 37 D9 EF 66 B6 04 01 00 00 F6 9F 97 43 91 FB 21 C9 [14:49:31]CommunicateWithHost err = 0 [14:49:31]CheckOFDResponse [14:49:31]1017 (14) - 77093643461234 [14:49:31]1041 (16) - 0000000002094258 [14:49:31]1040 (4) - 7701 [14:49:31]1012 (4) - 22.09.2024 08:45 [14:49:31]1206 (1) - 0 [14:49:31]OFD Sender: Remove packet 7701 [14:49:31]ProducePacketName [14:49:31]name=ofd_packets/00007701 [14:49:31]NVStorageDeleteData [14:49:31]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [14:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:49:31]wFMCommunicate OK [14:49:31]requested_item fd.num is exist - process it [14:49:31]SAM_PROTO_GetFieldsCounters [14:49:31]wFMCommunicate request_size=4 [14:49:31]MH_SAM_APDU [14:49:31]CAPDU: 80 13 00 00 [14:49:31]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 62 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 17 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [14:49:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 17 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:32]wFMCommunicate OK [14:49:32]SAM_PROTO_GetFieldsCounters done [14:49:32]requested_item shift.num is exist - process it [14:49:32]requested_item shift.opened is exist - process it [14:49:32]req_shift_opened [14:49:32]FM_GetShiftState [14:49:32]SAM_PROTO_GetShiftState [14:49:32]wFMCommunicate request_size=4 [14:49:32]MH_SAM_APDU [14:49:32]CAPDU: 80 13 01 00 [14:49:32]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 0E 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F2 [14:49:32]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:49:32]wFMCommunicate OK [14:49:32]SAM_PROTO_GetShiftState done [14:49:32]FM_GetShiftState done [14:49:32]req_shift_opened done [14:49:32]requested_item shift.open_date is exist - process it [14:49:32]req_shift_open_date [14:49:32]req_shift_open_date done [14:49:32]produce_requested_data done [14:49:32]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7703,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:49:32]process_action_free close_receipt [14:49:32]json_value_free [14:49:32]json_value_free done [14:49:32]process_json_proto returns [14:49:32]Send response to host [14:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7703,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:49:32]free response buf [14:49:32]execute_script done [14:49:32]execute_script returns [14:49:32]free content buf [14:49:32]Sock 10.Close socket [14:49:32]Sock 10.Thread stoped [14:49:32]OFD Sender: Processing packet 7702 [packets to send 52, broken 50] [14:49:32]ProducePacketName [14:49:32]name=ofd_packets/00007702 [14:49:32]OFD Sender: To server: pG, [14:49:32]CommunicateWithHost lk.salyk.kg:30040 [14:49:32]ConnectInit lk.salyk.kg [14:49:32]Connected sock=7 [14:49:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E9 6B 07 01 BF 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4E 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 16 1E 00 00 35 04 06 00 FB 38 48 BC E5 35 48 C6 C4 85 43 97 09 79 [14:49:37]recv_with_timeout no data received [14:49:37]CommunicateWithHost answer receiving error [14:49:37]CommunicateWithHost err = -3 [14:49:37]OFD Sender: Server communicate error [14:49:42]OFD Sender: Processing packet 7702 [packets to send 52, broken 50] [14:49:42]ProducePacketName [14:49:42]name=ofd_packets/00007702 [14:49:42]OFD Sender: To server: pG, [14:49:42]CommunicateWithHost lk.salyk.kg:30040 [14:49:42]ConnectInit lk.salyk.kg [14:49:44]recv_with_timeout no data received [14:49:47]ConnectInit Can't take IP for lk.salyk.kg [14:49:47]CommunicateWithHost connect error [14:49:47]CommunicateWithHost err = -1 [14:49:47]OFD Sender: Server communicate error [14:49:52]OFD Sender: Processing packet 7702 [packets to send 52, broken 50] [14:49:52]ProducePacketName [14:49:52]name=ofd_packets/00007702 [14:49:52]OFD Sender: To server: pG, [14:49:52]CommunicateWithHost lk.salyk.kg:30040 [14:49:52]ConnectInit lk.salyk.kg [14:49:57]Connected sock=10 [14:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E9 6B 07 01 BF 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4E 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 16 1E 00 00 35 04 06 00 FB 38 48 BC E5 35 48 C6 C4 85 43 97 09 79 [14:49:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 27 BD 47 00 C4 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 32 30 39 34 32 35 38 10 04 04 00 16 1E 00 00 F4 03 04 00 52 D9 EF 66 B6 04 01 00 00 71 A3 DE 1D B2 AC AB 9C [14:49:58]CommunicateWithHost err = 0 [14:49:58]CheckOFDResponse [14:49:58]1017 (14) - 77093643461234 [14:49:58]1041 (16) - 0000000002094258 [14:49:58]1040 (4) - 7702 [14:49:58]1012 (4) - 22.09.2024 08:46 [14:49:58]1206 (1) - 0 [14:49:58]OFD Sender: Remove packet 7702 [14:49:58]ProducePacketName [14:49:58]name=ofd_packets/00007702 [14:49:58]NVStorageDeleteData [14:49:59]OFD Sender: Processing packet 7703 [packets to send 51, broken 50] [14:49:59]ProducePacketName [14:49:59]name=ofd_packets/00007703 [14:49:59]OFD Sender: To server: pG, [14:49:59]CommunicateWithHost lk.salyk.kg:30040 [14:49:59]ConnectInit lk.salyk.kg [14:49:59]Connected sock=6 [14:49:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 A2 20 07 01 D2 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 78 2E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 17 1E 00 00 35 04 06 00 80 74 2F 56 03 FF E9 3D 46 57 26 23 CB B4 [14:50:00]recv_with_timeout no data received [14:50:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 7D 47 47 00 F2 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 17 1E 00 00 F4 03 04 00 54 D9 EF 66 B6 04 01 00 00 23 29 AA DB F0 09 18 4C [14:50:01]CommunicateWithHost err = 0 [14:50:01]CheckOFDResponse [14:50:01]1017 (14) - 77093643461234 [14:50:01]1041 (16) - 0000000002094258 [14:50:01]1040 (4) - 7703 [14:50:01]1012 (4) - 22.09.2024 08:46 [14:50:01]1206 (1) - 0 [14:50:01]OFD Sender: Remove packet 7703 [14:50:01]ProducePacketName [14:50:01]name=ofd_packets/00007703 [14:50:01]NVStorageDeleteData [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]recv_with_timeout no data received [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:31]recv_with_timeout no data received [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]recv_with_timeout no data received [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:40]recv_with_timeout no data received [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:23]recv_with_timeout no data received [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:40]accept exits with 9 [14:55:40]New connection [14:55:40]New thread 3067055460 created [14:55:40]Thread 3066912100 joined [14:55:40]Waiting for new connection... [14:55:40] Sock 9.Parse request [14:55:40]Sock 9.Check first char [14:55:40]Sock 9.First char is OK [14:55:40]request: POST /json_proto HTTP/1.0 [14:55:40]Method: POST [14:55:40]URL: /json_proto [14:55:40]Method is POST - this is cgi request [14:55:40]url: /json_proto [14:55:40]query_string will be loaded in cgi processing [14:55:40]execute_cgi json_proto POST (null) [14:55:40]execute_cgi path=json_proto method=POST [14:55:40]POST find Content-Length [14:55:40]Host: 172.17.47.195:8080 [14:55:40]Content-Length: 687 [14:55:40]Content-Type: application/json [14:55:40] [14:55:40]POST finish read [14:55:40]Found Content-Length = 687 [14:55:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:40]execute_script... [14:55: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)871810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:40]POST & json_proto [14:55:40]process_json_proto [14:55:40]json parsed OK: [14:55:40]protocol is kg_v1.0 [14:55:40]action value=close_receipt [14:55:40]process_action close_receipt [14:55:40]cmd_close_receipt [14:55:40]MH_GetDate [14:55:40]Write to MH i2c: F0 00 00 B3 00 A2 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: F0 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: F0 09 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: F0 09 00 B3 00 00 ED 2F F0 66 96 2E 95 66 DC [14:55:40]GetLastDocTimeStamp 1727016568 [14:55:40]current date 1727016941 [14:55:40]FM_GetShiftState [14:55:40]SAM_PROTO_GetShiftState [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 13 01 00 [14:55:40]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0E 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F4 [14:55:40]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_GetShiftState done [14:55:40]FM_GetShiftState done [14:55:40]opened in 1726964224 [14:55:40]opened+sec_in_day 1727050624 [14:55:40]quantity*price = 150037 [14:55:40]sum+1 = 150039 [14:55:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 102 22.09.2024 14:55 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7704 ФПД: 275795271897059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145541&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7704&fm=275795271897059&tin=02508201610067®Number=0000000000190446&sum=150000 [14:55:42]StoreToDocumentArchive [14:55:42]shift 70 fd 7704 [14:55:42]save to /storage/0070/doc_00007704 [14:55:42]save last doc name /storage/0070/doc_00007704 to /storage/kkm_last_doc_name [14:55:42]save OK [14:55:42]Clear old archive folders... [14:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:55:42]tlvbuf is 00975CA0 [14:55:42]SAM_PROTO_ClearQueue [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 09 00 00 [14:55:42]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:55:42]RAPDU: 90 00 [14:55:42]wFMCommunicate OK [14:55:42]SAM_PROTO_ClearQueue done [14:55:42]KKMCreateOFDPacket [14:55:42]OFDProtocolAddRootSTLVToBuf [14:55:42]FM_MakeSignedData [14:55:42]FM_MakeSignedData [14:55:42]SAM_PROTO_SignData [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 0D 01 02 [14:55:42]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:55:42]RAPDU: 90 00 [14:55:42]wFMCommunicate OK [14:55:42]wFMCommunicate request_size=255 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 ED 2F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 18 1E 00 00 35 04 06 00 [14:55:42]Write to MH i2c: E2 02 01 C3 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 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 ED 2F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 18 1E 00 00 35 04 06 00 00 00 6F [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [14:55:42]RAPDU: 90 00 [14:55:42]wFMCommunicate OK [14:55:42]wFMCommunicate request_size=11 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 0D 02 02 06 FA D5 97 36 4F E3 [14:55:42]Write to MH i2c: E2 0E 00 C4 00 80 0D 02 02 06 00 FA D5 97 36 4F E3 00 00 18 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [14:55:42]RAPDU: 90 00 [14:55:42]wFMCommunicate OK [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 0D 03 02 [14:55:42]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 0B 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 0B 00 C5 00 00 E2 D5 1A A4 68 9D 7F 04 90 00 3E [14:55:42]RAPDU: E2 D5 1A A4 68 9D 7F 04 90 00 [14:55:42]wFMCommunicate OK [14:55:42]SAM_PROTO_SignData done [14:55:42]FM_MakeSignedData done [14:55:42]CreateOFDProtocolMessage [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 11 00 00 [14:55:42]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 17 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 91 [14:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:55:42]wFMCommunicate OK [14:55:42]CreateOFDProtocolMessage done [14:55:42]OFDSenderStorePacket 7704 [14:55:42]StoreOFDPacket docnum=7704 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5964213+1721052822=1727017035 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 4C 30 F0 66 96 2E 95 66 90 [14:57:16]Current date/time: 22.09.2024 14:57 [14:57:16]FM_Init [14:57:16]wFMConnect [14:57:16]MH_SAM_On [14:57:16]Write to MH i2c: E0 00 00 08 00 E7 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_init finished! [14:57:16]*** atr: [14:57:16]*** 0F 3B D5 18 FF 81 91 FE [14:57:16]*** 1F C3 80 73 C8 21 10 0A [14:57:16]*** 00 00 00 00 00 00 00 00 [14:57:16]*** 00 00 00 00 00 00 00 00 [14:57:16]*** 00 00 00 00 00 00 00 00 [14:57:16]*** 00 00 00 00 00 00 00 00 [14:57:16]*** 00 00 00 00 00 00 00 00 [14:57:16]*** 00 00 00 00 00 00 00 00 [14:57:16]Read from MH i2c: E0 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E0 10 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:57:16]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:57:16]wFMCommunicate request_size=10 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:57:16]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:57:16]RAPDU: 90 00 [14:57:16]wFMCommunicate OK [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 11 00 00 [14:57:16]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 17 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [14:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:57:16]wFMCommunicate OK [14:57:16]Detected FM SN is 0000000002094258 [14:57:16]Stored FM SN is 0000000002094258 [14:57:16]wFMCommunicate request_size=9 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 16 00 00 04 BC C2 00 00 [14:57:16]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:57:16]RAPDU: 90 00 [14:57:16]wFMCommunicate OK [14:57:16]FM PIN OK [14:57:16]wFMCommunicate request_size=8 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 14 04 00 03 02 00 01 [14:57:16]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:57:16]RAPDU: 90 00 [14:57:16]wFMCommunicate OK [14:57:16]wFMCommunicate request_size=13 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:57:16]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:57:16]RAPDU: 90 00 [14:57:16]wFMCommunicate OK [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 11 00 00 [14:57:16]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 17 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [14:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:57:16]wFMCommunicate OK [14:57:16]DocumentArchiveInit [14:57:16]Start Httpd... [14:57:16]Httpd thread 3066965348 created [14:57:16]Write to MH i2c: 01 00 00 0F 00 0F [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 07 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:57:16]MH Int Process started [14:57:16]Allocated Socket 7 [14:57:16]Bind OK [14:57:16]Listen OK [14:57:16]httpd running on port 8080 [14:57:16]Waiting for new connection... [14:57:16]OFD Sender: Processing packet 7704 [packets to send 53, broken 50] [14:57:16]ProducePacketName [14:57:16]name=ofd_packets/00007704 [14:57:16]OFD Sender: To server: pG, [14:57:16]CommunicateWithHost lk.salyk.kg:30040 [14:57:16]ConnectInit lk.salyk.kg [14:57:16]Connected sock=6 [14:57:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 DE 45 08 01 09 7D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 ED 2F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 18 1E 00 00 35 04 06 00 FA D5 97 36 4F E3 E2 D5 1A A4 68 9D 7F 04 [14:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 C3 C6 47 00 C5 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 32 30 39 34 32 35 38 10 04 04 00 18 1E 00 00 F4 03 04 00 09 DB EF 66 B6 04 01 00 00 AB 9F 6A C9 58 47 D7 F9 [14:57:17]CommunicateWithHost err = 0 [14:57:17]CheckOFDResponse [14:57:17]1017 (14) - 77093643461234 [14:57:17]1041 (16) - 0000000002094258 [14:57:17]1040 (4) - 7704 [14:57:17]1012 (4) - 22.09.2024 08:53 [14:57:17]1206 (1) - 0 [14:57:17]OFD Sender: Remove packet 7704 [14:57:17]ProducePacketName [14:57:17]name=ofd_packets/00007704 [14:57:17]NVStorageDeleteData [14:57:18]accept exits with 8 [14:57:18]New connection [14:57:18]New thread 3066678628 created [14:57:18]Waiting for new connection... [14:57:18] Sock 8.Parse request [14:57:18]Sock 8.Check first char [14:57:18]Sock 8.First char is OK [14:57:18]request: POST /json_proto HTTP/1.0 [14:57:18]Method: POST [14:57:18]URL: /json_proto [14:57:18]Method is POST - this is cgi request [14:57:18]url: /json_proto [14:57:18]query_string will be loaded in cgi processing [14:57:18]execute_cgi json_proto POST (null) [14:57:18]execute_cgi path=json_proto method=POST [14:57:18]POST find Content-Length [14:57:18]Host: 172.17.47.195:8080 [14:57:18]Content-Length: 215 [14:57:18]Content-Type: application/json [14:57:18] [14:57:18]POST finish read [14:57:18]Found Content-Length = 215 [14:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:18]execute_script... [14:57:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:18]POST & json_proto [14:57:18]process_json_proto [14:57:18]json parsed OK: [14:57:18]protocol is kg_v1.0 [14:57:18]action value=get_value [14:57:18]process_action get_value [14:57:18]cmd_get_value [14:57:18]process_action get_value done [14:57:18]requested_data is exist [14:57:18]produce_requested_data [14:57:18]requested_item kkm.sn is exist - process it [14:57:18]requested_item kkm.ver is exist - process it [14:57:18]requested_item fm.sn is exist - process it [14:57:18]wFMCommunicate request_size=4 [14:57:18]MH_SAM_APDU [14:57:18]CAPDU: 80 11 00 00 [14:57:18]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:18]Read from MH i2c: E2 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 17 00 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [14:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:57:18]wFMCommunicate OK [14:57:18]requested_item fd.num is exist - process it [14:57:18]SAM_PROTO_GetFieldsCounters [14:57:18]wFMCommunicate request_size=4 [14:57:18]MH_SAM_APDU [14:57:18]CAPDU: 80 13 00 00 [14:57:18]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:18]Read from MH i2c: E2 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 62 00 [14:57:18]MH_I2C_Read... [14:57:18]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1A 1E 00 00 0E 04 04 00 46 00 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 61 [14:57:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1A 1E 00 00 0E 04 04 00 46 00 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:57:18]wFMCommunicate OK [14:57:18]SAM_PROTO_GetFieldsCounters done [14:57:18]requested_item shift.num is exist - process it [14:57:18]requested_item shift.opened is exist - process it [14:57:18]req_shift_opened [14:57:18]FM_GetShiftState [14:57:18]SAM_PROTO_GetShiftState [14:57:18]wFMCommunicate request_size=4 [14:57:18]MH_SAM_APDU [14:57:18]CAPDU: 80 13 01 00 [14:57:18]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:18]Read from MH i2c: E2 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 0E 00 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [14:57:18]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:57:18]wFMCommunicate OK [14:57:18]SAM_PROTO_GetShiftState done [14:57:18]FM_GetShiftState done [14:57:18]req_shift_opened done [14:57:18]requested_item shift.open_date is exist - process it [14:57:18]req_shift_open_date [14:57:18]req_shift_open_date done [14:57:18]produce_requested_data done [14:57:18]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7706,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:57:18]process_action_free get_value [14:57:18]json_value_free [14:57:18]json_value_free done [14:57:18]process_json_proto returns [14:57:18]Send response to host [14:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7706,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:57:18]free response buf [14:57:18]execute_script done [14:57:18]execute_script returns [14:57:18]free content buf [14:57:18]Sock 8.Close socket [14:57:18]Sock 8.Thread stoped [14:57:18]accept exits with 6 [14:57:18]New connection [14:57:18]New thread 3066535268 created [14:57:18]Thread 3066678628 joined [14:57:18]Waiting for new connection... [14:57:18] Sock 6.Parse request [14:57:18]Sock 6.Check first char [14:57:18]Sock 6.First char is OK [14:57:18]request: POST /json_proto HTTP/1.0 [14:57:18]Method: POST [14:57:18]URL: /json_proto [14:57:18]Method is POST - this is cgi request [14:57:18]url: /json_proto [14:57:18]query_string will be loaded in cgi processing [14:57:18]execute_cgi json_proto POST (null) [14:57:18]execute_cgi path=json_proto method=POST [14:57:18]POST find Content-Length [14:57:18]Host: 172.17.47.195:8080 [14:57:18]Content-Length: 331 [14:57:18]Content-Type: application/json [14:57:18] [14:57:18]POST finish read [14:57:18]Found Content-Length = 331 [14:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:57:18]execute_script... [14:57:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:57:18]POST & json_proto [14:57:18]process_json_proto [14:57:18]json parsed OK: [14:57:18]protocol is kg_v1.0 [14:57:18]action value=get_value [14:57:18]process_action get_value [14:57:18]cmd_get_value [14:57:18]process_action get_value done [14:57:18]requested_data is exist [14:57:18]produce_requested_data [14:57:18]requested_item fm.sale.total is exist - process it [14:57:18]SAM_PROTO_GetFMData [14:57:18]wFMCommunicate request_size=4 [14:57:18]MH_SAM_APDU [14:57:18]CAPDU: 80 13 03 00 [14:57:18]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:18]OFD Sender: Processing packet 7705 [packets to send 52, broken 50] [14:57:18]ProducePacketName [14:57:18]name=ofd_packets/00007705 [14:57:18]OFD Sender: To server: pG, [14:57:18]CommunicateWithHost lk.salyk.kg:30040 [14:57:18]ConnectInit lk.salyk.kg [14:57:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:57:18]Read from MH i2c: E2 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 FD 00 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 8E 1D 00 00 69 04 A0 00 6F 04 04 00 61 1D 00 00 B1 04 04 00 AF 9C F7 30 70 04 04 00 C4 82 0D 29 72 04 04 00 EB 19 EA 07 00 04 7C 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 BF 83 33 05 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 2F F5 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 B5 [14:57:18]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 8E 1D 00 00 69 04 A0 00 6F 04 04 00 61 1D 00 00 B1 04 04 00 AF 9C F7 30 70 04 04 00 C4 82 0D 29 72 04 04 00 EB 19 EA 07 00 04 7C 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 BF 83 33 05 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 2F F5 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [14:57:18]wFMCommunicate OK [14:57:18]wFMCommunicate request_size=4 [14:57:18]MH_SAM_APDU [14:57:18]CAPDU: 80 17 00 00 [14:57:18]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 FD 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [14:57:19]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [14:57:19]wFMCommunicate OK [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 17 00 00 [14:57:19]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 FD 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [14:57:19]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:57:19]wFMCommunicate OK [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 17 00 00 [14:57:19]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:57:19]Connected sock=10 [14:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 1E 49 08 01 65 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 Write i2c OK [14:57:19]67 MH_I2C_Read... [14:57:19]00 00 00 F4 03 04 00 F1 2F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 19 1E 00 00 35 04 06 00 85 60 94 95 1F F0 C8 A6 83 E9 19 5A BA 9E [14:57:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 FD 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [14:57:19]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:57:19]wFMCommunicate OK [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 17 00 00 [14:57:19]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [14:57:19]Read from MH i2c: E2 DE 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [14:57:19]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:57:19]wFMCommunicate OK [14:57:19]SAM_PROTO_GetFMData done [14:57:19]requested_item fm.sale_refund.total is exist - process it [14:57:19]requested_item fm.buy.total is exist - process it [14:57:19]requested_item shift.sale.total is exist - process it [14:57:19]SAM_PROTO_GetShiftData [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 13 02 00 [14:57:19]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 36 E1 47 00 B9 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 32 30 39 34 32 35 38 10 04 04 00 19 1E 00 00 F4 03 04 00 0C DB EF 66 B6 04 01 00 00 A3 9B A4 7A C8 27 45 C6 [14:57:20]CommunicateWithHost err = 0 [14:57:20]CheckOFDResponse [14:57:20]1017 (14) - 77093643461234 [14:57:20]1041 (16) - 0000000002094258 [14:57:20]1040 (4) - 7705 [14:57:20]1012 (4) - 22.09.2024 08:53 [14:57:20]1206 (1) - 0 [14:57:20]OFD Sender: Remove packet 7705 [14:57:20]ProducePacketName [14:57:20]name=ofd_packets/00007705 [14:57:20]NVStorageDeleteData [14:57:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 FD 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 68 00 00 00 69 04 9C 00 6F 04 04 00 67 00 00 00 B1 04 03 00 B3 CA 9F 70 04 03 00 54 81 93 72 04 03 00 5F 49 0C 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 86 F9 10 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 19 6A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 AA [14:57:20]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 68 00 00 00 69 04 9C 00 6F 04 04 00 67 00 00 00 B1 04 03 00 B3 CA 9F 70 04 03 00 54 81 93 72 04 03 00 5F 49 0C 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 86 F9 10 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 19 6A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [14:57:20]wFMCommunicate OK [14:57:20]wFMCommunicate request_size=4 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 17 00 00 [14:57:20]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]OFD Sender: Processing packet 7706 [packets to send 51, broken 50] [14:57:20]ProducePacketName [14:57:20]name=ofd_packets/00007706 [14:57:20]OFD Sender: To server: pG, [14:57:20]CommunicateWithHost lk.salyk.kg:30040 [14:57:20]ConnectInit lk.salyk.kg [14:57:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 FD 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [14:57:20]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [14:57:20]wFMCommunicate OK [14:57:20]wFMCommunicate request_size=4 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 17 00 00 [14:57:20]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:57:21]Read from MH i2c: E2 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 FD 00 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [14:57:21]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:57:21]wFMCommunicate OK [14:57:21]wFMCommunicate request_size=4 [14:57:21]MH_SAM_APDU [14:57:21]CAPDU: 80 17 00 00 [14:57:21]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:57:21]Write i2c OK [14:57:21]MH_I2C_Read... [14:57:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:57:21]Read from MH i2c: E2 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 FD 00 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [14:57:21]RAPDU: 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 90 00 [14:57:21]wFMCommunicate OK [14:57:21]wFMCommunicate request_size=4 [14:57:21]MH_SAM_APDU [14:57:21]CAPDU: 80 17 00 00 [14:57:21]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:57:21]Write i2c OK [14:57:21]MH_I2C_Read... [14:57:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [14:57:21]Read from MH i2c: E2 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 D4 00 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [14:57:21]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:57:21]wFMCommunicate OK [14:57:21]SAM_PROTO_GetShiftData done [14:57:21]requested_item shift.sale.total_cash is exist - process it [14:57:21]requested_item shift.sale_refund.total is exist - process it [14:57:21]requested_item shift.sale_refund.total_cash is exist - process it [14:57:21]requested_item shift.buy.total is exist - process it [14:57:21]requested_item shift.buy.total_cash is exist - process it [14:57:21]produce_requested_data done [14:57:21]produce_requested_data return {"fm.sale.total":8215338.71,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":104721.15,"shift.sale.total_cash":96669.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:57:21]process_action_free get_value [14:57:21]json_value_free [14:57:21]json_value_free done [14:57:21]process_json_proto returns [14:57:21]Send response to host [14:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8215338.71,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":104721.15,"shift.sale.total_cash":96669.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:57:21]free response buf [14:57:21]execute_script done [14:57:21]execute_script returns [14:57:21]free content buf [14:57:21]Sock 6.Close socket [14:57:21]Sock 6.Thread stoped [14:57:22]accept exits with 8 [14:57:22]New connection [14:57:22]New thread 3066678628 created [14:57:22]Thread 3066535268 joined [14:57:22]Waiting for new connection... [14:57:22] Sock 8.Parse request [14:57:22]Sock 8.Check first char [14:57:22]Sock 8.First char is OK [14:57:22]request: POST /json_proto HTTP/1.0 [14:57:22]Method: POST [14:57:22]URL: /json_proto [14:57:22]Method is POST - this is cgi request [14:57:22]url: /json_proto [14:57:22]query_string will be loaded in cgi processing [14:57:22]execute_cgi json_proto POST (null) [14:57:22]execute_cgi path=json_proto method=POST [14:57:22]POST find Content-Length [14:57:22]Host: 172.17.47.195:8080 [14:57:22]Content-Length: 687 [14:57:22]Content-Type: application/json [14:57:22] [14:57:22]POST finish read [14:57:22]Found Content-Length = 687 [14:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:22]execute_script... [14:57: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)871813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:22]POST & json_proto [14:57:22]process_json_proto [14:57:22]json parsed OK: [14:57:22]protocol is kg_v1.0 [14:57:22]action value=close_receipt [14:57:22]process_action close_receipt [14:57:22]cmd_close_receipt [14:57:22]MH_GetDate [14:57:22]Write to MH i2c: F0 00 00 1D 00 0C [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: F0 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: F0 09 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: F0 09 00 1D 00 00 52 30 F0 66 96 2E 95 66 AC [14:57:22]GetLastDocTimeStamp 1727016962 [14:57:22]current date 1727017042 [14:57:22]FM_GetShiftState [14:57:22]SAM_PROTO_GetShiftState [14:57:22]wFMCommunicate request_size=4 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 13 01 00 [14:57:22]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 0E 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [14:57:22]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:57:22]wFMCommunicate OK [14:57:22]SAM_PROTO_GetShiftState done [14:57:22]FM_GetShiftState done [14:57:22]opened in 1726964224 [14:57:22]opened+sec_in_day 1727050624 [14:57:22]quantity*price = 250012 [14:57:22]sum+1 = 250013 [14:57:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 105 22.09.2024 14:57 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7707 ФПД: 273180372330131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145722&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7707&fm=273180372330131&tin=02508201610067®Number=0000000000190446&sum=250000 [14:57:23]StoreToDocumentArchive [14:57:23]shift 70 fd 7707 [14:57:23]save to /storage/0070/doc_00007707 [14:57:23]save last doc name /storage/0070/doc_00007707 to /storage/kkm_last_doc_name [14:57:23]save OK [14:57:23]Clear old archive folders... [14:57:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:57:23]tlvbuf is 01DCFDF0 [14:57:23]SAM_PROTO_ClearQueue [14:57:23]wFMCommunicate request_size=4 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 09 00 00 [14:57:23]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:57:23]RAPDU: 90 00 [14:57:23]wFMCommunicate OK [14:57:23]SAM_PROTO_ClearQueue done [14:57:23]KKMCreateOFDPacket [14:57:23]OFDProtocolAddRootSTLVToBuf [14:57:23]FM_MakeSignedData [14:57:23]FM_MakeSignedData [14:57:23]SAM_PROTO_SignData [14:57:23]wFMCommunicate request_size=4 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 0D 01 02 [14:57:23]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:57:23]RAPDU: 90 00 [14:57:23]wFMCommunicate OK [14:57:23]wFMCommunicate request_size=255 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 52 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1B 1E 00 00 35 04 06 00 [14:57:23]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 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 52 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1B 1E 00 00 35 04 06 00 00 00 2F [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:24]Read from MH i2c: E2 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 03 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:57:24]RAPDU: 90 00 [14:57:24]wFMCommunicate OK [14:57:24]wFMCommunicate request_size=11 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 0D 02 02 06 F8 74 C3 0D 66 93 [14:57:24]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 F8 74 C3 0D 66 93 00 00 E9 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:24]Read from MH i2c: E2 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 03 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:57:24]RAPDU: 90 00 [14:57:24]wFMCommunicate OK [14:57:24]wFMCommunicate request_size=4 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 0D 03 02 [14:57:24]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:24]Read from MH i2c: E2 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 0B 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 0B 00 2F 00 00 A1 9A 68 8E 6E 16 D2 24 90 00 56 [14:57:24]RAPDU: A1 9A 68 8E 6E 16 D2 24 90 00 [14:57:24]wFMCommunicate OK [14:57:24]SAM_PROTO_SignData done [14:57:24]FM_MakeSignedData done [14:57:24]CreateOFDProtocolMessage [14:57:24]wFMCommunicate request_size=4 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 11 00 00 [14:57:24]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 FB 6B 47 00 C0 DC A5 07 01 00 07 00 3B Read from MH i2c: 00 E2 F9 [14:57:24]03 MH_I2C_Read... [14:57:24]0E Read from MH i2c: 00 E2 37 17 37 00 30 [14:57:24]39 MH_I2C_Read... [14:57:24]33 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:24]36 Read from MH i2c: 34 E2 33 17 34 00 36 30 31 00 32 00 33 11 34 04 11 10 04 00 10 30 00 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 32 32 30 30 39 39 34 34 32 32 35 35 38 38 90 10 00 04 FB 04 [14:57:24]00 1A RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:57:24]wFMCommunicate OK [14:57:24]CreateOFDProtocolMessage done [14:57:24]OFDSenderStorePacket 7707 [14:57:24]StoreOFDPacket docnum=7707 [14:57:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 5E 41 08 01 CB 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 52 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1B 1E 00 00 35 04 06 00 F8 74 C3 0D 66 93 A1 9A 68 8E 6E 16 D2 24 [14:57:24]CheckFolder [14:57:24]dirname=/storage/ofd_packets [14:57:24]CheckFolder done [14:57:24]ProducePacketName [14:57:24]name=ofd_packets/00007707 [14:57:24]NVStorageSaveData ofd_packets/00007707 [14:57:24]File name is /storage/ofd_packets/00007707 [14:57:24]1E 00 00 F4 03 04 00 10 DB EF 66 B6 04 01 00 00 7D EE FF 8A 1A 49 24 3D [14:57:24]CommunicateWithHost err = 0 [14:57:24]CheckOFDResponse [14:57:24]1017 (14) - 77093643461234 [14:57:24]1041 (16) - 0000000002094258 [14:57:24]1040 (4) - 7706 [14:57:24]1012 (4) - 22.09.2024 08:53 [14:57:24]1206 (1) - 0 [14:57:24]OFD Sender: Remove packet 7706 [14:57:24]ProducePacketName [14:57:24]name=ofd_packets/00007706 [14:57:24]NVStorageDeleteData [14:57:24]Write 302 bytes [14:57:24]NVStorageSaveData done [14:57:24]OFDSenderStorePacket done [14:57:24]KKMCreateOFDPacket done [14:57:24]NVStorageSaveData kkm_last_timestamp [14:57:24]File name is /storage/kkm_last_timestamp [14:57:24]Write 4 bytes [14:57:24]NVStorageSaveData done [14:57:24]ExternCall_PrintAddStr [14:57:24]wPrintStart [14:57:24]Write to MH i2c: 01 00 00 31 00 31 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:57:24]RasterBufferAndPrint [14:57:24]line Счет N : (1)871813 [14:57:24]line ИНН: 02508201610067 [14:57:24]line Контрольно-Кассовый Чек [14:57:24]line ПРОДАЖА [14:57:24]line ТРК (МРК, ГНК) : 11 [14:57:24]line Товар: 2710194210 [14:57:24]line ДТ(л)-К-4 [14:57:24]line 32.810 * 76.20 [14:57:24]line = 2500.12 [14:57:24]line НДС 12% НСП 1% [14:57:24]line > о реализуемом товаре [14:57:24]line ОКРУГЛЕНИЕ: -0.12 [14:57:24]line ИТОГО: 2500.00 [14:57:24]line Внесено: 2500.00 [14:57:24]line СДАЧА: 0.00 [14:57:24]line НСП 1% : 22.12 [14:57:24]line НДС 12% : 265.50 [14:57:24]line Наличными: 2500.00 [14:57:24]line Безнал.: 0.00 [14:57:24]line Место: АЗС № 137 "Партнер Нефть" [14:57:24]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:57:24]line СНО: Общий режим [14:57:24]line Чек 105 22.09.2024 14:57 [14:57:24]line Смена: 70 ФФД: 1.0 [14:57:24]line ЗНМ: 0300000041 [14:57:24]line РНМ: 0000000000190446 [14:57:24]line Версия ККМ: v1.0 [14:57:24]line ФМ: 0000000002094258 [14:57:24]line ФД: 7707 [14:57:24]line ФПД: 273180372330131 [14:57:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145722&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7707&fm=273180372330131&tin=02508201610067®Number=0000000000190446&sum=250000 [14:57:24]written 0, free lines is 4095 [14:57:25]Write to MH i2c: 01 00 00 5C 00 5C [14:57:25]OFD Sender: Processing packet 7707 [packets to send 51, broken 50] [14:57:25]ProducePacketName [14:57:25]name=ofd_packets/00007707 [14:57:25]OFD Sender: To server: pG, [14:57:25]CommunicateWithHost lk.salyk.kg:30040 [14:57:25]ConnectInit lk.salyk.kg [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: 01 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: 01 07 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 07 0D 77 [14:57:25]RasterBufferAndPrint [14:57:25]line [14:57:25]line [14:57:25]line [14:57:25]line [14:57:25]line [14:57:25]written 0, free lines is 3374 [14:57:25]MH_Cut [14:57:25]Write to MH i2c: D1 01 00 63 00 01 35 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: D1 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: D1 01 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: D1 01 00 63 00 00 34 [14:57:25]Write to MH i2c: 01 00 00 64 00 64 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** Cut start [14:57:25]*** Purtial cut [14:57:25]*** Stage 1: CUTSNS_PIN = 1 [14:57:26]Read from MH i2c: 01 [14:57:26]MH_I2C_Read... [14:57:26]*** Stop cut motor [14:57:26]*** Cut end [14:57:26]Read from MH i2c: 01 07 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:57:26]process_action close_receipt done [14:57:26]requested_data is exist [14:57:26]produce_requested_data [14:57:26]requested_item fm.sn is exist - process it [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 11 00 00 [14:57:26]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:26]Read from MH i2c: E2 17 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [14:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:57:26]wFMCommunicate OK [14:57:26]requested_item fd.num is exist - process it [14:57:26]SAM_PROTO_GetFieldsCounters [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 13 00 00 [14:57:26]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]Connected sock=10 [14:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 5E 41 08 01 CB 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 52 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1B 1E 00 00 35 04 06 00 F8 74 C3 0D 66 93 A1 9A 68 8E 6E 16 D2 24 [14:57:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 62 00 [14:57:26]MH_I2C_Read... [14:57:26]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1B 1E 00 00 0E 04 04 00 46 00 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 BA [14:57:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1B 1E 00 00 0E 04 04 00 46 00 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:57:26]wFMCommunicate OK [14:57:26]SAM_PROTO_GetFieldsCounters done [14:57:26]requested_item shift.num is exist - process it [14:57:26]requested_item shift.opened is exist - process it [14:57:26]req_shift_opened [14:57:26]FM_GetShiftState [14:57:26]SAM_PROTO_GetShiftState [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 13 01 00 [14:57:26]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 0E 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [14:57:26]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:57:26]wFMCommunicate OK [14:57:26]SAM_PROTO_GetShiftState done [14:57:26]FM_GetShiftState done [14:57:26]req_shift_opened done [14:57:26]requested_item shift.open_date is exist - process it [14:57:26]req_shift_open_date [14:57:26]req_shift_open_date done [14:57:26]produce_requested_data done [14:57:26]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7707,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:57:26]process_action_free close_receipt [14:57:26]json_value_free [14:57:26]json_value_free done [14:57:26]process_json_proto returns [14:57:26]Send response to host [14:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7707,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:57:26]free response buf [14:57:26]execute_script done [14:57:26]execute_script returns [14:57:26]free content buf [14:57:26]Sock 8.Close socket [14:57:26]Sock 8.Thread stoped [14:57:27]accept exits with 6 [14:57:27]New connection [14:57:27]New thread 3066535268 created [14:57:27]Thread 3066678628 joined [14:57:27]Waiting for new connection... [14:57:27] Sock 6.Parse request [14:57:27]Sock 6.Check first char [14:57:27]Sock 6.First char is OK [14:57:27]request: POST /json_proto HTTP/1.0 [14:57:27]Method: POST [14:57:27]URL: /json_proto [14:57:27]Method is POST - this is cgi request [14:57:27]url: /json_proto [14:57:27]query_string will be loaded in cgi processing [14:57:27]execute_cgi json_proto POST (null) [14:57:27]execute_cgi path=json_proto method=POST [14:57:27]POST find Content-Length [14:57:27]Host: 172.17.47.195:8080 [14:57:27]Content-Length: 678 [14:57:27]Content-Type: application/json [14:57:27] [14:57:27]POST finish read [14:57:27]Found Content-Length = 678 [14:57:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871814", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:27]execute_script... [14:57:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871814", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:27]POST & json_proto [14:57:27]process_json_proto [14:57:27]json parsed OK: [14:57:27]protocol is kg_v1.0 [14:57:27]action value=close_receipt [14:57:27]process_action close_receipt [14:57:27]cmd_close_receipt [14:57:27]MH_GetDate [14:57:27]Write to MH i2c: F0 00 00 68 00 57 [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: F0 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: F0 09 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: F0 09 00 68 00 00 57 30 F0 66 96 2E 95 66 FC [14:57:27]GetLastDocTimeStamp 1727017042 [14:57:27]current date 1727017047 [14:57:27]FM_GetShiftState [14:57:27]SAM_PROTO_GetShiftState [14:57:27]wFMCommunicate request_size=4 [14:57:27]MH_SAM_APDU [14:57:27]CAPDU: 80 13 01 00 [14:57:27]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:27]Read from MH i2c: E2 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 0E 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [14:57:27]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:57:27]wFMCommunicate OK [14:57:27]SAM_PROTO_GetShiftState done [14:57:27]FM_GetShiftState done [14:57:27]opened in 1726964224 [14:57:27]opened+sec_in_day 1727050624 [14:57:27]quantity*price = 70037 [14:57:27]sum+1 = 70038 [14:57:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 106 22.09.2024 14:57 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7708 ФПД: 185400563147475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145727&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7708&fm=185400563147475&tin=02508201610067®Number=0000000000190446&sum=70000 [14:57:28]StoreToDocumentArchive [14:57:28]shift 70 fd 7708 [14:57:28]save to /storage/0070/doc_00007708 [14:57:28]save last doc name /storage/0070/doc_00007708 to /storage/kkm_last_doc_name [14:57:28]save OK [14:57:28]Clear old archive folders... [14:57:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:28]tlvbuf is 01D58050 [14:57:28]SAM_PROTO_ClearQueue [14:57:28]wFMCommunicate request_size=4 [14:57:28]MH_SAM_APDU [14:57:28]CAPDU: 80 09 00 00 [14:57:28]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [14:57:28]Write i2c OK [14:57:28]MH_I2C_Read... [14:57:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:28]Read from MH i2c: E2 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 03 00 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:57:28]RAPDU: 90 00 [14:57:28]wFMCommunicate OK [14:57:28]SAM_PROTO_ClearQueue done [14:57:28]KKMCreateOFDPacket [14:57:28]OFDProtocolAddRootSTLVToBuf [14:57:28]FM_MakeSignedData [14:57:28]FM_MakeSignedData [14:57:28]SAM_PROTO_SignData [14:57:28]wFMCommunicate request_size=4 [14:57:28]MH_SAM_APDU [14:57:28]CAPDU: 80 0D 01 02 [14:57:28]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [14:57:28]Write i2c OK [14:57:28]MH_I2C_Read... [14:57:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:28]Read from MH i2c: E2 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 03 00 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:57:28]RAPDU: 90 00 [14:57:28]wFMCommunicate OK [14:57:28]wFMCommunicate request_size=255 [14:57:28]MH_SAM_APDU [14:57:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1C 1E 00 00 35 04 06 00 A8 [14:57:29]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1C 1E 00 00 35 04 06 00 A8 00 00 C2 [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 03 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:57:29]RAPDU: 90 00 [14:57:29]wFMCommunicate OK [14:57:29]wFMCommunicate request_size=10 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 0D 02 02 05 9E EE B5 22 D3 [14:57:29]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 9E EE B5 22 D3 00 00 33 [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 03 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:57:29]RAPDU: 90 00 [14:57:29]wFMCommunicate OK [14:57:29]wFMCommunicate request_size=4 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 0D 03 02 [14:57:29]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 0B 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 0B 00 7A 00 00 E6 E5 B4 2B 6F 3B 5E AC 90 00 54 [14:57:29]RAPDU: E6 E5 B4 2B 6F 3B 5E AC 90 00 [14:57:29]wFMCommunicate OK [14:57:29]SAM_PROTO_SignData done [14:57:29]FM_MakeSignedData done [14:57:29]CreateOFDProtocolMessage [14:57:29]wFMCommunicate request_size=4 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 11 00 00 [14:57:29]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 17 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [14:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:57:29]wFMCommunicate OK [14:57:29]CreateOFDProtocolMessage done [14:57:29]OFDSenderStorePacket 7708 [14:57:29]StoreOFDPacket docnum=7708 [14:57:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 FD C8 07 01 D7 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1C 1E 00 00 35 04 06 00 A8 9E EE B5 22 D3 E6 E5 B4 2B 6F 3B 5E AC [14:57:29]CheckFolder [14:57:29]dirname=/storage/ofd_packets [14:57:29]CheckFolder done [14:57:29]ProducePacketName [14:57:29]name=ofd_packets/00007708 [14:57:29]NVStorageSaveData ofd_packets/00007708 [14:57:29]File name is /storage/ofd_packets/00007708 [14:57:29]Write 301 bytes [14:57:29]NVStorageSaveData done [14:57:29]OFDSenderStorePacket done [14:57:29]KKMCreateOFDPacket done [14:57:29]NVStorageSaveData kkm_last_timestamp [14:57:29]File name is /storage/kkm_last_timestamp [14:57:29]Write 4 bytes [14:57:29]NVStorageSaveData done [14:57:29]ExternCall_PrintAddStr [14:57:29]wPrintStart [14:57:29]Write to MH i2c: 01 00 00 7C 00 7C [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: 01 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: 01 07 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [14:57:29]RasterBufferAndPrint [14:57:29]line Счет N : (1)871814 [14:57:29]line ИНН: 02508201610067 [14:57:29]line Контрольно-Кассовый Чек [14:57:29]line ПРОДАЖА [14:57:29]line ТРК (МРК, ГНК) : 63 [14:57:29]line Товар: 2710124130 [14:57:29]line Аи-92-К-5 [14:57:29]line 10.330 * 67.80 [14:57:29]line = 700.37 [14:57:29]line НДС 12% НСП 1% [14:57:29]line > о реализуемом товаре [14:57:29]line ОКРУГЛЕНИЕ: -0.37 [14:57:29]line ИТОГО: 700.00 [14:57:29]line Внесено: 700.00 [14:57:29]line СДАЧА: 0.00 [14:57:29]line НСП 1% : 6.20 [14:57:29]line НДС 12% : 74.38 [14:57:29]line Наличными: 700.00 [14:57:29]line Безнал.: 0.00 [14:57:29]line Место: АЗС № 137 "Партнер Нефть" [14:57:29]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:57:29]line СНО: Общий режим [14:57:29]line Чек 106 22.09.2024 14:57 [14:57:29]line Смена: 70 ФФД: 1.0 [14:57:29]line ЗНМ: 0300000041 [14:57:29]line РНМ: 0000000000190446 [14:57:29]line Версия ККМ: v1.0 [14:57:29]line ФМ: 0000000002094258 [14:57:29]line ФД: 7708 [14:57:29]line ФПД: 185400563147475 [14:57:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145727&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7708&fm=185400563147475&tin=02508201610067®Number=0000000000190446&sum=70000 [14:57:29]written 0, free lines is 4095 [14:57:29]OFD Sender: Processing packet 7708 [packets to send 51, broken 50] [14:57:29]ProducePacketName [14:57:29]name=ofd_packets/00007708 [14:57:29]OFD Sender: To server: pG, [14:57:29]CommunicateWithHost lk.salyk.kg:30040 [14:57:29]ConnectInit lk.salyk.kg [14:57:30]Write to MH i2c: 01 00 00 A7 00 A7 [14:57:30]Write i2c OK [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: 01 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: 01 07 00 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 F0 0C AA [14:57:30]RasterBufferAndPrint [14:57:30]line [14:57:30]line [14:57:30]line [14:57:30]line [14:57:30]line [14:57:30]written 0, free lines is 3342 [14:57:30]MH_Cut [14:57:30]Write to MH i2c: D1 01 00 AE 00 01 80 [14:57:30]Write i2c OK [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: D1 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: D1 01 00 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: D1 01 00 AE 00 00 7F [14:57:30]Write to MH i2c: 01 00 00 AF 00 AF [14:57:30]Write i2c OK [14:57:30]MH_I2C_Read... [14:57:30]Connected sock=11 [14:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 FD C8 07 01 D7 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 *** Cut start [14:57:30]6A 00 00 00 F4 03 04 00 57 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 *** Purtial cut [14:57:31]04 00 1C 1E 00 00 35 04 06 00 A8 9E EE *** Stage 1: CUTSNS_PIN = 1 [14:57:31]B5 22 D3 E6 E5 B4 2B 6F 3B 5E AC [14:57:31]Read from MH i2c: 01 [14:57:31]MH_I2C_Read... [14:57:31]*** Stop cut motor [14:57:31]*** Cut end [14:57:31]Read from MH i2c: 01 07 00 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [14:57:31]process_action close_receipt done [14:57:31]requested_data is exist [14:57:31]produce_requested_data [14:57:31]requested_item fm.sn is exist - process it [14:57:31]wFMCommunicate request_size=4 [14:57:31]MH_SAM_APDU [14:57:31]CAPDU: 80 11 00 00 [14:57:31]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [14:57:31]Write i2c OK [14:57:31]MH_I2C_Read... [14:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:31]Read from MH i2c: E2 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: E2 17 00 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [14:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:57:31]wFMCommunicate OK [14:57:31]requested_item fd.num is exist - process it [14:57:31]SAM_PROTO_GetFieldsCounters [14:57:31]wFMCommunicate request_size=4 [14:57:31]MH_SAM_APDU [14:57:31]CAPDU: 80 13 00 00 [14:57:31]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [14:57:31]Write i2c OK [14:57:31]MH_I2C_Read... [14:57:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:31]Read from MH i2c: E2 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: E2 62 00 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1C 1E 00 00 0E 04 04 00 46 00 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 09 [14:57:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1C 1E 00 00 0E 04 04 00 46 00 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:57:31]wFMCommunicate OK [14:57:31]SAM_PROTO_GetFieldsCounters done [14:57:31]requested_item shift.num is exist - process it [14:57:31]requested_item shift.opened is exist - process it [14:57:31]req_shift_opened [14:57:31]FM_GetShiftState [14:57:31]SAM_PROTO_GetShiftState [14:57:31]wFMCommunicate request_size=4 [14:57:31]MH_SAM_APDU [14:57:31]CAPDU: 80 13 01 00 [14:57:31]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F8 E6 47 00 0C 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 Write i2c OK [14:57:31]33 MH_I2C_Read... [14:57:31]36 Read from MH i2c: 34 E2 33 [14:57:31]34 MH_I2C_Read... [14:57:31]36 Read from MH i2c: 31 E2 32 0E 33 00 34 [14:57:31]MH_I2C_Read... [14:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:31]11 04 10 00 30 30 30 Read from MH i2c: 30 E2 30 0E 30 00 30 B2 30 00 30 00 32 09 30 00 39 01 34 00 32 62 35 EF 38 66 10 00 04 04 00 1C 1E 00 00 F4 03 04 00 17 DB EF 66 B6 04 01 00 00 F7 4B 00 D0 00 34 00 9E 90 B5 00 36 F2 E8 [14:57:31] [14:57:31]RAPDU: CommunicateWithHost err = 0 [14:57:31]09 CheckOFDResponse [14:57:31]00 1017 (14) - 77093643461234 [14:57:31]01 1041 (16) - 0000000002094258 [14:57:31]00 1040 (4) - 7708 [14:57:31]62 1012 (4) - 22.09.2024 08:53 [14:57:31]EF 1206 (1) - 0 [14:57:31]66 OFD Sender: Remove packet 7708 [14:57:31]00 ProducePacketName [14:57:31]00 name=ofd_packets/00007708 [14:57:31]00 NVStorageDeleteData [14:57:31]00 90 00 [14:57:31]wFMCommunicate OK [14:57:31]SAM_PROTO_GetShiftState done [14:57:31]FM_GetShiftState done [14:57:31]req_shift_opened done [14:57:31]requested_item shift.open_date is exist - process it [14:57:31]req_shift_open_date [14:57:31]req_shift_open_date done [14:57:31]produce_requested_data done [14:57:31]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7708,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:57:31]process_action_free close_receipt [14:57:31]json_value_free [14:57:31]json_value_free done [14:57:31]process_json_proto returns [14:57:31]Send response to host [14:57:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7708,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:57:31]free response buf [14:57:31]execute_script done [14:57:31]execute_script returns [14:57:31]free content buf [14:57:31]Sock 6.Close socket [14:57:31]Sock 6.Thread stoped [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:16]accept exits with 8 [14:58:16]New connection [14:58:16]New thread 3066678628 created [14:58:16]Thread 3066535268 joined [14:58:16]Waiting for new connection... [14:58:16] Sock 8.Parse request [14:58:16]Sock 8.Check first char [14:58:16]Sock 8.First char is OK [14:58:16]request: POST /json_proto HTTP/1.0 [14:58:16]Method: POST [14:58:16]URL: /json_proto [14:58:16]Method is POST - this is cgi request [14:58:16]url: /json_proto [14:58:16]query_string will be loaded in cgi processing [14:58:16]execute_cgi json_proto POST (null) [14:58:16]execute_cgi path=json_proto method=POST [14:58:16]POST find Content-Length [14:58:16]Host: 172.17.47.195:8080 [14:58:16]Content-Length: 677 [14:58:16]Content-Type: application/json [14:58:16] [14:58:16]POST finish read [14:58:16]Found Content-Length = 677 [14:58:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871816", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:16]execute_script... [14:58: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)871816", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:16]POST & json_proto [14:58:16]process_json_proto [14:58:16]json parsed OK: [14:58:16]protocol is kg_v1.0 [14:58:16]action value=close_receipt [14:58:16]process_action close_receipt [14:58:16]cmd_close_receipt [14:58:16]MH_GetDate [14:58:16]Write to MH i2c: F0 00 00 B3 00 A2 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: F0 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: F0 09 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: F0 09 00 B3 00 00 89 30 F0 66 96 2E 95 66 79 [14:58:16]GetLastDocTimeStamp 1727017047 [14:58:16]current date 1727017097 [14:58:16]FM_GetShiftState [14:58:16]SAM_PROTO_GetShiftState [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 13 01 00 [14:58:16]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 0E 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F4 [14:58:16]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:58:16]wFMCommunicate OK [14:58:16]SAM_PROTO_GetShiftState done [14:58:16]FM_GetShiftState done [14:58:16]opened in 1726964224 [14:58:16]opened+sec_in_day 1727050624 [14:58:16]quantity*price = 30035 [14:58:16]sum+1 = 30036 [14:58:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 107 22.09.2024 14:58 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7709 ФПД: 229192916322301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145817&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7709&fm=229192916322301&tin=02508201610067®Number=0000000000190446&sum=30000 [14:58:17]StoreToDocumentArchive [14:58:17]shift 70 fd 7709 [14:58:17]save to /storage/0070/doc_00007709 [14:58:17]save last doc name /storage/0070/doc_00007709 to /storage/kkm_last_doc_name [14:58:17]save OK [14:58:17]Clear old archive folders... [14:58:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:17]tlvbuf is 01D599E0 [14:58:17]SAM_PROTO_ClearQueue [14:58:17]wFMCommunicate request_size=4 [14:58:17]MH_SAM_APDU [14:58:17]CAPDU: 80 09 00 00 [14:58:17]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:17]Read from MH i2c: E2 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 03 00 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:58:17]RAPDU: 90 00 [14:58:17]wFMCommunicate OK [14:58:17]SAM_PROTO_ClearQueue done [14:58:17]KKMCreateOFDPacket [14:58:17]OFDProtocolAddRootSTLVToBuf [14:58:17]FM_MakeSignedData [14:58:17]FM_MakeSignedData [14:58:17]SAM_PROTO_SignData [14:58:17]wFMCommunicate request_size=4 [14:58:17]MH_SAM_APDU [14:58:17]CAPDU: 80 0D 01 02 [14:58:17]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:17]Read from MH i2c: E2 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 03 00 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:58:17]RAPDU: 90 00 [14:58:17]wFMCommunicate OK [14:58:17]wFMCommunicate request_size=255 [14:58:17]MH_SAM_APDU [14:58: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 89 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1D 1E 00 00 35 04 06 00 D0 [14:58:17]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 89 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1D 1E 00 00 35 04 06 00 D0 00 00 A1 [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:18]Read from MH i2c: E2 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 03 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [14:58:18]RAPDU: 90 00 [14:58:18]wFMCommunicate OK [14:58:18]wFMCommunicate request_size=10 [14:58:18]MH_SAM_APDU [14:58:18]CAPDU: 80 0D 02 02 05 73 22 5C C7 FD [14:58:18]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 73 22 5C C7 FD 00 00 FD [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:18]Read from MH i2c: E2 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 03 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [14:58:18]RAPDU: 90 00 [14:58:18]wFMCommunicate OK [14:58:18]wFMCommunicate request_size=4 [14:58:18]MH_SAM_APDU [14:58:18]CAPDU: 80 0D 03 02 [14:58:18]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:18]Read from MH i2c: E2 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 0B 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 0B 00 C5 00 00 FE 78 A8 08 D1 50 B7 3D 90 00 7C [14:58:18]RAPDU: FE 78 A8 08 D1 50 B7 3D 90 00 [14:58:18]wFMCommunicate OK [14:58:18]SAM_PROTO_SignData done [14:58:18]FM_MakeSignedData done [14:58:18]CreateOFDProtocolMessage [14:58:18]wFMCommunicate request_size=4 [14:58:18]MH_SAM_APDU [14:58:18]CAPDU: 80 11 00 00 [14:58:18]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:18]Read from MH i2c: E2 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 17 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 91 [14:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:58:18]wFMCommunicate OK [14:58:18]CreateOFDProtocolMessage done [14:58:18]OFDSenderStorePacket 7709 [14:58:18]StoreOFDPacket docnum=7709 [14:58:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 26 89 07 01 6F 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 89 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1D 1E 00 00 35 04 06 00 D0 73 22 5C C7 FD FE 78 A8 08 D1 50 B7 3D [14:58:18]CheckFolder [14:58:18]dirname=/storage/ofd_packets [14:58:18]CheckFolder done [14:58:18]ProducePacketName [14:58:18]name=ofd_packets/00007709 [14:58:18]NVStorageSaveData ofd_packets/00007709 [14:58:18]File name is /storage/ofd_packets/00007709 [14:58:18]Write 301 bytes [14:58:18]NVStorageSaveData done [14:58:18]OFDSenderStorePacket done [14:58:18]KKMCreateOFDPacket done [14:58:18]NVStorageSaveData kkm_last_timestamp [14:58:18]File name is /storage/kkm_last_timestamp [14:58:18]Write 4 bytes [14:58:18]NVStorageSaveData done [14:58:18]ExternCall_PrintAddStr [14:58:18]wPrintStart [14:58:18]Write to MH i2c: 01 00 00 C7 00 C7 [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: 01 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: 01 07 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [14:58:18]RasterBufferAndPrint [14:58:18]line Счет N : (1)871816 [14:58:18]line ИНН: 02508201610067 [14:58:18]line Контрольно-Кассовый Чек [14:58:18]line ПРОДАЖА [14:58:18]line ТРК (МРК, ГНК) : 53 [14:58:18]line Товар: 2710124130 [14:58:18]line Аи-92-К-5 [14:58:18]line 4.430 * 67.80 [14:58:18]line = 300.35 [14:58:18]line НДС 12% НСП 1% [14:58:18]line > о реализуемом товаре [14:58:18]line ОКРУГЛЕНИЕ: -0.35 [14:58:18]line ИТОГО: 300.00 [14:58:18]line Внесено: 300.00 [14:58:18]line СДАЧА: 0.00 [14:58:18]line НСП 1% : 2.66 [14:58:18]line НДС 12% : 31.90 [14:58:18]line Наличными: 300.00 [14:58:18]line Безнал.: 0.00 [14:58:18]line Место: АЗС № 137 "Партнер Нефть" [14:58:18]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:58:18]line СНО: Общий режим [14:58:18]line Чек 107 22.09.2024 14:58 [14:58:18]line Смена: 70 ФФД: 1.0 [14:58:18]line ЗНМ: 0300000041 [14:58:18]line РНМ: 0000000000190446 [14:58:18]line Версия ККМ: v1.0 [14:58:18]line ФМ: 0000000002094258 [14:58:18]line ФД: 7709 [14:58:18]line ФПД: 229192916322301 [14:58:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145817&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7709&fm=229192916322301&tin=02508201610067®Number=0000000000190446&sum=30000 [14:58:18]written 0, free lines is 4095 [14:58:18]OFD Sender: Processing packet 7709 [packets to send 51, broken 50] [14:58:18]ProducePacketName [14:58:18]name=ofd_packets/00007709 [14:58:18]OFD Sender: To server: pG, [14:58:18]CommunicateWithHost lk.salyk.kg:30040 [14:58:18]ConnectInit lk.salyk.kg [14:58:18]Write to MH i2c: 01 00 00 F2 00 F2 [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: 01 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: 01 07 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 F0 0C F5 [14:58:18]RasterBufferAndPrint [14:58:18]line [14:58:18]line [14:58:18]line [14:58:18]line [14:58:18]line [14:58:18]written 0, free lines is 3331 [14:58:18]MH_Cut [14:58:18]Write to MH i2c: D1 01 00 F9 00 01 CB [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: D1 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: D1 01 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: D1 01 00 F9 00 00 CA [14:58:18]Write to MH i2c: 01 00 00 FA 00 FA [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:19]Connected sock=9 [14:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 26 89 07 01 6F 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 89 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1D 1E 00 00 35 04 06 00 D0 73 22 5C C7 FD FE 78 A8 08 D1 50 B7 3D [14:58:19]*** Cut start [14:58:19]*** Purtial cut [14:58:19]*** Stage 1: CUTSNS_PIN = 1 [14:58:19]Read from MH i2c: 01 [14:58:19]MH_I2C_Read... [14:58:19]*** Stop cut motor [14:58:19]*** Cut end [14:58:19]Read from MH i2c: 01 07 00 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [14:58:19]process_action close_receipt done [14:58:19]requested_data is exist [14:58:19]produce_requested_data [14:58:19]requested_item fm.sn is exist - process it [14:58:19]wFMCommunicate request_size=4 [14:58:19]MH_SAM_APDU [14:58:19]CAPDU: 80 11 00 00 [14:58:19]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [14:58:19]Write i2c OK [14:58:19]MH_I2C_Read... [14:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:19]Read from MH i2c: E2 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 17 00 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C6 [14:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:58:19]wFMCommunicate OK [14:58:19]requested_item fd.num is exist - process it [14:58:19]SAM_PROTO_GetFieldsCounters [14:58:19]wFMCommunicate request_size=4 [14:58:19]MH_SAM_APDU [14:58:19]CAPDU: 80 13 00 00 [14:58:19]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [14:58:19]Write i2c OK [14:58:19]MH_I2C_Read... [14:58:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:19]Read from MH i2c: E2 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 62 00 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1D 1E 00 00 0E 04 04 00 46 00 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 58 [14:58:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1D 1E 00 00 0E 04 04 00 46 00 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 [14:58:20]wFMCommunicate OK [14:58:20]SAM_PROTO_GetFieldsCounters done [14:58:20]requested_item shift.num is exist - process it [14:58:20]requested_item shift.opened is exist - process it [14:58:20]req_shift_opened [14:58:20]FM_GetShiftState [14:58:20]SAM_PROTO_GetShiftState [14:58:20]wFMCommunicate request_size=4 [14:58:20]MH_SAM_APDU [14:58:20]CAPDU: 80 13 01 00 [14:58:20]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [14:58:20]Write i2c OK [14:58:20]MH_I2C_Read... [14:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:20]Read from MH i2c: E2 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: E2 0E 00 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3D [14:58:20]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:58:20]wFMCommunicate OK [14:58:20]SAM_PROTO_GetShiftState done [14:58:20]FM_GetShiftState done [14:58:20]req_shift_opened done [14:58:20]requested_item shift.open_date is exist - process it [14:58:20]req_shift_open_date [14:58:20]req_shift_open_date done [14:58:20]produce_requested_data done [14:58:20]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7709,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:58:20]process_action_free close_receipt [14:58:20]json_value_free [14:58:20]json_value_free done [14:58:20]process_json_proto returns [14:58:20]Send response to host [14:58:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7709,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:58:20]free response buf [14:58:20]execute_script done [14:58:20]execute_script returns [14:58:20]free content buf [14:58:20]Sock 8.Close socket [14:58:20]Sock 8.Thread stoped [14:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 AA AF 47 00 DA 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 32 30 39 34 32 35 38 10 04 04 00 1D 1E 00 00 F4 03 04 00 48 DB EF 66 B6 04 01 00 00 F0 8F AA D8 D5 FA 9B BB [14:58:20]CommunicateWithHost err = 0 [14:58:20]CheckOFDResponse [14:58:20]1017 (14) - 77093643461234 [14:58:20]1041 (16) - 0000000002094258 [14:58:20]1040 (4) - 7709 [14:58:20]1012 (4) - 22.09.2024 08:54 [14:58:20]1206 (1) - 0 [14:58:20]OFD Sender: Remove packet 7709 [14:58:20]ProducePacketName [14:58:20]name=ofd_packets/00007709 [14:58:20]NVStorageDeleteData [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:37]accept exits with 10 [14:58:37]New connection [14:58:37]New thread 3066535268 created [14:58:37]Thread 3066678628 joined [14:58:37]Waiting for new connection... [14:58:37] Sock 10.Parse request [14:58:37]Sock 10.Check first char [14:58:37]Sock 10.First char is OK [14:58:37]request: POST /json_proto HTTP/1.0 [14:58:37]Method: POST [14:58:37]URL: /json_proto [14:58:37]Method is POST - this is cgi request [14:58:37]url: /json_proto [14:58:37]query_string will be loaded in cgi processing [14:58:37]execute_cgi json_proto POST (null) [14:58:37]execute_cgi path=json_proto method=POST [14:58:37]POST find Content-Length [14:58:37]Host: 172.17.47.195:8080 [14:58:37]Content-Length: 687 [14:58:37]Content-Type: application/json [14:58:37] [14:58:37]POST finish read [14:58:37]Found Content-Length = 687 [14:58:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:37]execute_script... [14:58:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:37]POST & json_proto [14:58:37]process_json_proto [14:58:37]json parsed OK: [14:58:37]protocol is kg_v1.0 [14:58:37]action value=close_receipt [14:58:37]process_action close_receipt [14:58:37]cmd_close_receipt [14:58:37]MH_GetDate [14:58:37]Write to MH i2c: F0 00 00 FE 00 ED [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: F0 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: F0 09 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: F0 09 00 FE 00 00 9D 30 F0 66 96 2E 95 66 D8 [14:58:37]GetLastDocTimeStamp 1727017097 [14:58:37]current date 1727017117 [14:58:37]FM_GetShiftState [14:58:37]SAM_PROTO_GetShiftState [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 13 01 00 [14:58:37]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 0E 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3F [14:58:37]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:58:37]wFMCommunicate OK [14:58:37]SAM_PROTO_GetShiftState done [14:58:37]FM_GetShiftState done [14:58:37]opened in 1726964224 [14:58:37]opened+sec_in_day 1727050624 [14:58:37]quantity*price = 160020 [14:58:37]sum+1 = 160021 [14:58:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 108 22.09.2024 14:58 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7710 ФПД: 175014386394975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145837&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7710&fm=175014386394975&tin=02508201610067®Number=0000000000190446&sum=160000 [14:58:38]StoreToDocumentArchive [14:58:38]shift 70 fd 7710 [14:58:38]save to /storage/0070/doc_00007710 [14:58:38]save last doc name /storage/0070/doc_00007710 to /storage/kkm_last_doc_name [14:58:38]save OK [14:58:38]Clear old archive folders... [14:58:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:58:38]tlvbuf is 01DF76B0 [14:58:38]SAM_PROTO_ClearQueue [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 09 00 00 [14:58:38]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:58:38]RAPDU: 90 00 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_ClearQueue done [14:58:38]KKMCreateOFDPacket [14:58:38]OFDProtocolAddRootSTLVToBuf [14:58:38]FM_MakeSignedData [14:58:38]FM_MakeSignedData [14:58:38]SAM_PROTO_SignData [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 0D 01 02 [14:58:38]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [14:58:38]RAPDU: 90 00 [14:58:38]wFMCommunicate OK [14:58:38]wFMCommunicate request_size=255 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9D 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1E 1E 00 00 35 04 06 00 [14:58:38]Write to MH i2c: E2 02 01 0E 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 34 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9D 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1E 1E 00 00 35 04 06 00 00 00 B1 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [14:58:38]RAPDU: 90 00 [14:58:38]wFMCommunicate OK [14:58:38]wFMCommunicate request_size=11 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 0D 02 02 06 9F 2C B6 54 E7 5F [14:58:38]Write to MH i2c: E2 0E 00 0F 01 80 0D 02 02 06 00 9F 2C B6 54 E7 5F 00 00 B1 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [14:58:38]RAPDU: 90 00 [14:58:38]wFMCommunicate OK [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 0D 03 02 [14:58:38]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0B 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0B 00 10 01 00 DD F9 96 47 A0 03 F0 76 90 00 49 [14:58:38]RAPDU: DD F9 96 47 A0 03 F0 76 90 00 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_SignData done [14:58:38]FM_MakeSignedData done [14:58:38]CreateOFDProtocolMessage [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 11 00 00 [14:58:38]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 17 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DD [14:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:58:39]wFMCommunicate OK [14:58:39]CreateOFDProtocolMessage done [14:58:39]OFDSenderStorePacket 7710 [14:58:39]StoreOFDPacket docnum=7710 [14:58:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 3E 0F 08 01 0D 13 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9D 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1E 1E 00 00 35 04 06 00 9F 2C B6 54 E7 5F DD F9 96 47 A0 03 F0 76 [14:58:39]CheckFolder [14:58:39]dirname=/storage/ofd_packets [14:58:39]CheckFolder done [14:58:39]ProducePacketName [14:58:39]name=ofd_packets/00007710 [14:58:39]NVStorageSaveData ofd_packets/00007710 [14:58:39]File name is /storage/ofd_packets/00007710 [14:58:39]Write 302 bytes [14:58:39]NVStorageSaveData done [14:58:39]OFDSenderStorePacket done [14:58:39]KKMCreateOFDPacket done [14:58:39]NVStorageSaveData kkm_last_timestamp [14:58:39]File name is /storage/kkm_last_timestamp [14:58:39]Write 4 bytes [14:58:39]NVStorageSaveData done [14:58:39]ExternCall_PrintAddStr [14:58:39]wPrintStart [14:58:39]Write to MH i2c: 01 00 00 12 01 13 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 07 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [14:58:39]RasterBufferAndPrint [14:58:39]line Счет N : (1)871815 [14:58:39]line ИНН: 02508201610067 [14:58:39]line Контрольно-Кассовый Чек [14:58:39]line ПРОДАЖА [14:58:39]line ТРК (МРК, ГНК) : 11 [14:58:39]line Товар: 2710194210 [14:58:39]line ДТ(л)-К-4 [14:58:39]line 21.000 * 76.20 [14:58:39]line = 1600.20 [14:58:39]line НДС 12% НСП 1% [14:58:39]line > о реализуемом товаре [14:58:39]line ОКРУГЛЕНИЕ: -0.20 [14:58:39]line ИТОГО: 1600.00 [14:58:39]line Внесено: 1600.00 [14:58:39]line СДАЧА: 0.00 [14:58:39]line НСП 1% : 14.16 [14:58:39]line НДС 12% : 169.93 [14:58:39]line Наличными: 1600.00 [14:58:39]line Безнал.: 0.00 [14:58:39]line Место: АЗС № 137 "Партнер Нефть" [14:58:39]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:58:39]line СНО: Общий режим [14:58:39]line Чек 108 22.09.2024 14:58 [14:58:39]line Смена: 70 ФФД: 1.0 [14:58:39]line ЗНМ: 0300000041 [14:58:39]line РНМ: 0000000000190446 [14:58:39]line Версия ККМ: v1.0 [14:58:39]line ФМ: 0000000002094258 [14:58:39]line ФД: 7710 [14:58:39]line ФПД: 175014386394975 [14:58:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145837&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7710&fm=175014386394975&tin=02508201610067®Number=0000000000190446&sum=160000 [14:58:39]written 0, free lines is 4095 [14:58:39]OFD Sender: Processing packet 7710 [packets to send 51, broken 50] [14:58:39]ProducePacketName [14:58:39]name=ofd_packets/00007710 [14:58:39]OFD Sender: To server: pG, [14:58:39]CommunicateWithHost lk.salyk.kg:30040 [14:58:39]ConnectInit lk.salyk.kg [14:58:39]Write to MH i2c: 01 00 00 3D 01 3E [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 07 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 ED 0C 3E [14:58:39]RasterBufferAndPrint [14:58:39]line [14:58:39]line [14:58:39]line [14:58:39]line [14:58:39]line [14:58:39]written 0, free lines is 3330 [14:58:39]MH_Cut [14:58:39]Write to MH i2c: D1 01 00 44 01 01 17 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: D1 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: D1 01 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: D1 01 00 44 01 00 16 [14:58:39]Write to MH i2c: 01 00 00 45 01 46 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:40]*** Cut start [14:58:40]*** Purtial cut [14:58:40]*** Stage 1: CUTSNS_PIN = 1 [14:58:40]Read from MH i2c: 01 [14:58:40]MH_I2C_Read... [14:58:40]*** Stop cut motor [14:58:40]*** Cut end [14:58:40]Read from MH i2c: 01 07 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [14:58:40]process_action close_receipt done [14:58:40]requested_data is exist [14:58:40]produce_requested_data [14:58:40]requested_item fm.sn is exist - process it [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 11 00 00 [14:58:40]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 17 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 12 [14:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:58:40]wFMCommunicate OK [14:58:40]requested_item fd.num is exist - process it [14:58:40]SAM_PROTO_GetFieldsCounters [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 13 00 00 [14:58:40]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 62 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1E 1E 00 00 0E 04 04 00 46 00 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 A8 [14:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1E 1E 00 00 0E 04 04 00 46 00 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 [14:58:40]wFMCommunicate OK [14:58:40]SAM_PROTO_GetFieldsCounters done [14:58:40]requested_item shift.num is exist - process it [14:58:40]requested_item shift.opened is exist - process it [14:58:40]req_shift_opened [14:58:40]FM_GetShiftState [14:58:40]SAM_PROTO_GetShiftState [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 13 01 00 [14:58:40]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 0E 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 89 [14:58:40]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:58:40]wFMCommunicate OK [14:58:40]SAM_PROTO_GetShiftState done [14:58:40]FM_GetShiftState done [14:58:40]req_shift_opened done [14:58:40]requested_item shift.open_date is exist - process it [14:58:40]req_shift_open_date [14:58:40]req_shift_open_date done [14:58:40]produce_requested_data done [14:58:40]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7710,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:58:40]process_action_free close_receipt [14:58:40]json_value_free [14:58:40]json_value_free done [14:58:40]process_json_proto returns [14:58:40]Send response to host [14:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7710,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:58:40]free response buf [14:58:40]execute_script done [14:58:40]execute_script returns [14:58:40]free content buf [14:58:40]Sock 10.Close socket [14:58:40]Sock 10.Thread stoped [14:58:41]recv_with_timeout no data received [14:58:45]Connected sock=11 [14:58:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 3E 0F 08 01 0D 13 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9D 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1E 1E 00 00 35 04 06 00 9F 2C B6 54 E7 5F DD F9 96 47 A0 03 F0 76 [14:58:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 76 8F 47 00 C9 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 32 30 39 34 32 35 38 10 04 04 00 1E 1E 00 00 F4 03 04 00 62 DB EF 66 B6 04 01 00 00 FA 88 0B 9A 9B 53 8F 4A [14:58:47]CommunicateWithHost err = 0 [14:58:47]CheckOFDResponse [14:58:47]1017 (14) - 77093643461234 [14:58:47]1041 (16) - 0000000002094258 [14:58:47]1040 (4) - 7710 [14:58:47]1012 (4) - 22.09.2024 08:54 [14:58:47]1206 (1) - 0 [14:58:47]OFD Sender: Remove packet 7710 [14:58:47]ProducePacketName [14:58:47]name=ofd_packets/00007710 [14:58:47]NVStorageDeleteData [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:05]recv_with_timeout no data received [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:31]accept exits with 9 [14:59:31]New connection [14:59:31]New thread 3066678628 created [14:59:31]Thread 3066535268 joined [14:59:31]Waiting for new connection... [14:59:31] Sock 9.Parse request [14:59:31]Sock 9.Check first char [14:59:31]Sock 9.First char is OK [14:59:31]request: POST /json_proto HTTP/1.0 [14:59:31]Method: POST [14:59:31]URL: /json_proto [14:59:31]Method is POST - this is cgi request [14:59:31]url: /json_proto [14:59:31]query_string will be loaded in cgi processing [14:59:31]execute_cgi json_proto POST (null) [14:59:31]execute_cgi path=json_proto method=POST [14:59:31]POST find Content-Length [14:59:31]Host: 172.17.47.195:8080 [14:59:31]Content-Length: 800 [14:59:31]Content-Type: application/json [14:59:31] [14:59:31]POST finish read [14:59:31]Found Content-Length = 800 [14:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:31]execute_script... [14:59:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:31]POST & json_proto [14:59:31]process_json_proto [14:59:31]json parsed OK: [14:59:31]protocol is kg_v1.0 [14:59:31]action value=close_receipt [14:59:31]process_action close_receipt [14:59:31]cmd_close_receipt [14:59:31]MH_GetDate [14:59:31]Write to MH i2c: F0 00 00 49 01 39 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 09 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 09 00 49 01 00 D3 30 F0 66 96 2E 95 66 5A [14:59:31]GetLastDocTimeStamp 1727017117 [14:59:31]current date 1727017171 [14:59:31]FM_GetShiftState [14:59:31]SAM_PROTO_GetShiftState [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 13 01 00 [14:59:31]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0E 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8B [14:59:31]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:59:31]wFMCommunicate OK [14:59:31]SAM_PROTO_GetShiftState done [14:59:31]FM_GetShiftState done [14:59:31]opened in 1726964224 [14:59:31]opened+sec_in_day 1727050624 [14:59:31]quantity*price = 50036 [14:59:31]sum+1 = 50037 [14:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 109 22.09.2024 14:59 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7711 ФПД: 48090156780338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145931&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7711&fm=48090156780338&tin=02508201610067®Number=0000000000190446&sum=50036 [14:59:32]StoreToDocumentArchive [14:59:32]shift 70 fd 7711 [14:59:32]save to /storage/0070/doc_00007711 [14:59:32]save last doc name /storage/0070/doc_00007711 to /storage/kkm_last_doc_name [14:59:32]save OK [14:59:32]Clear old archive folders... [14:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:32]tlvbuf is 01D35D00 [14:59:32]SAM_PROTO_ClearQueue [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 09 00 00 [14:59:32]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]SAM_PROTO_ClearQueue done [14:59:32]KKMCreateOFDPacket [14:59:32]OFDProtocolAddRootSTLVToBuf [14:59:32]FM_MakeSignedData [14:59:32]FM_MakeSignedData [14:59:32]SAM_PROTO_SignData [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 01 02 [14:59:32]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]wFMCommunicate request_size=255 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D3 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1F 1E 00 00 35 04 06 00 2B [14:59:32]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D3 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1F 1E 00 00 35 04 06 00 2B 00 00 0A [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]OFD Sender: No OFD packet to send [14:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]wFMCommunicate request_size=10 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 02 02 05 BC DC B6 4B 32 [14:59:32]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 BC DC B6 4B 32 00 00 AA [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 03 02 [14:59:32]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 0B 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 0B 00 5B 01 00 1C 96 8B 2A EA 9F 55 39 90 00 56 [14:59:32]RAPDU: 1C 96 8B 2A EA 9F 55 39 90 00 [14:59:32]wFMCommunicate OK [14:59:32]SAM_PROTO_SignData done [14:59:32]FM_MakeSignedData done [14:59:32]CreateOFDProtocolMessage [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 11 00 00 [14:59:32]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 17 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 28 [14:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:59:33]wFMCommunicate OK [14:59:33]CreateOFDProtocolMessage done [14:59:33]OFDSenderStorePacket 7711 [14:59:33]StoreOFDPacket docnum=7711 [14:59:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 88 14 07 01 77 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D3 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1F 1E 00 00 35 04 06 00 2B BC DC B6 4B 32 1C 96 8B 2A EA 9F 55 39 [14:59:33]CheckFolder [14:59:33]dirname=/storage/ofd_packets [14:59:33]CheckFolder done [14:59:33]ProducePacketName [14:59:33]name=ofd_packets/00007711 [14:59:33]NVStorageSaveData ofd_packets/00007711 [14:59:33]File name is /storage/ofd_packets/00007711 [14:59:33]Write 301 bytes [14:59:33]NVStorageSaveData done [14:59:33]OFDSenderStorePacket done [14:59:33]KKMCreateOFDPacket done [14:59:33]NVStorageSaveData kkm_last_timestamp [14:59:33]File name is /storage/kkm_last_timestamp [14:59:33]Write 4 bytes [14:59:33]NVStorageSaveData done [14:59:33]ExternCall_PrintAddStr [14:59:33]wPrintStart [14:59:33]Write to MH i2c: 01 00 00 5D 01 5E [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [14:59:33]RasterBufferAndPrint [14:59:33]line Счет N : (1)871817 [14:59:33]line ИНН: 02508201610067 [14:59:33]line Контрольно-Кассовый Чек [14:59:33]line ПРОДАЖА [14:59:33]line ТРК (МРК, ГНК) : 33 [14:59:33]line Товар: 2710124130 [14:59:33]line Аи-92-К-5 [14:59:33]line 7.380 * 67.80 [14:59:33]line = 500.36 [14:59:33]line НДС 12% НСП 1% [14:59:33]line > о реализуемом товаре [14:59:33]line ИТОГО: 500.36 [14:59:33]line НСП 1% : 4.43 [14:59:33]line НДС 12% : 53.14 [14:59:33]line Наличными: 0.00 [14:59:33]line Безнал.: 500.36 [14:59:33]line Место: АЗС № 137 "Партнер Нефть" [14:59:33]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [14:59:33]line СНО: Общий режим [14:59:33]line Чек 109 22.09.2024 14:59 [14:59:33]line Смена: 70 ФФД: 1.0 [14:59:33]line ЗНМ: 0300000041 [14:59:33]line РНМ: 0000000000190446 [14:59:33]line Версия ККМ: v1.0 [14:59:33]line Платежная система: O! деньги [14:59:33]line ФМ: 0000000002094258 [14:59:33]line ФД: 7711 [14:59:33]line ФПД: 48090156780338 [14:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145931&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7711&fm=48090156780338&tin=02508201610067®Number=0000000000190446&sum=50036 [14:59:33]written 0, free lines is 4095 [14:59:33]OFD Sender: Processing packet 7711 [packets to send 51, broken 50] [14:59:33]ProducePacketName [14:59:33]name=ofd_packets/00007711 [14:59:33]OFD Sender: To server: pG, [14:59:33]CommunicateWithHost lk.salyk.kg:30040 [14:59:33]ConnectInit lk.salyk.kg [14:59:33]Write to MH i2c: 01 00 00 87 01 88 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 F7 0C 92 [14:59:33]RasterBufferAndPrint [14:59:33]line [14:59:33]line [14:59:33]line [14:59:33]line [14:59:33]line [14:59:33]written 0, free lines is 3328 [14:59:33]MH_Cut [14:59:33]Write to MH i2c: D1 01 00 8E 01 01 61 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: D1 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: D1 01 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: D1 01 00 8E 01 00 60 [14:59:33]Write to MH i2c: 01 00 00 8F 01 90 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:34]*** Cut start [14:59:34]*** Purtial cut [14:59:34]*** Stage 1: CUTSNS_PIN = 1 [14:59:34]Read from MH i2c: 01 [14:59:34]MH_I2C_Read... [14:59:34]*** Stop cut motor [14:59:34]*** Cut end [14:59:34]Read from MH i2c: 01 07 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [14:59:34]process_action close_receipt done [14:59:34]requested_data is exist [14:59:34]produce_requested_data [14:59:34]requested_item fm.sn is exist - process it [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 11 00 00 [14:59:34]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 17 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5C [14:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [14:59:34]wFMCommunicate OK [14:59:34]requested_item fd.num is exist - process it [14:59:34]SAM_PROTO_GetFieldsCounters [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 13 00 00 [14:59:34]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 62 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1F 1E 00 00 0E 04 04 00 46 00 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 F6 [14:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 1F 1E 00 00 0E 04 04 00 46 00 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 [14:59:34]wFMCommunicate OK [14:59:34]SAM_PROTO_GetFieldsCounters done [14:59:34]requested_item shift.num is exist - process it [14:59:34]requested_item shift.opened is exist - process it [14:59:34]req_shift_opened [14:59:34]FM_GetShiftState [14:59:34]SAM_PROTO_GetShiftState [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 13 01 00 [14:59:34]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D3 [14:59:34]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [14:59:34]wFMCommunicate OK [14:59:34]SAM_PROTO_GetShiftState done [14:59:34]FM_GetShiftState done [14:59:34]req_shift_opened done [14:59:34]requested_item shift.open_date is exist - process it [14:59:34]req_shift_open_date [14:59:34]req_shift_open_date done [14:59:34]produce_requested_data done [14:59:34]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7711,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [14:59:34]process_action_free close_receipt [14:59:34]json_value_free [14:59:34]json_value_free done [14:59:34]process_json_proto returns [14:59:34]Send response to host [14:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7711,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [14:59:34]free response buf [14:59:34]execute_script done [14:59:34]execute_script returns [14:59:34]free content buf [14:59:34]Sock 9.Close socket [14:59:34]Sock 9.Thread stoped [14:59:38]ConnectInit Can't take IP for lk.salyk.kg [14:59:38]CommunicateWithHost connect error [14:59:38]CommunicateWithHost err = -1 [14:59:38]OFD Sender: Server communicate error [14:59:43]OFD Sender: Processing packet 7711 [packets to send 51, broken 50] [14:59:43]ProducePacketName [14:59:43]name=ofd_packets/00007711 [14:59:43]OFD Sender: To server: pG, [14:59:43]CommunicateWithHost lk.salyk.kg:30040 [14:59:43]ConnectInit lk.salyk.kg [14:59:48]Connected sock=8 [14:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 88 14 07 01 77 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D3 30 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1F 1E 00 00 35 04 06 00 2B BC DC B6 4B 32 1C 96 8B 2A EA 9F 55 39 [14:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 7E A6 47 00 98 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 1F 1E 00 00 F4 03 04 00 A1 DB EF 66 B6 04 01 00 00 74 DA 05 3F 75 E4 17 A2 [14:59:49]CommunicateWithHost err = 0 [14:59:49]CheckOFDResponse [14:59:49]1017 (14) - 77093643461234 [14:59:49]1041 (16) - 0000000002094258 [14:59:49]1040 (4) - 7711 [14:59:49]1012 (4) - 22.09.2024 08:56 [14:59:49]1206 (1) - 0 [14:59:49]OFD Sender: Remove packet 7711 [14:59:49]ProducePacketName [14:59:49]name=ofd_packets/00007711 [14:59:49]NVStorageDeleteData [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [14:59:58]recv_with_timeout no data received [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:15]recv_with_timeout no data received [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:32]recv_with_timeout no data received [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:05]accept exits with 10 [15:01:05]New connection [15:01:05]New thread 3066535268 created [15:01:05]Thread 3066678628 joined [15:01:05]Waiting for new connection... [15:01:05] Sock 10.Parse request [15:01:05]Sock 10.Check first char [15:01:05]Sock 10.First char is OK [15:01:05]request: POST /json_proto HTTP/1.0 [15:01:05]Method: POST [15:01:05]URL: /json_proto [15:01:05]Method is POST - this is cgi request [15:01:05]url: /json_proto [15:01:05]query_string will be loaded in cgi processing [15:01:05]execute_cgi json_proto POST (null) [15:01:05]execute_cgi path=json_proto method=POST [15:01:05]POST find Content-Length [15:01:05]Host: 172.17.47.195:8080 [15:01:05]Content-Length: 682 [15:01:05]Content-Type: application/json [15:01:05] [15:01:05]POST finish read [15:01:05]Found Content-Length = 682 [15:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:05]execute_script... [15:01:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:05]POST & json_proto [15:01:05]process_json_proto [15:01:05]json parsed OK: [15:01:05]protocol is kg_v1.0 [15:01:05]action value=close_receipt [15:01:05]process_action close_receipt [15:01:05]cmd_close_receipt [15:01:05]MH_GetDate [15:01:05]Write to MH i2c: F0 00 00 93 01 83 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: F0 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: F0 09 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: F0 09 00 93 01 00 31 31 F0 66 96 2E 95 66 03 [15:01:05]GetLastDocTimeStamp 1727017171 [15:01:05]current date 1727017265 [15:01:05]FM_GetShiftState [15:01:05]SAM_PROTO_GetShiftState [15:01:05]wFMCommunicate request_size=4 [15:01:05]MH_SAM_APDU [15:01:05]CAPDU: 80 13 01 00 [15:01:05]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:05]Read from MH i2c: E2 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 0E 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D5 [15:01:05]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:01:05]wFMCommunicate OK [15:01:05]SAM_PROTO_GetShiftState done [15:01:05]FM_GetShiftState done [15:01:05]opened in 1726964224 [15:01:05]opened+sec_in_day 1727050624 [15:01:05]quantity*price = 60045 [15:01:05]sum+1 = 60047 [15:01:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 110 22.09.2024 15:01 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7712 ФПД: 66882179026817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150105&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7712&fm=66882179026817&tin=02508201610067®Number=0000000000190446&sum=60000 [15:01:06]StoreToDocumentArchive [15:01:06]shift 70 fd 7712 [15:01:06]save to /storage/0070/doc_00007712 [15:01:06]save last doc name /storage/0070/doc_00007712 to /storage/kkm_last_doc_name [15:01:06]save OK [15:01:06]Clear old archive folders... [15:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:01:06]tlvbuf is 01D56C50 [15:01:06]SAM_PROTO_ClearQueue [15:01:06]wFMCommunicate request_size=4 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 09 00 00 [15:01:06]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [15:01:06]RAPDU: 90 00 [15:01:06]wFMCommunicate OK [15:01:06]SAM_PROTO_ClearQueue done [15:01:06]KKMCreateOFDPacket [15:01:06]OFDProtocolAddRootSTLVToBuf [15:01:06]FM_MakeSignedData [15:01:06]FM_MakeSignedData [15:01:06]SAM_PROTO_SignData [15:01:06]wFMCommunicate request_size=4 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 0D 01 02 [15:01:06]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [15:01:06]RAPDU: 90 00 [15:01:06]wFMCommunicate OK [15:01:06]wFMCommunicate request_size=255 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 31 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 20 1E 00 00 35 04 06 00 [15:01:06]Write to MH i2c: E2 02 01 A3 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 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 31 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 20 1E 00 00 35 04 06 00 00 00 F0 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [15:01:06]RAPDU: 90 00 [15:01:06]wFMCommunicate OK [15:01:06]wFMCommunicate request_size=11 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 0D 02 02 06 3C D4 38 85 CF 81 [15:01:06]Write to MH i2c: E2 0E 00 A4 01 80 0D 02 02 06 00 3C D4 38 85 CF 81 00 00 48 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [15:01:06]RAPDU: 90 00 [15:01:06]wFMCommunicate OK [15:01:06]wFMCommunicate request_size=4 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 0D 03 02 [15:01:06]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:07]Read from MH i2c: E2 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: E2 0B 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: E2 0B 00 A5 01 00 70 B5 4D 24 CA 54 08 A0 90 00 7E [15:01:07]RAPDU: 70 B5 4D 24 CA 54 08 A0 90 00 [15:01:07]wFMCommunicate OK [15:01:07]SAM_PROTO_SignData done [15:01:07]FM_MakeSignedData done [15:01:07]CreateOFDProtocolMessage [15:01:07]wFMCommunicate request_size=4 [15:01:07]MH_SAM_APDU [15:01:07]CAPDU: 80 11 00 00 [15:01:07]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:07]Read from MH i2c: E2 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: E2 17 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 72 [15:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:01:07]wFMCommunicate OK [15:01:07]CreateOFDProtocolMessage done [15:01:07]OFDSenderStorePacket 7712 [15:01:07]StoreOFDPacket docnum=7712 [15:01:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D4 F1 08 01 F3 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 31 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 20 1E 00 00 35 04 06 00 3C D4 38 85 CF 81 70 B5 4D 24 CA 54 08 A0 [15:01:07]CheckFolder [15:01:07]dirname=/storage/ofd_packets [15:01:07]CheckFolder done [15:01:07]ProducePacketName [15:01:07]name=ofd_packets/00007712 [15:01:07]NVStorageSaveData ofd_packets/00007712 [15:01:07]File name is /storage/ofd_packets/00007712 [15:01:07]Write 302 bytes [15:01:07]NVStorageSaveData done [15:01:07]OFDSenderStorePacket done [15:01:07]KKMCreateOFDPacket done [15:01:07]NVStorageSaveData kkm_last_timestamp [15:01:07]File name is /storage/kkm_last_timestamp [15:01:07]Write 4 bytes [15:01:07]NVStorageSaveData done [15:01:07]OFD Sender: Processing packet 7712 [packets to send 51, broken 50] [15:01:07]ProducePacketName [15:01:07]name=ofd_packets/00007712 [15:01:07]OFD Sender: To server: pG, [15:01:07]CommunicateWithHost lk.salyk.kg:30040 [15:01:07]ConnectInit lk.salyk.kg [15:01:07]ExternCall_PrintAddStr [15:01:07]wPrintStart [15:01:07]Write to MH i2c: 01 00 00 A7 01 A8 [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 07 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [15:01:07]RasterBufferAndPrint [15:01:07]line Счет N : (1)871818 [15:01:07]line ИНН: 02508201610067 [15:01:07]line Контрольно-Кассовый Чек [15:01:07]line ПРОДАЖА [15:01:07]line ТРК (МРК, ГНК) : 54 [15:01:07]line Товар: 2710194210 [15:01:07]line ДТ(л)-К-4 [15:01:07]line 7.880 * 76.20 [15:01:07]line = 600.46 [15:01:07]line НДС 12% НСП 1% [15:01:07]line > о реализуемом товаре [15:01:07]line ОКРУГЛЕНИЕ: -0.46 [15:01:07]line ИТОГО: 600.00 [15:01:07]line Внесено: 600.00 [15:01:07]line СДАЧА: 0.00 [15:01:07]line НСП 1% : 5.31 [15:01:07]line НДС 12% : 63.77 [15:01:07]line Наличными: 600.00 [15:01:07]line Безнал.: 0.00 [15:01:07]line Место: АЗС № 137 "Партнер Нефть" [15:01:07]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:01:07]line СНО: Общий режим [15:01:07]line Чек 110 22.09.2024 15:01 [15:01:07]line Смена: 70 ФФД: 1.0 [15:01:07]line ЗНМ: 0300000041 [15:01:07]line РНМ: 0000000000190446 [15:01:07]line Версия ККМ: v1.0 [15:01:07]line ФМ: 0000000002094258 [15:01:07]line ФД: 7712 [15:01:07]line ФПД: 66882179026817 [15:01:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150105&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7712&fm=66882179026817&tin=02508201610067®Number=0000000000190446&sum=60000 [15:01:07]written 0, free lines is 4095 [15:01:07]Connected sock=11 [15:01:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D4 F1 08 01 F3 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 31 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 20 1E 00 00 35 04 06 00 3C D4 38 85 CF 81 70 B5 4D 24 CA 54 08 A0 [15:01:07]Write to MH i2c: 01 00 00 D2 01 D3 [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 07 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 F2 0C D8 [15:01:07]RasterBufferAndPrint [15:01:07]line [15:01:07]line [15:01:07]line [15:01:07]line [15:01:07]line [15:01:07]written 0, free lines is 3320 [15:01:07]MH_Cut [15:01:07]Write to MH i2c: D1 01 00 D9 01 01 AC [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: D1 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: D1 01 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: D1 01 00 D9 01 00 AB [15:01:07]Write to MH i2c: 01 00 00 DA 01 DB [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:08]*** Cut start [15:01:08]*** Purtial cut [15:01:08]*** Stage 1: CUTSNS_PIN = 1 [15:01:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 21 6A 47 00 C6 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 20 1E 00 00 F4 03 04 00 F0 DB EF 66 B6 04 01 00 00 4A D8 AC 84 CE 60 18 7A [15:01:08]CommunicateWithHost err = 0 [15:01:08]CheckOFDResponse [15:01:08]1017 (14) - 77093643461234 [15:01:08]1041 (16) - 0000000002094258 [15:01:08]1040 (4) - 7712 [15:01:08]1012 (4) - 22.09.2024 08:57 [15:01:08]1206 (1) - 0 [15:01:08]OFD Sender: Remove packet 7712 [15:01:08]ProducePacketName [15:01:08]name=ofd_packets/00007712 [15:01:08]NVStorageDeleteData [15:01:08]Read from MH i2c: 01 [15:01:08]MH_I2C_Read... [15:01:08]*** Stop cut motor [15:01:08]*** Cut end [15:01:08]Read from MH i2c: 01 07 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [15:01:08]process_action close_receipt done [15:01:08]requested_data is exist [15:01:08]produce_requested_data [15:01:08]requested_item fm.sn is exist - process it [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 11 00 00 [15:01:08]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:08]Read from MH i2c: E2 17 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A7 [15:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:01:08]wFMCommunicate OK [15:01:08]requested_item fd.num is exist - process it [15:01:08]SAM_PROTO_GetFieldsCounters [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 13 00 00 [15:01:08]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:09]Read from MH i2c: E2 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 62 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 20 1E 00 00 0E 04 04 00 46 00 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 45 [15:01:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 20 1E 00 00 0E 04 04 00 46 00 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:01:09]wFMCommunicate OK [15:01:09]SAM_PROTO_GetFieldsCounters done [15:01:09]requested_item shift.num is exist - process it [15:01:09]requested_item shift.opened is exist - process it [15:01:09]req_shift_opened [15:01:09]FM_GetShiftState [15:01:09]SAM_PROTO_GetShiftState [15:01:09]wFMCommunicate request_size=4 [15:01:09]MH_SAM_APDU [15:01:09]CAPDU: 80 13 01 00 [15:01:09]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:09]Read from MH i2c: E2 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 0E 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 1E [15:01:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:01:09]wFMCommunicate OK [15:01:09]SAM_PROTO_GetShiftState done [15:01:09]FM_GetShiftState done [15:01:09]req_shift_opened done [15:01:09]requested_item shift.open_date is exist - process it [15:01:09]req_shift_open_date [15:01:09]req_shift_open_date done [15:01:09]produce_requested_data done [15:01:09]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7712,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:01:09]process_action_free close_receipt [15:01:09]json_value_free [15:01:09]json_value_free done [15:01:09]process_json_proto returns [15:01:09]Send response to host [15:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7712,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:01:09]free response buf [15:01:09]execute_script done [15:01:09]execute_script returns [15:01:09]free content buf [15:01:09]Sock 10.Close socket [15:01:09]Sock 10.Thread stoped [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:45]accept exits with 8 [15:01:45]New connection [15:01:45]New thread 3066678628 created [15:01:45]Thread 3066535268 joined [15:01:45]Waiting for new connection... [15:01:45] Sock 8.Parse request [15:01:45]Sock 8.Check first char [15:01:45]Sock 8.First char is OK [15:01:45]request: POST /json_proto HTTP/1.0 [15:01:45]Method: POST [15:01:45]URL: /json_proto [15:01:45]Method is POST - this is cgi request [15:01:45]url: /json_proto [15:01:45]query_string will be loaded in cgi processing [15:01:45]execute_cgi json_proto POST (null) [15:01:45]execute_cgi path=json_proto method=POST [15:01:45]POST find Content-Length [15:01:45]Host: 172.17.47.195:8080 [15:01:45]Content-Length: 687 [15:01:45]Content-Type: application/json [15:01:45] [15:01:45]POST finish read [15:01:45]Found Content-Length = 687 [15:01:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:45]execute_script... [15:01:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:45]POST & json_proto [15:01:45]process_json_proto [15:01:45]json parsed OK: [15:01:45]protocol is kg_v1.0 [15:01:45]action value=close_receipt [15:01:45]process_action close_receipt [15:01:45]cmd_close_receipt [15:01:45]MH_GetDate [15:01:45]Write to MH i2c: F0 00 00 DE 01 CE [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: F0 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: F0 09 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: F0 09 00 DE 01 00 59 31 F0 66 96 2E 95 66 76 [15:01:45]GetLastDocTimeStamp 1727017265 [15:01:45]current date 1727017305 [15:01:45]FM_GetShiftState [15:01:45]SAM_PROTO_GetShiftState [15:01:45]wFMCommunicate request_size=4 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 13 01 00 [15:01:45]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 0E 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 20 [15:01:45]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:01:45]wFMCommunicate OK [15:01:45]SAM_PROTO_GetShiftState done [15:01:45]FM_GetShiftState done [15:01:45]opened in 1726964224 [15:01:45]opened+sec_in_day 1727050624 [15:01:45]quantity*price = 200025 [15:01:45]sum+1 = 200026 [15:01:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 111 22.09.2024 15:01 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7713 ФПД: 21514855401635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150145&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7713&fm=21514855401635&tin=02508201610067®Number=0000000000190446&sum=200000 [15:01:46]StoreToDocumentArchive [15:01:46]shift 70 fd 7713 [15:01:46]save to /storage/0070/doc_00007713 [15:01:46]save last doc name /storage/0070/doc_00007713 to /storage/kkm_last_doc_name [15:01:46]save OK [15:01:46]Clear old archive folders... [15:01:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:01:46]tlvbuf is 01D51B10 [15:01:46]SAM_PROTO_ClearQueue [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 09 00 00 [15:01:46]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 03 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [15:01:46]RAPDU: 90 00 [15:01:46]wFMCommunicate OK [15:01:46]SAM_PROTO_ClearQueue done [15:01:46]KKMCreateOFDPacket [15:01:46]OFDProtocolAddRootSTLVToBuf [15:01:46]FM_MakeSignedData [15:01:46]FM_MakeSignedData [15:01:46]SAM_PROTO_SignData [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 0D 01 02 [15:01:46]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 03 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [15:01:46]RAPDU: 90 00 [15:01:46]wFMCommunicate OK [15:01:46]wFMCommunicate request_size=255 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 59 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 21 1E 00 00 35 04 06 00 [15:01:46]Write to MH i2c: E2 02 01 EE 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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 59 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 21 1E 00 00 35 04 06 00 00 00 92 [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 03 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [15:01:46]RAPDU: 90 00 [15:01:46]wFMCommunicate OK [15:01:46]wFMCommunicate request_size=11 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 0D 02 02 06 13 91 51 50 48 A3 [15:01:46]Write to MH i2c: E2 0E 00 EF 01 80 0D 02 02 06 00 13 91 51 50 48 A3 00 00 A6 [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 03 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [15:01:46]RAPDU: 90 00 [15:01:46]wFMCommunicate OK [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 0D 03 02 [15:01:46]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 0B 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 0B 00 F0 01 00 28 0E 14 F1 0E 44 26 31 90 00 51 [15:01:46]RAPDU: 28 0E 14 F1 0E 44 26 31 90 00 [15:01:46]wFMCommunicate OK [15:01:46]SAM_PROTO_SignData done [15:01:46]FM_MakeSignedData done [15:01:46]CreateOFDProtocolMessage [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 11 00 00 [15:01:46]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 17 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 BD [15:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:01:46]wFMCommunicate OK [15:01:46]CreateOFDProtocolMessage done [15:01:46]OFDSenderStorePacket 7713 [15:01:46]StoreOFDPacket docnum=7713 [15:01:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 89 35 08 01 DC 76 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 59 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 21 1E 00 00 35 04 06 00 13 91 51 50 48 A3 28 0E 14 F1 0E 44 26 31 [15:01:46]CheckFolder [15:01:46]dirname=/storage/ofd_packets [15:01:46]CheckFolder done [15:01:46]ProducePacketName [15:01:46]name=ofd_packets/00007713 [15:01:46]NVStorageSaveData ofd_packets/00007713 [15:01:46]File name is /storage/ofd_packets/00007713 [15:01:46]Write 302 bytes [15:01:46]NVStorageSaveData done [15:01:46]OFDSenderStorePacket done [15:01:46]KKMCreateOFDPacket done [15:01:46]NVStorageSaveData kkm_last_timestamp [15:01:46]File name is /storage/kkm_last_timestamp [15:01:46]Write 4 bytes [15:01:46]NVStorageSaveData done [15:01:46]ExternCall_PrintAddStr [15:01:46]wPrintStart [15:01:46]Write to MH i2c: 01 00 00 F2 01 F3 [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: 01 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: 01 07 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [15:01:46]RasterBufferAndPrint [15:01:46]line Счет N : (1)871819 [15:01:46]line ИНН: 02508201610067 [15:01:46]line Контрольно-Кассовый Чек [15:01:46]line ПРОДАЖА [15:01:46]line ТРК (МРК, ГНК) : 11 [15:01:46]line Товар: 2710194210 [15:01:46]line ДТ(л)-К-4 [15:01:46]line 26.250 * 76.20 [15:01:46]line = 2000.25 [15:01:46]line НДС 12% НСП 1% [15:01:46]line > о реализуемом товаре [15:01:46]line ОКРУГЛЕНИЕ: -0.25 [15:01:46]line ИТОГО: 2000.00 [15:01:46]line Внесено: 2000.00 [15:01:46]line СДАЧА: 0.00 [15:01:46]line НСП 1% : 17.70 [15:01:46]line НДС 12% : 212.42 [15:01:46]line Наличными: 2000.00 [15:01:46]line Безнал.: 0.00 [15:01:46]line Место: АЗС № 137 "Партнер Нефть" [15:01:46]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:01:46]line СНО: Общий режим [15:01:46]line Чек 111 22.09.2024 15:01 [15:01:46]line Смена: 70 ФФД: 1.0 [15:01:46]line ЗНМ: 0300000041 [15:01:46]line РНМ: 0000000000190446 [15:01:46]line Версия ККМ: v1.0 [15:01:46]line ФМ: 0000000002094258 [15:01:46]line ФД: 7713 [15:01:46]line ФПД: 21514855401635 [15:01:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150145&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7713&fm=21514855401635&tin=02508201610067®Number=0000000000190446&sum=200000 [15:01:47]OFD Sender: Processing packet 7713 [packets to send 51, broken 50] [15:01:47]ProducePacketName [15:01:47]name=ofd_packets/00007713 [15:01:47]OFD Sender: To server: pG, [15:01:47]CommunicateWithHost lk.salyk.kg:30040 [15:01:47]ConnectInit lk.salyk.kg [15:01:47]written 0, free lines is 4095 [15:01:47]Write to MH i2c: 01 00 00 1D 02 1F [15:01:47]Write i2c OK [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: 01 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: 01 07 00 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 EA 0C 1C [15:01:47]RasterBufferAndPrint [15:01:47]line [15:01:47]line [15:01:47]line [15:01:47]line [15:01:47]line [15:01:47]written 0, free lines is 3312 [15:01:47]MH_Cut [15:01:47]Write to MH i2c: D1 01 00 24 02 01 F8 [15:01:47]Write i2c OK [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: D1 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: D1 01 00 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: D1 01 00 24 02 00 F7 [15:01:47]Write to MH i2c: 01 00 00 25 02 27 [15:01:47]Write i2c OK [15:01:47]MH_I2C_Read... [15:01:48]*** Cut start [15:01:48]*** Purtial cut [15:01:48]*** Stage 1: CUTSNS_PIN = 1 [15:01:48]Read from MH i2c: 01 [15:01:48]MH_I2C_Read... [15:01:48]*** Stop cut motor [15:01:48]*** Cut end [15:01:48]Read from MH i2c: 01 07 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [15:01:48]process_action close_receipt done [15:01:48]requested_data is exist [15:01:48]produce_requested_data [15:01:48]requested_item fm.sn is exist - process it [15:01:48]wFMCommunicate request_size=4 [15:01:48]MH_SAM_APDU [15:01:48]CAPDU: 80 11 00 00 [15:01:48]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [15:01:48]Write i2c OK [15:01:48]MH_I2C_Read... [15:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:48]Read from MH i2c: E2 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 17 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 F3 [15:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:01:48]wFMCommunicate OK [15:01:48]requested_item fd.num is exist - process it [15:01:48]SAM_PROTO_GetFieldsCounters [15:01:48]wFMCommunicate request_size=4 [15:01:48]MH_SAM_APDU [15:01:48]CAPDU: 80 13 00 00 [15:01:48]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [15:01:48]Write i2c OK [15:01:48]MH_I2C_Read... [15:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:48]Read from MH i2c: E2 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 62 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 21 1E 00 00 0E 04 04 00 46 00 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 95 [15:01:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 21 1E 00 00 0E 04 04 00 46 00 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 [15:01:48]wFMCommunicate OK [15:01:48]SAM_PROTO_GetFieldsCounters done [15:01:48]requested_item shift.num is exist - process it [15:01:48]requested_item shift.opened is exist - process it [15:01:48]req_shift_opened [15:01:48]FM_GetShiftState [15:01:48]SAM_PROTO_GetShiftState [15:01:48]wFMCommunicate request_size=4 [15:01:48]MH_SAM_APDU [15:01:48]CAPDU: 80 13 01 00 [15:01:48]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [15:01:48]Write i2c OK [15:01:48]MH_I2C_Read... [15:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:48]Read from MH i2c: E2 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 0E 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6A [15:01:48]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:01:48]wFMCommunicate OK [15:01:48]SAM_PROTO_GetShiftState done [15:01:48]FM_GetShiftState done [15:01:48]req_shift_opened done [15:01:48]requested_item shift.open_date is exist - process it [15:01:48]req_shift_open_date [15:01:48]req_shift_open_date done [15:01:48]produce_requested_data done [15:01:48]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7713,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:01:48]process_action_free close_receipt [15:01:48]json_value_free [15:01:48]json_value_free done [15:01:48]process_json_proto returns [15:01:48]Send response to host [15:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7713,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:01:48]free response buf [15:01:48]execute_script done [15:01:48]execute_script returns [15:01:48]free content buf [15:01:48]Sock 8.Close socket [15:01:48]Sock 8.Thread stoped [15:01:52]ConnectInit Can't take IP for lk.salyk.kg [15:01:52]CommunicateWithHost connect error [15:01:52]CommunicateWithHost err = -1 [15:01:52]OFD Sender: Server communicate error [15:01:57]OFD Sender: Processing packet 7713 [packets to send 51, broken 50] [15:01:57]ProducePacketName [15:01:57]name=ofd_packets/00007713 [15:01:57]OFD Sender: To server: pG, [15:01:57]CommunicateWithHost lk.salyk.kg:30040 [15:01:57]ConnectInit lk.salyk.kg [15:01:57]Connected sock=8 [15:01:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 89 35 08 01 DC 76 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 59 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 21 1E 00 00 35 04 06 00 13 91 51 50 48 A3 28 0E 14 F1 0E 44 26 31 [15:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 8E FF 47 00 6B AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 21 1E 00 00 F4 03 04 00 22 DC EF 66 B6 04 01 00 00 19 46 19 85 E5 43 E2 B3 [15:01:58]CommunicateWithHost err = 0 [15:01:58]CheckOFDResponse [15:01:58]1017 (14) - 77093643461234 [15:01:58]1041 (16) - 0000000002094258 [15:01:58]1040 (4) - 7713 [15:01:58]1012 (4) - 22.09.2024 08:58 [15:01:58]1206 (1) - 0 [15:01:58]OFD Sender: Remove packet 7713 [15:01:58]ProducePacketName [15:01:58]name=ofd_packets/00007713 [15:01:58]NVStorageDeleteData [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:05]recv_with_timeout no data received [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:02]accept exits with 10 [15:03:02]New connection [15:03:02]New thread 3066535268 created [15:03:02]Thread 3066678628 joined [15:03:02]Waiting for new connection... [15:03:02] Sock 10.Parse request [15:03:02]Sock 10.Check first char [15:03:02]Sock 10.First char is OK [15:03:02]request: POST /json_proto HTTP/1.0 [15:03:02]Method: POST [15:03:02]URL: /json_proto [15:03:02]Method is POST - this is cgi request [15:03:02]url: /json_proto [15:03:02]query_string will be loaded in cgi processing [15:03:02]execute_cgi json_proto POST (null) [15:03:02]execute_cgi path=json_proto method=POST [15:03:02]POST find Content-Length [15:03:02]Host: 172.17.47.195:8080 [15:03:02]Content-Length: 682 [15:03:02]Content-Type: application/json [15:03:02] [15:03:02]POST finish read [15:03:02]Found Content-Length = 682 [15:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:02]execute_script... [15:03: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)871820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:02]POST & json_proto [15:03:02]process_json_proto [15:03:02]json parsed OK: [15:03:02]protocol is kg_v1.0 [15:03:02]action value=close_receipt [15:03:02]process_action close_receipt [15:03:02]cmd_close_receipt [15:03:02]MH_GetDate [15:03:02]Write to MH i2c: F0 00 00 29 02 1A [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: F0 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: F0 09 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: F0 09 00 29 02 00 A6 31 F0 66 96 2E 95 66 0F [15:03:02]GetLastDocTimeStamp 1727017305 [15:03:02]current date 1727017382 [15:03:02]FM_GetShiftState [15:03:02]SAM_PROTO_GetShiftState [15:03:02]wFMCommunicate request_size=4 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 13 01 00 [15:03:02]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 0E 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6C [15:03:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:03:02]wFMCommunicate OK [15:03:02]SAM_PROTO_GetShiftState done [15:03:02]FM_GetShiftState done [15:03:02]opened in 1726964224 [15:03:02]opened+sec_in_day 1727050624 [15:03:02]quantity*price = 100005 [15:03:02]sum+1 = 100006 [15:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 112 22.09.2024 15:03 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7714 ФПД: 163235200369431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150302&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7714&fm=163235200369431&tin=02508201610067®Number=0000000000190446&sum=100000 [15:03:03]StoreToDocumentArchive [15:03:03]shift 70 fd 7714 [15:03:03]save to /storage/0070/doc_00007714 [15:03:03]save last doc name /storage/0070/doc_00007714 to /storage/kkm_last_doc_name [15:03:03]save OK [15:03:03]Clear old archive folders... [15:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:03]tlvbuf is 01D53460 [15:03:03]SAM_PROTO_ClearQueue [15:03:03]wFMCommunicate request_size=4 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 09 00 00 [15:03:03]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [15:03:03]RAPDU: 90 00 [15:03:03]wFMCommunicate OK [15:03:03]SAM_PROTO_ClearQueue done [15:03:03]KKMCreateOFDPacket [15:03:03]OFDProtocolAddRootSTLVToBuf [15:03:03]FM_MakeSignedData [15:03:03]FM_MakeSignedData [15:03:03]SAM_PROTO_SignData [15:03:03]wFMCommunicate request_size=4 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 0D 01 02 [15:03:03]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [15:03:03]RAPDU: 90 00 [15:03:03]wFMCommunicate OK [15:03:03]wFMCommunicate request_size=255 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A6 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 22 1E 00 00 35 04 06 00 94 [15:03:03]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A6 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 22 1E 00 00 35 04 06 00 94 00 00 75 [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]OFD Sender: No OFD packet to send [15:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [15:03:03]RAPDU: 90 00 [15:03:03]wFMCommunicate OK [15:03:03]wFMCommunicate request_size=10 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 0D 02 02 05 76 28 22 03 17 [15:03:03]Write to MH i2c: E2 0D 00 3A 02 80 0D 02 02 05 00 76 28 22 03 17 00 00 9A [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [15:03:03]RAPDU: 90 00 [15:03:03]wFMCommunicate OK [15:03:03]wFMCommunicate request_size=4 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 0D 03 02 [15:03:03]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 0B 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 0B 00 3B 02 00 39 9A D0 D9 1A 5D B7 F2 90 00 55 [15:03:03]RAPDU: 39 9A D0 D9 1A 5D B7 F2 90 00 [15:03:03]wFMCommunicate OK [15:03:03]SAM_PROTO_SignData done [15:03:03]FM_MakeSignedData done [15:03:03]CreateOFDProtocolMessage [15:03:03]wFMCommunicate request_size=4 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 11 00 00 [15:03:03]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:04]Read from MH i2c: E2 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 17 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 09 [15:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:03:04]wFMCommunicate OK [15:03:04]CreateOFDProtocolMessage done [15:03:04]OFDSenderStorePacket 7714 [15:03:04]StoreOFDPacket docnum=7714 [15:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 3D E5 07 01 FA B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A6 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 22 1E 00 00 35 04 06 00 94 76 28 22 03 17 39 9A D0 D9 1A 5D B7 F2 [15:03:04]CheckFolder [15:03:04]dirname=/storage/ofd_packets [15:03:04]CheckFolder done [15:03:04]ProducePacketName [15:03:04]name=ofd_packets/00007714 [15:03:04]NVStorageSaveData ofd_packets/00007714 [15:03:04]File name is /storage/ofd_packets/00007714 [15:03:04]Write 301 bytes [15:03:04]NVStorageSaveData done [15:03:04]OFDSenderStorePacket done [15:03:04]KKMCreateOFDPacket done [15:03:04]NVStorageSaveData kkm_last_timestamp [15:03:04]File name is /storage/kkm_last_timestamp [15:03:04]Write 4 bytes [15:03:04]NVStorageSaveData done [15:03:04]ExternCall_PrintAddStr [15:03:04]wPrintStart [15:03:04]Write to MH i2c: 01 00 00 3D 02 3F [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [15:03:04]RasterBufferAndPrint [15:03:04]line Счет N : (1)871820 [15:03:04]line ИНН: 02508201610067 [15:03:04]line Контрольно-Кассовый Чек [15:03:04]line ПРОДАЖА [15:03:04]line ТРК (МРК, ГНК) : 33 [15:03:04]line Товар: 2710124130 [15:03:04]line Аи-92-К-5 [15:03:04]line 14.750 * 67.80 [15:03:04]line = 1000.05 [15:03:04]line НДС 12% НСП 1% [15:03:04]line > о реализуемом товаре [15:03:04]line ОКРУГЛЕНИЕ: -0.05 [15:03:04]line ИТОГО: 1000.00 [15:03:04]line Внесено: 1000.00 [15:03:04]line СДАЧА: 0.00 [15:03:04]line НСП 1% : 8.85 [15:03:04]line НДС 12% : 106.20 [15:03:04]line Наличными: 1000.00 [15:03:04]line Безнал.: 0.00 [15:03:04]line Место: АЗС № 137 "Партнер Нефть" [15:03:04]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:03:04]line СНО: Общий режим [15:03:04]line Чек 112 22.09.2024 15:03 [15:03:04]line Смена: 70 ФФД: 1.0 [15:03:04]line ЗНМ: 0300000041 [15:03:04]line РНМ: 0000000000190446 [15:03:04]line Версия ККМ: v1.0 [15:03:04]line ФМ: 0000000002094258 [15:03:04]line ФД: 7714 [15:03:04]line ФПД: 163235200369431 [15:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150302&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7714&fm=163235200369431&tin=02508201610067®Number=0000000000190446&sum=100000 [15:03:04]OFD Sender: Processing packet 7714 [packets to send 51, broken 50] [15:03:04]ProducePacketName [15:03:04]name=ofd_packets/00007714 [15:03:04]OFD Sender: To server: pG, [15:03:04]CommunicateWithHost lk.salyk.kg:30040 [15:03:04]ConnectInit lk.salyk.kg [15:03:04]written 0, free lines is 4095 [15:03:04]Write to MH i2c: 01 00 00 68 02 6A [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 ED 0C 6A [15:03:04]RasterBufferAndPrint [15:03:04]line [15:03:04]line [15:03:04]line [15:03:04]line [15:03:04]line [15:03:04]written 0, free lines is 3315 [15:03:04]MH_Cut [15:03:04]Write to MH i2c: D1 01 00 6F 02 01 43 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: D1 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: D1 01 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: D1 01 00 6F 02 00 42 [15:03:04]Write to MH i2c: 01 00 00 70 02 72 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:05]Connected sock=8 [15:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 3D E5 07 01 FA B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A6 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 22 1E 00 00 35 04 06 00 94 76 28 22 03 17 39 9A D0 D9 1A 5D B7 F2 [15:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 33 BB 47 00 12 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 22 1E 00 00 F4 03 04 00 65 DC EF 66 B6 04 01 00 00 B2 F5 FE 08 42 54 07 5E [15:03:05]CommunicateWithHost err = 0 [15:03:05]CheckOFDResponse [15:03:05]1017 (14) - 77093643461234 [15:03:05]1041 (16) - 0000000002094258 [15:03:05]1040 (4) - 7714 [15:03:05]1012 (4) - 22.09.2024 08:59 [15:03:05]1206 (1) - 0 [15:03:05]OFD Sender: Remove packet 7714 [15:03:05]ProducePacketName [15:03:05]name=ofd_packets/00007714 [15:03:05]NVStorageDeleteData [15:03:05]*** Cut start [15:03:05]*** Purtial cut [15:03:05]*** Stage 1: CUTSNS_PIN = 1 [15:03:05]Read from MH i2c: 01 [15:03:05]MH_I2C_Read... [15:03:05]*** Stop cut motor [15:03:05]*** Cut end [15:03:05]Read from MH i2c: 01 07 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [15:03:05]process_action close_receipt done [15:03:05]requested_data is exist [15:03:05]produce_requested_data [15:03:05]requested_item fm.sn is exist - process it [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 11 00 00 [15:03:05]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:05]Read from MH i2c: E2 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 17 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 3E [15:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:03:05]wFMCommunicate OK [15:03:05]requested_item fd.num is exist - process it [15:03:05]SAM_PROTO_GetFieldsCounters [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 13 00 00 [15:03:05]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:05]Read from MH i2c: E2 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 62 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 22 1E 00 00 0E 04 04 00 46 00 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 E4 [15:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 22 1E 00 00 0E 04 04 00 46 00 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 [15:03:05]wFMCommunicate OK [15:03:05]SAM_PROTO_GetFieldsCounters done [15:03:05]requested_item shift.num is exist - process it [15:03:05]requested_item shift.opened is exist - process it [15:03:05]req_shift_opened [15:03:05]FM_GetShiftState [15:03:05]SAM_PROTO_GetShiftState [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 13 01 00 [15:03:05]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:06]OFD Sender: No OFD packet to send [15:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:06]Read from MH i2c: E2 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 0E 00 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B5 [15:03:06]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:03:06]wFMCommunicate OK [15:03:06]SAM_PROTO_GetShiftState done [15:03:06]FM_GetShiftState done [15:03:06]req_shift_opened done [15:03:06]requested_item shift.open_date is exist - process it [15:03:06]req_shift_open_date [15:03:06]req_shift_open_date done [15:03:06]produce_requested_data done [15:03:06]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7714,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:03:06]process_action_free close_receipt [15:03:06]json_value_free [15:03:06]json_value_free done [15:03:06]process_json_proto returns [15:03:06]Send response to host [15:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7714,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:03:06]free response buf [15:03:06]execute_script done [15:03:06]execute_script returns [15:03:06]free content buf [15:03:06]Sock 10.Close socket [15:03:06]Sock 10.Thread stoped [15:03:11]OFD Sender: No OFD packet to send [15:03:15]accept exits with 9 [15:03:15]New connection [15:03:15]New thread 3066678628 created [15:03:15]Thread 3066535268 joined [15:03:15]Waiting for new connection... [15:03:15] Sock 9.Parse request [15:03:15]Sock 9.Check first char [15:03:15]Sock 9.First char is OK [15:03:15]request: POST /json_proto HTTP/1.0 [15:03:15]Method: POST [15:03:15]URL: /json_proto [15:03:15]Method is POST - this is cgi request [15:03:15]url: /json_proto [15:03:15]query_string will be loaded in cgi processing [15:03:15]execute_cgi json_proto POST (null) [15:03:15]execute_cgi path=json_proto method=POST [15:03:15]POST find Content-Length [15:03:15]Host: 172.17.47.195:8080 [15:03:15]Content-Length: 677 [15:03:15]Content-Type: application/json [15:03:15] [15:03:15]POST finish read [15:03:15]Found Content-Length = 677 [15:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:15]execute_script... [15:03:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:15]POST & json_proto [15:03:15]process_json_proto [15:03:15]json parsed OK: [15:03:15]protocol is kg_v1.0 [15:03:15]action value=close_receipt [15:03:15]process_action close_receipt [15:03:15]cmd_close_receipt [15:03:15]MH_GetDate [15:03:15]Write to MH i2c: F0 00 00 74 02 65 [15:03:15]Write i2c OK [15:03:15]MH_I2C_Read... [15:03:16]Read from MH i2c: F0 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: F0 09 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: F0 09 00 74 02 00 B4 31 F0 66 96 2E 95 66 68 [15:03:16]GetLastDocTimeStamp 1727017382 [15:03:16]current date 1727017396 [15:03:16]FM_GetShiftState [15:03:16]SAM_PROTO_GetShiftState [15:03:16]wFMCommunicate request_size=4 [15:03:16]MH_SAM_APDU [15:03:16]CAPDU: 80 13 01 00 [15:03:16]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]OFD Sender: No OFD packet to send [15:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:16]Read from MH i2c: E2 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 0E 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B7 [15:03:16]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:03:16]wFMCommunicate OK [15:03:16]SAM_PROTO_GetShiftState done [15:03:16]FM_GetShiftState done [15:03:16]opened in 1726964224 [15:03:16]opened+sec_in_day 1727050624 [15:03:16]quantity*price = 30035 [15:03:16]sum+1 = 30036 [15:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 113 22.09.2024 15:03 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7715 ФПД: 275275086653254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150316&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7715&fm=275275086653254&tin=02508201610067®Number=0000000000190446&sum=30000 [15:03:17]StoreToDocumentArchive [15:03:17]shift 70 fd 7715 [15:03:17]save to /storage/0070/doc_00007715 [15:03:17]save last doc name /storage/0070/doc_00007715 to /storage/kkm_last_doc_name [15:03:17]save OK [15:03:17]Clear old archive folders... [15:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:17]tlvbuf is 01D71450 [15:03:17]SAM_PROTO_ClearQueue [15:03:17]wFMCommunicate request_size=4 [15:03:17]MH_SAM_APDU [15:03:17]CAPDU: 80 09 00 00 [15:03:17]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:17]Read from MH i2c: E2 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 03 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [15:03:17]RAPDU: 90 00 [15:03:17]wFMCommunicate OK [15:03:17]SAM_PROTO_ClearQueue done [15:03:17]KKMCreateOFDPacket [15:03:17]OFDProtocolAddRootSTLVToBuf [15:03:17]FM_MakeSignedData [15:03:17]FM_MakeSignedData [15:03:17]SAM_PROTO_SignData [15:03:17]wFMCommunicate request_size=4 [15:03:17]MH_SAM_APDU [15:03:17]CAPDU: 80 0D 01 02 [15:03:17]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:17]Read from MH i2c: E2 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 03 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [15:03:17]RAPDU: 90 00 [15:03:17]wFMCommunicate OK [15:03:17]wFMCommunicate request_size=255 [15:03:17]MH_SAM_APDU [15:03:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B4 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 23 1E 00 00 35 04 06 00 FA [15:03:17]Write to MH i2c: E2 02 01 84 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B4 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 23 1E 00 00 35 04 06 00 FA 00 00 C6 [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:17]Read from MH i2c: E2 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 03 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [15:03:17]RAPDU: 90 00 [15:03:17]wFMCommunicate OK [15:03:17]wFMCommunicate request_size=10 [15:03:17]MH_SAM_APDU [15:03:17]CAPDU: 80 0D 02 02 05 5C 79 C1 67 46 [15:03:17]Write to MH i2c: E2 0D 00 85 02 80 0D 02 02 05 00 5C 79 C1 67 46 00 00 4E [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:17]Read from MH i2c: E2 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 03 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [15:03:17]RAPDU: 90 00 [15:03:17]wFMCommunicate OK [15:03:17]wFMCommunicate request_size=4 [15:03:17]MH_SAM_APDU [15:03:17]CAPDU: 80 0D 03 02 [15:03:17]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:17]Read from MH i2c: E2 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 0B 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 0B 00 86 02 00 8F 3E 2E CF 2B 55 AE 78 90 00 74 [15:03:17]RAPDU: 8F 3E 2E CF 2B 55 AE 78 90 00 [15:03:17]wFMCommunicate OK [15:03:17]SAM_PROTO_SignData done [15:03:17]FM_MakeSignedData done [15:03:17]CreateOFDProtocolMessage [15:03:17]wFMCommunicate request_size=4 [15:03:17]MH_SAM_APDU [15:03:17]CAPDU: 80 11 00 00 [15:03:17]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:17]Read from MH i2c: E2 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 17 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 54 [15:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:03:17]wFMCommunicate OK [15:03:17]CreateOFDProtocolMessage done [15:03:17]OFDSenderStorePacket 7715 [15:03:17]StoreOFDPacket docnum=7715 [15:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E6 89 07 01 BA 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B4 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 23 1E 00 00 35 04 06 00 FA 5C 79 C1 67 46 8F 3E 2E CF 2B 55 AE 78 [15:03:17]CheckFolder [15:03:17]dirname=/storage/ofd_packets [15:03:17]CheckFolder done [15:03:17]ProducePacketName [15:03:17]name=ofd_packets/00007715 [15:03:17]NVStorageSaveData ofd_packets/00007715 [15:03:17]File name is /storage/ofd_packets/00007715 [15:03:17]Write 301 bytes [15:03:17]NVStorageSaveData done [15:03:17]OFDSenderStorePacket done [15:03:17]KKMCreateOFDPacket done [15:03:17]NVStorageSaveData kkm_last_timestamp [15:03:17]File name is /storage/kkm_last_timestamp [15:03:17]Write 4 bytes [15:03:17]NVStorageSaveData done [15:03:17]ExternCall_PrintAddStr [15:03:17]wPrintStart [15:03:17]Write to MH i2c: 01 00 00 88 02 8A [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: 01 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: 01 07 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [15:03:17]RasterBufferAndPrint [15:03:17]line Счет N : (1)871822 [15:03:17]line ИНН: 02508201610067 [15:03:17]line Контрольно-Кассовый Чек [15:03:17]line ПРОДАЖА [15:03:17]line ТРК (МРК, ГНК) : 43 [15:03:17]line Товар: 2710124130 [15:03:17]line Аи-92-К-5 [15:03:17]line 4.430 * 67.80 [15:03:17]line = 300.35 [15:03:17]line НДС 12% НСП 1% [15:03:17]line > о реализуемом товаре [15:03:17]line ОКРУГЛЕНИЕ: -0.35 [15:03:17]line ИТОГО: 300.00 [15:03:17]line Внесено: 300.00 [15:03:17]line СДАЧА: 0.00 [15:03:17]line НСП 1% : 2.66 [15:03:17]line НДС 12% : 31.90 [15:03:17]line Наличными: 300.00 [15:03:17]line Безнал.: 0.00 [15:03:17]line Место: АЗС № 137 "Партнер Нефть" [15:03:17]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:03:17]line СНО: Общий режим [15:03:17]line Чек 113 22.09.2024 15:03 [15:03:17]line Смена: 70 ФФД: 1.0 [15:03:17]line ЗНМ: 0300000041 [15:03:17]line РНМ: 0000000000190446 [15:03:17]line Версия ККМ: v1.0 [15:03:17]line ФМ: 0000000002094258 [15:03:17]line ФД: 7715 [15:03:17]line ФПД: 275275086653254 [15:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150316&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7715&fm=275275086653254&tin=02508201610067®Number=0000000000190446&sum=30000 [15:03:17]written 0, free lines is 4095 [15:03:17]OFD Sender: Processing packet 7715 [packets to send 51, broken 50] [15:03:17]ProducePacketName [15:03:17]name=ofd_packets/00007715 [15:03:17]OFD Sender: To server: pG, [15:03:17]CommunicateWithHost lk.salyk.kg:30040 [15:03:17]ConnectInit lk.salyk.kg [15:03:18]Write to MH i2c: 01 00 00 B3 02 B5 [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: 01 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: 01 07 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 ED 0C B5 [15:03:18]RasterBufferAndPrint [15:03:18]line [15:03:18]line [15:03:18]line [15:03:18]line [15:03:18]line [15:03:18]written 0, free lines is 3318 [15:03:18]MH_Cut [15:03:18]Write to MH i2c: D1 01 00 BA 02 01 8E [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: D1 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: D1 01 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: D1 01 00 BA 02 00 8D [15:03:18]Write to MH i2c: 01 00 00 BB 02 BD [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]Connected sock=10 [15:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E6 89 07 01 BA 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B4 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 23 1E 00 00 35 04 06 00 FA 5C 79 C1 67 46 8F 3E 2E CF 2B 55 AE 78 [15:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 63 1D 47 00 37 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 23 1E 00 00 F4 03 04 00 73 DC EF 66 B6 04 01 00 00 EB 15 72 B4 49 BB FC F4 [15:03:18]CommunicateWithHost err = 0 [15:03:18]CheckOFDResponse [15:03:18]1017 (14) - 77093643461234 [15:03:18]1041 (16) - 0000000002094258 [15:03:18]1040 (4) - 7715 [15:03:18]1012 (4) - 22.09.2024 08:59 [15:03:18]1206 (1) - 0 [15:03:18]OFD Sender: Remove packet 7715 [15:03:18]ProducePacketName [15:03:18]name=ofd_packets/00007715 [15:03:18]NVStorageDeleteData [15:03:18]*** Cut start [15:03:18]*** Purtial cut [15:03:18]*** Stage 1: CUTSNS_PIN = 1 [15:03:19]Read from MH i2c: 01 [15:03:19]MH_I2C_Read... [15:03:19]*** Stop cut motor [15:03:19]*** Cut end [15:03:19]Read from MH i2c: 01 07 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [15:03:19]process_action close_receipt done [15:03:19]requested_data is exist [15:03:19]produce_requested_data [15:03:19]requested_item fm.sn is exist - process it [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 11 00 00 [15:03:19]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 17 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 89 [15:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:03:19]wFMCommunicate OK [15:03:19]requested_item fd.num is exist - process it [15:03:19]SAM_PROTO_GetFieldsCounters [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 13 00 00 [15:03:19]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]OFD Sender: No OFD packet to send [15:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 62 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 23 1E 00 00 0E 04 04 00 46 00 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 33 [15:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 23 1E 00 00 0E 04 04 00 46 00 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 [15:03:19]wFMCommunicate OK [15:03:19]SAM_PROTO_GetFieldsCounters done [15:03:19]requested_item shift.num is exist - process it [15:03:19]requested_item shift.opened is exist - process it [15:03:19]req_shift_opened [15:03:19]FM_GetShiftState [15:03:19]SAM_PROTO_GetShiftState [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 13 01 00 [15:03:19]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 00 [15:03:19]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:03:19]wFMCommunicate OK [15:03:19]SAM_PROTO_GetShiftState done [15:03:19]FM_GetShiftState done [15:03:19]req_shift_opened done [15:03:19]requested_item shift.open_date is exist - process it [15:03:19]req_shift_open_date [15:03:19]req_shift_open_date done [15:03:19]produce_requested_data done [15:03:19]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7715,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:03:19]process_action_free close_receipt [15:03:19]json_value_free [15:03:19]json_value_free done [15:03:19]process_json_proto returns [15:03:19]Send response to host [15:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7715,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:03:19]free response buf [15:03:19]execute_script done [15:03:19]execute_script returns [15:03:19]free content buf [15:03:19]Sock 9.Close socket [15:03:19]Sock 9.Thread stoped [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:37]accept exits with 8 [15:03:37]New connection [15:03:37]New thread 3066535268 created [15:03:37]Thread 3066678628 joined [15:03:37]Waiting for new connection... [15:03:37] Sock 8.Parse request [15:03:37]Sock 8.Check first char [15:03:37]Sock 8.First char is OK [15:03:37]request: POST /json_proto HTTP/1.0 [15:03:37]Method: POST [15:03:37]URL: /json_proto [15:03:37]Method is POST - this is cgi request [15:03:37]url: /json_proto [15:03:37]query_string will be loaded in cgi processing [15:03:37]execute_cgi json_proto POST (null) [15:03:37]execute_cgi path=json_proto method=POST [15:03:37]POST find Content-Length [15:03:37]Host: 172.17.47.195:8080 [15:03:37]Content-Length: 678 [15:03:37]Content-Type: application/json [15:03:37] [15:03:37]POST finish read [15:03:37]Found Content-Length = 678 [15:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871821", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:37]execute_script... [15:03: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)871821", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:37]POST & json_proto [15:03:37]process_json_proto [15:03:37]json parsed OK: [15:03:37]protocol is kg_v1.0 [15:03:37]action value=close_receipt [15:03:37]process_action close_receipt [15:03:37]cmd_close_receipt [15:03:37]MH_GetDate [15:03:37]Write to MH i2c: F0 00 00 BF 02 B0 [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: F0 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: F0 09 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: F0 09 00 BF 02 00 C9 31 F0 66 96 2E 95 66 C8 [15:03:37]GetLastDocTimeStamp 1727017396 [15:03:37]current date 1727017417 [15:03:37]FM_GetShiftState [15:03:37]SAM_PROTO_GetShiftState [15:03:37]wFMCommunicate request_size=4 [15:03:37]MH_SAM_APDU [15:03:37]CAPDU: 80 13 01 00 [15:03:37]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 0E 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 02 [15:03:37]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:03:37]wFMCommunicate OK [15:03:37]SAM_PROTO_GetShiftState done [15:03:37]FM_GetShiftState done [15:03:37]opened in 1726964224 [15:03:37]opened+sec_in_day 1727050624 [15:03:37]quantity*price = 70037 [15:03:37]sum+1 = 70038 [15:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 114 22.09.2024 15:03 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7716 ФПД: 91433970907107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150337&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7716&fm=91433970907107&tin=02508201610067®Number=0000000000190446&sum=70000 [15:03:38]StoreToDocumentArchive [15:03:38]shift 70 fd 7716 [15:03:38]save to /storage/0070/doc_00007716 [15:03:38]save last doc name /storage/0070/doc_00007716 to /storage/kkm_last_doc_name [15:03:38]save OK [15:03:38]Clear old archive folders... [15:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:38]tlvbuf is 01D8F530 [15:03:38]SAM_PROTO_ClearQueue [15:03:38]wFMCommunicate request_size=4 [15:03:38]MH_SAM_APDU [15:03:38]CAPDU: 80 09 00 00 [15:03:38]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:38]Read from MH i2c: E2 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 03 00 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [15:03:38]RAPDU: 90 00 [15:03:38]wFMCommunicate OK [15:03:38]SAM_PROTO_ClearQueue done [15:03:38]KKMCreateOFDPacket [15:03:38]OFDProtocolAddRootSTLVToBuf [15:03:38]FM_MakeSignedData [15:03:38]FM_MakeSignedData [15:03:38]SAM_PROTO_SignData [15:03:38]wFMCommunicate request_size=4 [15:03:38]MH_SAM_APDU [15:03:38]CAPDU: 80 0D 01 02 [15:03:38]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:38]Read from MH i2c: E2 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 03 00 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [15:03:38]RAPDU: 90 00 [15:03:38]wFMCommunicate OK [15:03:38]wFMCommunicate request_size=255 [15:03:38]MH_SAM_APDU [15:03: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C9 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 24 1E 00 00 35 04 06 00 53 [15:03:38]Write to MH i2c: E2 02 01 CF 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C9 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 24 1E 00 00 35 04 06 00 53 00 00 49 [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:39]Read from MH i2c: E2 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: E2 03 00 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [15:03:39]RAPDU: 90 00 [15:03:39]wFMCommunicate OK [15:03:39]wFMCommunicate request_size=10 [15:03:39]MH_SAM_APDU [15:03:39]CAPDU: 80 0D 02 02 05 28 A1 5B 37 E3 [15:03:39]Write to MH i2c: E2 0D 00 D0 02 80 0D 02 02 05 00 28 A1 5B 37 E3 00 00 94 [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:39]Read from MH i2c: E2 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: E2 03 00 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [15:03:39]RAPDU: 90 00 [15:03:39]wFMCommunicate OK [15:03:39]wFMCommunicate request_size=4 [15:03:39]MH_SAM_APDU [15:03:39]CAPDU: 80 0D 03 02 [15:03:39]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:39]recv_with_timeout no data received [15:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:39]Read from MH i2c: E2 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: E2 0B 00 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: E2 0B 00 D1 02 00 26 86 E1 65 A5 8D 99 00 90 00 0C [15:03:39]RAPDU: 26 86 E1 65 A5 8D 99 00 90 00 [15:03:39]wFMCommunicate OK [15:03:39]SAM_PROTO_SignData done [15:03:39]FM_MakeSignedData done [15:03:39]CreateOFDProtocolMessage [15:03:39]wFMCommunicate request_size=4 [15:03:39]MH_SAM_APDU [15:03:39]CAPDU: 80 11 00 00 [15:03:39]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:39]Read from MH i2c: E2 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: E2 17 00 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 9F [15:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:03:39]wFMCommunicate OK [15:03:39]CreateOFDProtocolMessage done [15:03:39]OFDSenderStorePacket 7716 [15:03:39]StoreOFDPacket docnum=7716 [15:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 2F 62 07 01 63 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C9 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 24 1E 00 00 35 04 06 00 53 28 A1 5B 37 E3 26 86 E1 65 A5 8D 99 00 [15:03:39]CheckFolder [15:03:39]dirname=/storage/ofd_packets [15:03:39]CheckFolder done [15:03:39]ProducePacketName [15:03:39]name=ofd_packets/00007716 [15:03:39]NVStorageSaveData ofd_packets/00007716 [15:03:39]File name is /storage/ofd_packets/00007716 [15:03:39]Write 301 bytes [15:03:39]NVStorageSaveData done [15:03:39]OFDSenderStorePacket done [15:03:39]KKMCreateOFDPacket done [15:03:39]NVStorageSaveData kkm_last_timestamp [15:03:39]File name is /storage/kkm_last_timestamp [15:03:39]Write 4 bytes [15:03:39]NVStorageSaveData done [15:03:39]ExternCall_PrintAddStr [15:03:39]wPrintStart [15:03:39]Write to MH i2c: 01 00 00 D3 02 D5 [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: 01 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: 01 07 00 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [15:03:39]RasterBufferAndPrint [15:03:39]line Счет N : (1)871821 [15:03:39]line ИНН: 02508201610067 [15:03:39]line Контрольно-Кассовый Чек [15:03:39]line ПРОДАЖА [15:03:39]line ТРК (МРК, ГНК) : 53 [15:03:39]line Товар: 2710124130 [15:03:39]line Аи-92-К-5 [15:03:39]line 10.330 * 67.80 [15:03:39]line = 700.37 [15:03:39]line НДС 12% НСП 1% [15:03:39]line > о реализуемом товаре [15:03:39]line ОКРУГЛЕНИЕ: -0.37 [15:03:39]line ИТОГО: 700.00 [15:03:39]line Внесено: 700.00 [15:03:39]line СДАЧА: 0.00 [15:03:39]line НСП 1% : 6.20 [15:03:39]line НДС 12% : 74.38 [15:03:39]line Наличными: 700.00 [15:03:39]line Безнал.: 0.00 [15:03:39]line Место: АЗС № 137 "Партнер Нефть" [15:03:39]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:03:39]line СНО: Общий режим [15:03:39]line Чек 114 22.09.2024 15:03 [15:03:39]line Смена: 70 ФФД: 1.0 [15:03:39]line ЗНМ: 0300000041 [15:03:39]line РНМ: 0000000000190446 [15:03:39]line Версия ККМ: v1.0 [15:03:39]line ФМ: 0000000002094258 [15:03:39]line ФД: 7716 [15:03:39]line ФПД: 91433970907107 [15:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150337&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7716&fm=91433970907107&tin=02508201610067®Number=0000000000190446&sum=70000 [15:03:39]written 0, free lines is 4095 [15:03:39]OFD Sender: Processing packet 7716 [packets to send 51, broken 50] [15:03:39]ProducePacketName [15:03:39]name=ofd_packets/00007716 [15:03:39]OFD Sender: To server: pG, [15:03:39]CommunicateWithHost lk.salyk.kg:30040 [15:03:39]ConnectInit lk.salyk.kg [15:03:39]Write to MH i2c: 01 00 00 FE 02 00 [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: 01 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: 01 07 00 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 E9 0C FC [15:03:39]RasterBufferAndPrint [15:03:39]line [15:03:39]line [15:03:39]line [15:03:39]line [15:03:39]line [15:03:39]written 0, free lines is 3317 [15:03:39]MH_Cut [15:03:39]Write to MH i2c: D1 01 00 05 03 01 DA [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: D1 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: D1 01 00 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: D1 01 00 05 03 00 D9 [15:03:39]Write to MH i2c: 01 00 00 06 03 09 [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:40]*** Cut start [15:03:40]*** Purtial cut [15:03:40]*** Stage 1: CUTSNS_PIN = 1 [15:03:40]Read from MH i2c: 01 [15:03:40]MH_I2C_Read... [15:03:40]*** Stop cut motor [15:03:40]*** Cut end [15:03:40]Read from MH i2c: 01 07 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [15:03:40]process_action close_receipt done [15:03:40]requested_data is exist [15:03:40]produce_requested_data [15:03:40]requested_item fm.sn is exist - process it [15:03:40]wFMCommunicate request_size=4 [15:03:40]MH_SAM_APDU [15:03:40]CAPDU: 80 11 00 00 [15:03:40]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [15:03:40]Write i2c OK [15:03:40]MH_I2C_Read... [15:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:40]Read from MH i2c: E2 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 17 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [15:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:03:40]wFMCommunicate OK [15:03:40]requested_item fd.num is exist - process it [15:03:40]SAM_PROTO_GetFieldsCounters [15:03:40]wFMCommunicate request_size=4 [15:03:40]MH_SAM_APDU [15:03:40]CAPDU: 80 13 00 00 [15:03:40]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [15:03:40]Write i2c OK [15:03:40]MH_I2C_Read... [15:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:40]Read from MH i2c: E2 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 62 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 24 1E 00 00 0E 04 04 00 46 00 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 83 [15:03:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 24 1E 00 00 0E 04 04 00 46 00 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 [15:03:40]wFMCommunicate OK [15:03:40]SAM_PROTO_GetFieldsCounters done [15:03:40]requested_item shift.num is exist - process it [15:03:40]requested_item shift.opened is exist - process it [15:03:40]req_shift_opened [15:03:40]FM_GetShiftState [15:03:40]SAM_PROTO_GetShiftState [15:03:40]wFMCommunicate request_size=4 [15:03:40]MH_SAM_APDU [15:03:40]CAPDU: 80 13 01 00 [15:03:40]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [15:03:40]Write i2c OK [15:03:40]MH_I2C_Read... [15:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:40]Read from MH i2c: E2 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 0E 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 4C [15:03:40]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:03:40]wFMCommunicate OK [15:03:40]SAM_PROTO_GetShiftState done [15:03:40]FM_GetShiftState done [15:03:40]req_shift_opened done [15:03:40]requested_item shift.open_date is exist - process it [15:03:40]req_shift_open_date [15:03:40]req_shift_open_date done [15:03:40]produce_requested_data done [15:03:40]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7716,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:03:40]process_action_free close_receipt [15:03:40]json_value_free [15:03:40]json_value_free done [15:03:40]process_json_proto returns [15:03:40]Send response to host [15:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7716,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:03:40]free response buf [15:03:40]execute_script done [15:03:40]execute_script returns [15:03:40]free content buf [15:03:40]Sock 8.Close socket [15:03:40]Sock 8.Thread stoped [15:03:44]ConnectInit Can't take IP for lk.salyk.kg [15:03:44]CommunicateWithHost connect error [15:03:44]CommunicateWithHost err = -1 [15:03:44]OFD Sender: Server communicate error [15:03:49]OFD Sender: Processing packet 7716 [packets to send 51, broken 50] [15:03:49]ProducePacketName [15:03:49]name=ofd_packets/00007716 [15:03:49]OFD Sender: To server: pG, [15:03:49]CommunicateWithHost lk.salyk.kg:30040 [15:03:49]ConnectInit lk.salyk.kg [15:03:51]recv_with_timeout no data received [15:03:54]ConnectInit Can't take IP for lk.salyk.kg [15:03:54]CommunicateWithHost connect error [15:03:54]CommunicateWithHost err = -1 [15:03:54]OFD Sender: Server communicate error [15:03:59]OFD Sender: Processing packet 7716 [packets to send 51, broken 50] [15:03:59]ProducePacketName [15:03:59]name=ofd_packets/00007716 [15:03:59]OFD Sender: To server: pG, [15:03:59]CommunicateWithHost lk.salyk.kg:30040 [15:03:59]ConnectInit lk.salyk.kg [15:04:01]accept exits with 10 [15:04:01]New connection [15:04:01]New thread 3066678628 created [15:04:01]Thread 3066535268 joined [15:04:01]Waiting for new connection... [15:04:01] Sock 10.Parse request [15:04:01]Sock 10.Check first char [15:04:01]Sock 10.First char is OK [15:04:01]request: POST /json_proto HTTP/1.0 [15:04:01]Method: POST [15:04:01]URL: /json_proto [15:04:01]Method is POST - this is cgi request [15:04:01]url: /json_proto [15:04:01]query_string will be loaded in cgi processing [15:04:01]execute_cgi json_proto POST (null) [15:04:01]execute_cgi path=json_proto method=POST [15:04:01]POST find Content-Length [15:04:01]Host: 172.17.47.195:8080 [15:04:01]Content-Length: 687 [15:04:01]Content-Type: application/json [15:04:01] [15:04:01]POST finish read [15:04:01]Found Content-Length = 687 [15:04:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:01]execute_script... [15:04:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:01]POST & json_proto [15:04:01]process_json_proto [15:04:01]json parsed OK: [15:04:01]protocol is kg_v1.0 [15:04:01]action value=close_receipt [15:04:01]process_action close_receipt [15:04:01]cmd_close_receipt [15:04:01]MH_GetDate [15:04:01]Write to MH i2c: F0 00 00 0A 03 FC [15:04:01]Write i2c OK [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: F0 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: F0 09 00 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: F0 09 00 0A 03 00 E2 31 F0 66 96 2E 95 66 2D [15:04:01]GetLastDocTimeStamp 1727017417 [15:04:01]current date 1727017442 [15:04:01]FM_GetShiftState [15:04:01]SAM_PROTO_GetShiftState [15:04:01]wFMCommunicate request_size=4 [15:04:01]MH_SAM_APDU [15:04:01]CAPDU: 80 13 01 00 [15:04:01]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [15:04:01]Write i2c OK [15:04:01]MH_I2C_Read... [15:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:02]Read from MH i2c: E2 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 0E 00 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 4E [15:04:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:04:02]wFMCommunicate OK [15:04:02]SAM_PROTO_GetShiftState done [15:04:02]FM_GetShiftState done [15:04:02]opened in 1726964224 [15:04:02]opened+sec_in_day 1727050624 [15:04:02]quantity*price = 100050 [15:04:02]sum+1 = 100052 [15:04:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 115 22.09.2024 15:04 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7717 ФПД: 195662782865376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150402&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7717&fm=195662782865376&tin=02508201610067®Number=0000000000190446&sum=100000 [15:04:03]StoreToDocumentArchive [15:04:03]shift 70 fd 7717 [15:04:03]save to /storage/0070/doc_00007717 [15:04:03]save last doc name /storage/0070/doc_00007717 to /storage/kkm_last_doc_name [15:04:03]save OK [15:04:03]Clear old archive folders... [15:04:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:04:03]tlvbuf is 01D70620 [15:04:03]SAM_PROTO_ClearQueue [15:04:03]wFMCommunicate request_size=4 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 09 00 00 [15:04:03]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 03 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [15:04:03]RAPDU: 90 00 [15:04:03]wFMCommunicate OK [15:04:03]SAM_PROTO_ClearQueue done [15:04:03]KKMCreateOFDPacket [15:04:03]OFDProtocolAddRootSTLVToBuf [15:04:03]FM_MakeSignedData [15:04:03]FM_MakeSignedData [15:04:03]SAM_PROTO_SignData [15:04:03]wFMCommunicate request_size=4 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 0D 01 02 [15:04:03]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 03 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [15:04:03]RAPDU: 90 00 [15:04:03]wFMCommunicate OK [15:04:03]wFMCommunicate request_size=255 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E2 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 25 1E 00 00 35 04 06 00 [15:04:03]Write to MH i2c: E2 02 01 1A 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 E2 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 25 1E 00 00 35 04 06 00 00 00 63 [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 03 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [15:04:03]RAPDU: 90 00 [15:04:03]wFMCommunicate OK [15:04:03]wFMCommunicate request_size=11 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 0D 02 02 06 B1 F4 4A AB 1F E0 [15:04:03]Write to MH i2c: E2 0E 00 1B 03 80 0D 02 02 06 00 B1 F4 4A AB 1F E0 00 00 3D [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 03 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [15:04:03]RAPDU: 90 00 [15:04:03]wFMCommunicate OK [15:04:03]wFMCommunicate request_size=4 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 0D 03 02 [15:04:03]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 0B 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 0B 00 1C 03 00 D7 18 51 52 87 5A F0 3A 90 00 38 [15:04:03]RAPDU: D7 18 51 52 87 5A F0 3A 90 00 [15:04:03]wFMCommunicate OK [15:04:03]SAM_PROTO_SignData done [15:04:03]FM_MakeSignedData done [15:04:03]CreateOFDProtocolMessage [15:04:03]wFMCommunicate request_size=4 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 11 00 00 [15:04:03]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 17 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 EB [15:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:04:03]wFMCommunicate OK [15:04:03]CreateOFDProtocolMessage done [15:04:03]OFDSenderStorePacket 7717 [15:04:03]StoreOFDPacket docnum=7717 [15:04:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 6B E4 08 01 0D 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E2 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 25 1E 00 00 35 04 06 00 B1 F4 4A AB 1F E0 D7 18 51 52 87 5A F0 3A [15:04:03]CheckFolder [15:04:03]dirname=/storage/ofd_packets [15:04:03]CheckFolder done [15:04:03]ProducePacketName [15:04:03]name=ofd_packets/00007717 [15:04:03]NVStorageSaveData ofd_packets/00007717 [15:04:03]File name is /storage/ofd_packets/00007717 [15:04:03]Write 302 bytes [15:04:03]NVStorageSaveData done [15:04:03]OFDSenderStorePacket done [15:04:03]KKMCreateOFDPacket done [15:04:03]NVStorageSaveData kkm_last_timestamp [15:04:03]File name is /storage/kkm_last_timestamp [15:04:03]Write 4 bytes [15:04:03]NVStorageSaveData done [15:04:03]ExternCall_PrintAddStr [15:04:03]wPrintStart [15:04:03]Write to MH i2c: 01 00 00 1E 03 21 [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: 01 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: 01 07 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [15:04:03]RasterBufferAndPrint [15:04:03]line Счет N : (1)871823 [15:04:03]line ИНН: 02508201610067 [15:04:03]line Контрольно-Кассовый Чек [15:04:03]line ПРОДАЖА [15:04:03]line ТРК (МРК, ГНК) : 11 [15:04:03]line Товар: 2710194210 [15:04:03]line ДТ(л)-К-4 [15:04:03]line 13.130 * 76.20 [15:04:03]line = 1000.51 [15:04:03]line НДС 12% НСП 1% [15:04:03]line > о реализуемом товаре [15:04:03]line ОКРУГЛЕНИЕ: -0.51 [15:04:03]line ИТОГО: 1000.00 [15:04:03]line Внесено: 1000.00 [15:04:03]line СДАЧА: 0.00 [15:04:03]line НСП 1% : 8.85 [15:04:03]line НДС 12% : 106.25 [15:04:03]line Наличными: 1000.00 [15:04:03]line Безнал.: 0.00 [15:04:03]line Место: АЗС № 137 "Партнер Нефть" [15:04:03]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:04:03]line СНО: Общий режим [15:04:03]line Чек 115 22.09.2024 15:04 [15:04:03]line Смена: 70 ФФД: 1.0 [15:04:03]line ЗНМ: 0300000041 [15:04:03]line РНМ: 0000000000190446 [15:04:03]line Версия ККМ: v1.0 [15:04:03]line ФМ: 0000000002094258 [15:04:03]line ФД: 7717 [15:04:03]line ФПД: 195662782865376 [15:04:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150402&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7717&fm=195662782865376&tin=02508201610067®Number=0000000000190446&sum=100000 [15:04:03]written 0, free lines is 4095 [15:04:04]Write to MH i2c: 01 00 00 49 03 4C [15:04:04]Write i2c OK [15:04:04]MH_I2C_Read... [15:04:04]Read from MH i2c: 01 [15:04:04]MH_I2C_Read... [15:04:04]Read from MH i2c: 01 07 00 [15:04:04]MH_I2C_Read... [15:04:04]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 ED 0C 4C [15:04:04]RasterBufferAndPrint [15:04:04]line [15:04:04]line [15:04:04]line [15:04:04]line [15:04:04]line [15:04:04]written 0, free lines is 3324 [15:04:04]MH_Cut [15:04:04]Write to MH i2c: D1 01 00 50 03 01 25 [15:04:04]Write i2c OK [15:04:04]MH_I2C_Read... [15:04:04]Read from MH i2c: D1 [15:04:04]MH_I2C_Read... [15:04:04]Read from MH i2c: D1 01 00 [15:04:04]MH_I2C_Read... [15:04:04]Read from MH i2c: D1 01 00 50 03 00 24 [15:04:04]Write to MH i2c: 01 00 00 51 03 54 [15:04:04]Write i2c OK [15:04:04]MH_I2C_Read... [15:04:04]*** Cut start [15:04:04]*** Purtial cut [15:04:04]*** Stage 1: CUTSNS_PIN = 1 [15:04:05]Read from MH i2c: 01 [15:04:05]MH_I2C_Read... [15:04:05]*** Stop cut motor [15:04:05]*** Cut end [15:04:05]Read from MH i2c: 01 07 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [15:04:05]process_action close_receipt done [15:04:05]requested_data is exist [15:04:05]produce_requested_data [15:04:05]requested_item fm.sn is exist - process it [15:04:05]wFMCommunicate request_size=4 [15:04:05]MH_SAM_APDU [15:04:05]CAPDU: 80 11 00 00 [15:04:05]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [15:04:05]Write i2c OK [15:04:05]MH_I2C_Read... [15:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:05]Read from MH i2c: E2 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 17 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 20 [15:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:04:05]wFMCommunicate OK [15:04:05]requested_item fd.num is exist - process it [15:04:05]SAM_PROTO_GetFieldsCounters [15:04:05]wFMCommunicate request_size=4 [15:04:05]MH_SAM_APDU [15:04:05]CAPDU: 80 13 00 00 [15:04:05]Write to MH i2c: E2 08 00 53 03 80 13 00 00 00 00 00 00 D2 [15:04:05]Write i2c OK [15:04:05]MH_I2C_Read... [15:04:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:05]Read from MH i2c: E2 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 62 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 62 00 53 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 25 1E 00 00 0E 04 04 00 46 00 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 D2 [15:04:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 25 1E 00 00 0E 04 04 00 46 00 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 [15:04:05]wFMCommunicate OK [15:04:05]SAM_PROTO_GetFieldsCounters done [15:04:05]requested_item shift.num is exist - process it [15:04:05]requested_item shift.opened is exist - process it [15:04:05]req_shift_opened [15:04:05]FM_GetShiftState [15:04:05]SAM_PROTO_GetShiftState [15:04:05]wFMCommunicate request_size=4 [15:04:05]MH_SAM_APDU [15:04:05]CAPDU: 80 13 01 00 [15:04:05]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [15:04:05]Write i2c OK [15:04:05]MH_I2C_Read... [15:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:05]Read from MH i2c: E2 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 0E 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 97 [15:04:05]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:04:05]wFMCommunicate OK [15:04:05]SAM_PROTO_GetShiftState done [15:04:05]FM_GetShiftState done [15:04:05]req_shift_opened done [15:04:05]requested_item shift.open_date is exist - process it [15:04:05]req_shift_open_date [15:04:05]req_shift_open_date done [15:04:05]produce_requested_data done [15:04:05]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7717,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:04:05]process_action_free close_receipt [15:04:05]json_value_free [15:04:05]json_value_free done [15:04:05]process_json_proto returns [15:04:05]Send response to host [15:04:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7717,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:04:05]free response buf [15:04:05]execute_script done [15:04:05]execute_script returns [15:04:05]free content buf [15:04:05]Sock 10.Close socket [15:04:05]Sock 10.Thread stoped [15:04:08]recv_with_timeout no data received [15:04:18]Connected sock=9 [15:04:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 2F 62 07 01 63 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C9 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 24 1E 00 00 35 04 06 00 53 28 A1 5B 37 E3 26 86 E1 65 A5 8D 99 00 [15:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 57 E9 47 00 56 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 24 1E 00 00 F4 03 04 00 AF DC EF 66 B6 04 01 00 00 C9 FF 24 BE 9B 50 84 89 [15:04:21]CommunicateWithHost err = 0 [15:04:21]CheckOFDResponse [15:04:21]1017 (14) - 77093643461234 [15:04:21]1041 (16) - 0000000002094258 [15:04:21]1040 (4) - 7716 [15:04:21]1012 (4) - 22.09.2024 09:00 [15:04:21]1206 (1) - 0 [15:04:21]OFD Sender: Remove packet 7716 [15:04:21]ProducePacketName [15:04:21]name=ofd_packets/00007716 [15:04:21]NVStorageDeleteData [15:04:22]OFD Sender: Processing packet 7717 [packets to send 51, broken 50] [15:04:22]ProducePacketName [15:04:22]name=ofd_packets/00007717 [15:04:22]OFD Sender: To server: pG, [15:04:22]CommunicateWithHost lk.salyk.kg:30040 [15:04:22]ConnectInit lk.salyk.kg [15:04:25]recv_with_timeout no data received [15:04:27]ConnectInit Can't take IP for lk.salyk.kg [15:04:27]CommunicateWithHost connect error [15:04:27]CommunicateWithHost err = -1 [15:04:27]OFD Sender: Server communicate error [15:04:27]OFD Sender: Processing packet 7717 [packets to send 51, broken 50] [15:04:27]ProducePacketName [15:04:27]name=ofd_packets/00007717 [15:04:27]OFD Sender: To server: pG, [15:04:27]CommunicateWithHost lk.salyk.kg:30040 [15:04:27]ConnectInit lk.salyk.kg [15:04:32]ConnectInit Can't take IP for lk.salyk.kg [15:04:32]CommunicateWithHost connect error [15:04:32]CommunicateWithHost err = -1 [15:04:32]OFD Sender: Server communicate error [15:04:37]OFD Sender: Processing packet 7717 [packets to send 51, broken 50] [15:04:37]ProducePacketName [15:04:37]name=ofd_packets/00007717 [15:04:37]OFD Sender: To server: pG, [15:04:37]CommunicateWithHost lk.salyk.kg:30040 [15:04:37]ConnectInit lk.salyk.kg [15:04:43]recv_with_timeout no data received [15:04:58]Connected sock=8 [15:04:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 6B E4 08 01 0D 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E2 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 25 1E 00 00 35 04 06 00 B1 F4 4A AB 1F E0 D7 18 51 52 87 5A F0 3A [15:05:03]recv_with_timeout no data received [15:05:03]CommunicateWithHost answer receiving error [15:05:03]CommunicateWithHost err = -3 [15:05:03]OFD Sender: Server communicate error [15:05:03]recv_with_timeout no data received [15:05:08]OFD Sender: Processing packet 7717 [packets to send 51, broken 50] [15:05:08]ProducePacketName [15:05:08]name=ofd_packets/00007717 [15:05:08]OFD Sender: To server: pG, [15:05:08]CommunicateWithHost lk.salyk.kg:30040 [15:05:08]ConnectInit lk.salyk.kg [15:05:13]ConnectInit Can't take IP for lk.salyk.kg [15:05:13]CommunicateWithHost connect error [15:05:13]CommunicateWithHost err = -1 [15:05:13]OFD Sender: Server communicate error [15:05:18]OFD Sender: Processing packet 7717 [packets to send 51, broken 50] [15:05:18]ProducePacketName [15:05:18]name=ofd_packets/00007717 [15:05:18]OFD Sender: To server: pG, [15:05:18]CommunicateWithHost lk.salyk.kg:30040 [15:05:18]ConnectInit lk.salyk.kg [15:05:20]Connected sock=8 [15:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 6B E4 08 01 0D 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E2 31 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 25 1E 00 00 35 04 06 00 B1 F4 4A AB 1F E0 D7 18 51 52 87 5A F0 3A [15:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 3D 9B 47 00 0C 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 25 1E 00 00 F4 03 04 00 EC DC EF 66 B6 04 01 00 00 26 B7 9F 12 61 9C BA F3 [15:05:22]CommunicateWithHost err = 0 [15:05:22]CheckOFDResponse [15:05:22]1017 (14) - 77093643461234 [15:05:22]1041 (16) - 0000000002094258 [15:05:22]1040 (4) - 7717 [15:05:22]1012 (4) - 22.09.2024 09:01 [15:05:22]1206 (1) - 0 [15:05:22]OFD Sender: Remove packet 7717 [15:05:22]ProducePacketName [15:05:22]name=ofd_packets/00007717 [15:05:22]NVStorageDeleteData [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:45]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:19]recv_with_timeout no data received [15:06:22]OFD Sender: No OFD packet to send [15:06:22]accept exits with 12 [15:06:22]New connection [15:06:22]New thread 3066535268 created [15:06:22]Thread 3066678628 joined [15:06:22]Waiting for new connection... [15:06:22] Sock 12.Parse request [15:06:22]Sock 12.Check first char [15:06:22]Sock 12.First char is OK [15:06:22]request: POST /json_proto HTTP/1.0 [15:06:22]Method: POST [15:06:22]URL: /json_proto [15:06:22]Method is POST - this is cgi request [15:06:22]url: /json_proto [15:06:22]query_string will be loaded in cgi processing [15:06:22]execute_cgi json_proto POST (null) [15:06:22]execute_cgi path=json_proto method=POST [15:06:22]POST find Content-Length [15:06:22]Host: 172.17.47.195:8080 [15:06:22]Content-Length: 687 [15:06:22]Content-Type: application/json [15:06:22] [15:06:22]POST finish read [15:06:22]Found Content-Length = 687 [15:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:22]execute_script... [15:06: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)871825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:22]POST & json_proto [15:06:22]process_json_proto [15:06:22]json parsed OK: [15:06:22]protocol is kg_v1.0 [15:06:22]action value=close_receipt [15:06:22]process_action close_receipt [15:06:22]cmd_close_receipt [15:06:22]MH_GetDate [15:06:22]Write to MH i2c: F0 00 00 55 03 47 [15:06:22]Write i2c OK [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: F0 [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: F0 09 00 [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: F0 09 00 55 03 00 6F 32 F0 66 96 2E 95 66 06 [15:06:22]GetLastDocTimeStamp 1727017442 [15:06:22]current date 1727017583 [15:06:22]FM_GetShiftState [15:06:22]SAM_PROTO_GetShiftState [15:06:22]wFMCommunicate request_size=4 [15:06:22]MH_SAM_APDU [15:06:22]CAPDU: 80 13 01 00 [15:06:22]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [15:06:22]Write i2c OK [15:06:22]MH_I2C_Read... [15:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:22]Read from MH i2c: E2 [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: E2 0E 00 [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 99 [15:06:22]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:06:22]wFMCommunicate OK [15:06:22]SAM_PROTO_GetShiftState done [15:06:22]FM_GetShiftState done [15:06:22]opened in 1726964224 [15:06:22]opened+sec_in_day 1727050624 [15:06:22]quantity*price = 100050 [15:06:22]sum+1 = 100052 [15:06:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 116 22.09.2024 15:06 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7718 ФПД: 41224415958756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150623&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7718&fm=41224415958756&tin=02508201610067®Number=0000000000190446&sum=100000 [15:06:24]StoreToDocumentArchive [15:06:24]shift 70 fd 7718 [15:06:24]save to /storage/0070/doc_00007718 [15:06:24]save last doc name /storage/0070/doc_00007718 to /storage/kkm_last_doc_name [15:06:24]save OK [15:06:24]Clear old archive folders... [15:06:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:06:24]tlvbuf is 01D52DB0 [15:06:24]SAM_PROTO_ClearQueue [15:06:24]wFMCommunicate request_size=4 [15:06:24]MH_SAM_APDU [15:06:24]CAPDU: 80 09 00 00 [15:06:24]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:24]Read from MH i2c: E2 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 03 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [15:06:24]RAPDU: 90 00 [15:06:24]wFMCommunicate OK [15:06:24]SAM_PROTO_ClearQueue done [15:06:24]KKMCreateOFDPacket [15:06:24]OFDProtocolAddRootSTLVToBuf [15:06:24]FM_MakeSignedData [15:06:24]FM_MakeSignedData [15:06:24]SAM_PROTO_SignData [15:06:24]wFMCommunicate request_size=4 [15:06:24]MH_SAM_APDU [15:06:24]CAPDU: 80 0D 01 02 [15:06:24]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:24]Read from MH i2c: E2 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 03 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [15:06:24]RAPDU: 90 00 [15:06:24]wFMCommunicate OK [15:06:24]wFMCommunicate request_size=255 [15:06:24]MH_SAM_APDU [15:06:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 74 00 00 00 F4 03 04 00 6F 32 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 26 1E 00 00 35 04 06 00 [15:06:24]Write to MH i2c: E2 02 01 65 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 74 00 00 00 F4 03 04 00 6F 32 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 26 1E 00 00 35 04 06 00 00 00 3E [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:24]Read from MH i2c: E2 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 03 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [15:06:24]RAPDU: 90 00 [15:06:24]wFMCommunicate OK [15:06:24]wFMCommunicate request_size=11 [15:06:24]MH_SAM_APDU [15:06:24]CAPDU: 80 0D 02 02 06 25 7E 4E AB 56 E4 [15:06:24]Write to MH i2c: E2 0E 00 66 03 80 0D 02 02 06 00 25 7E 4E AB 56 E4 00 00 C5 [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:24]Read from MH i2c: E2 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 03 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [15:06:24]RAPDU: 90 00 [15:06:24]wFMCommunicate OK [15:06:24]wFMCommunicate request_size=4 [15:06:24]MH_SAM_APDU [15:06:24]CAPDU: 80 0D 03 02 [15:06:24]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:24]Read from MH i2c: E2 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 0B 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 0B 00 67 03 00 D3 AF C6 D8 CB 8A 92 28 90 00 15 [15:06:24]RAPDU: D3 AF C6 D8 CB 8A 92 28 90 00 [15:06:24]wFMCommunicate OK [15:06:24]SAM_PROTO_SignData done [15:06:24]FM_MakeSignedData done [15:06:24]CreateOFDProtocolMessage [15:06:24]wFMCommunicate request_size=4 [15:06:24]MH_SAM_APDU [15:06:24]CAPDU: 80 11 00 00 [15:06:24]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:24]Read from MH i2c: E2 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 17 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 36 [15:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:06:24]wFMCommunicate OK [15:06:24]CreateOFDProtocolMessage done [15:06:24]OFDSenderStorePacket 7718 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005724E0 (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: 5965237+1721052822=1727018059 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 4C 34 F0 66 96 2E 95 66 94 [15:14:20]Current date/time: 22.09.2024 15:14 [15:14:20]FM_Init [15:14:20]wFMConnect [15:14:20]MH_SAM_On [15:14:20]Write to MH i2c: E0 00 00 08 00 E7 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_init finished! [15:14:20]*** atr: [15:14:20]*** 0F 3B D5 18 FF 81 91 FE [15:14:20]*** 1F C3 80 73 C8 21 10 0A [15:14:20]*** 00 00 00 00 00 00 00 00 [15:14:20]*** 00 00 00 00 00 00 00 00 [15:14:20]*** 00 00 00 00 00 00 00 00 [15:14:20]*** 00 00 00 00 00 00 00 00 [15:14:20]*** 00 00 00 00 00 00 00 00 [15:14:20]*** 00 00 00 00 00 00 00 00 [15:14:20]Read from MH i2c: E0 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E0 10 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [15:14:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:14:20]wFMCommunicate request_size=10 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:14:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 03 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:14:20]RAPDU: 90 00 [15:14:20]wFMCommunicate OK [15:14:20]wFMCommunicate request_size=4 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 11 00 00 [15:14:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 17 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [15:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:14:20]wFMCommunicate OK [15:14:20]Detected FM SN is 0000000002094258 [15:14:20]Stored FM SN is 0000000002094258 [15:14:20]wFMCommunicate request_size=9 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 16 00 00 04 BC C2 00 00 [15:14:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 03 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:14:20]RAPDU: 90 00 [15:14:20]wFMCommunicate OK [15:14:20]FM PIN OK [15:14:20]wFMCommunicate request_size=8 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 14 04 00 03 02 00 01 [15:14:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:14:20]Read from MH i2c: E2 03 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:14:20]RAPDU: 90 00 [15:14:20]wFMCommunicate OK [15:14:20]wFMCommunicate request_size=13 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:14:20]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 03 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:14:20]RAPDU: 90 00 [15:14:20]wFMCommunicate OK [15:14:20]wFMCommunicate request_size=4 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 11 00 00 [15:14:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 17 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [15:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:14:20]wFMCommunicate OK [15:14:20]DocumentArchiveInit [15:14:20]Start Httpd... [15:14:20]Httpd thread 3066973540 created [15:14:20]Write to MH i2c: 01 00 00 0F 00 0F [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: 01 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: 01 07 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:14:20]MH Int Process started [15:14:20]Allocated Socket 8 [15:14:20]Bind OK [15:14:20]Listen OK [15:14:20]httpd running on port 8080 [15:14:20]Waiting for new connection... [15:14:20]OFD Sender: Processing packet 7719 [packets to send 51, broken 50] [15:14:20]ProducePacketName [15:14:20]name=ofd_packets/00007719 [15:14:20]OFD Sender: To server: pG, [15:14:20]CommunicateWithHost lk.salyk.kg:30040 [15:14:20]ConnectInit lk.salyk.kg [15:14:21]accept exits with 9 [15:14:21]New connection [15:14:21]New thread 3066686820 created [15:14:21]Waiting for new connection... [15:14:21] Sock 9.Parse request [15:14:21]Sock 9.Check first char [15:14:21]Sock 9.First char is OK [15:14:21]request: POST /json_proto HTTP/1.0 [15:14:21]Method: POST [15:14:21]URL: /json_proto [15:14:21]Method is POST - this is cgi request [15:14:21]url: /json_proto [15:14:21]query_string will be loaded in cgi processing [15:14:21]execute_cgi json_proto POST (null) [15:14:21]execute_cgi path=json_proto method=POST [15:14:21]POST find Content-Length [15:14:21]Host: 172.17.47.195:8080 [15:14:21]Content-Length: 215 [15:14:21]Content-Type: application/json [15:14:21] [15:14:21]POST finish read [15:14:21]Found Content-Length = 215 [15:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:21]execute_script... [15:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:21]POST & json_proto [15:14:21]process_json_proto [15:14:21]json parsed OK: [15:14:21]protocol is kg_v1.0 [15:14:21]action value=get_value [15:14:21]process_action get_value [15:14:21]cmd_get_value [15:14:21]process_action get_value done [15:14:21]requested_data is exist [15:14:21]produce_requested_data [15:14:21]requested_item kkm.sn is exist - process it [15:14:21]requested_item kkm.ver is exist - process it [15:14:21]requested_item fm.sn is exist - process it [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 11 00 00 [15:14:21]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 17 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [15:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:14:21]wFMCommunicate OK [15:14:21]requested_item fd.num is exist - process it [15:14:21]SAM_PROTO_GetFieldsCounters [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 00 00 [15:14:21]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 62 00 [15:14:21]MH_I2C_Read... [15:14:21]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 27 1E 00 00 0E 04 04 00 46 00 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 95 [15:14:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 27 1E 00 00 0E 04 04 00 46 00 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 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetFieldsCounters done [15:14:21]requested_item shift.num is exist - process it [15:14:21]requested_item shift.opened is exist - process it [15:14:21]req_shift_opened [15:14:21]FM_GetShiftState [15:14:21]SAM_PROTO_GetShiftState [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 01 00 [15:14:21]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [15:14:21]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetShiftState done [15:14:21]FM_GetShiftState done [15:14:21]req_shift_opened done [15:14:21]requested_item shift.open_date is exist - process it [15:14:21]req_shift_open_date [15:14:21]req_shift_open_date done [15:14:21]produce_requested_data done [15:14:21]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7719,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:14:21]process_action_free get_value [15:14:21]json_value_free [15:14:21]json_value_free done [15:14:21]process_json_proto returns [15:14:21]Send response to host [15:14:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7719,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:14:21]free response buf [15:14:21]execute_script done [15:14:21]execute_script returns [15:14:21]free content buf [15:14:21]Sock 9.Close socket [15:14:21]Sock 9.Thread stoped [15:14:21]accept exits with 11 [15:14:21]New connection [15:14:21]New thread 3066543460 created [15:14:21]Thread 3066686820 joined [15:14:21]Waiting for new connection... [15:14:21] Sock 11.Parse request [15:14:21]Sock 11.Check first char [15:14:21]Sock 11.First char is OK [15:14:21]request: POST /json_proto HTTP/1.0 [15:14:21]Method: POST [15:14:21]URL: /json_proto [15:14:21]Method is POST - this is cgi request [15:14:21]url: /json_proto [15:14:21]query_string will be loaded in cgi processing [15:14:21]execute_cgi json_proto POST (null) [15:14:21]execute_cgi path=json_proto method=POST [15:14:21]POST find Content-Length [15:14:21]Host: 172.17.47.195:8080 [15:14:21]Content-Length: 331 [15:14:21]Content-Type: application/json [15:14:21] [15:14:21]POST finish read [15:14:21]Found Content-Length = 331 [15:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:14:21]execute_script... [15:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:14:21]POST & json_proto [15:14:21]process_json_proto [15:14:21]json parsed OK: [15:14:21]protocol is kg_v1.0 [15:14:21]action value=get_value [15:14:21]process_action get_value [15:14:21]cmd_get_value [15:14:21]process_action get_value done [15:14:21]requested_data is exist [15:14:21]produce_requested_data [15:14:22]requested_item fm.sale.total is exist - process it [15:14:22]SAM_PROTO_GetFMData [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 13 03 00 [15:14:22]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 FD 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 9B 1D 00 00 69 04 A0 00 6F 04 04 00 6E 1D 00 00 B1 04 04 00 1B 9C 0A 31 70 04 04 00 BC BE 1F 29 72 04 04 00 5F DD EA 07 00 04 7C 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 62 88 35 05 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 3B 20 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 AF [15:14:22]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 9B 1D 00 00 69 04 A0 00 6F 04 04 00 6E 1D 00 00 B1 04 04 00 1B 9C 0A 31 70 04 04 00 BC BE 1F 29 72 04 04 00 5F DD EA 07 00 04 7C 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 62 88 35 05 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 3B 20 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [15:14:22]wFMCommunicate OK [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 17 00 00 [15:14:22]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 FD 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [15:14:22]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [15:14:22]wFMCommunicate OK [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 17 00 00 [15:14:22]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 FD 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [15:14:23]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:14:23]wFMCommunicate OK [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 17 00 00 [15:14:23]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 FD 00 [15:14:23]MH_I2C_Read... [15:14:23]Connected sock=7 [15:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 0F 7E 07 01 9D EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 74 32 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 27 1E 00 00 35 04 06 00 96 5D 38 FF 9D AA 32 A5 6A 17 2D 3E 7B 04 [15:14:23]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [15:14:23]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:14:23]wFMCommunicate OK [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 17 00 00 [15:14:23]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 DE 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [15:14:23]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:14:23]wFMCommunicate OK [15:14:23]SAM_PROTO_GetFMData done [15:14:23]requested_item fm.sale_refund.total is exist - process it [15:14:23]requested_item fm.buy.total is exist - process it [15:14:23]requested_item shift.sale.total is exist - process it [15:14:23]SAM_PROTO_GetShiftData [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 13 02 00 [15:14:23]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 FD 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 75 00 00 00 69 04 9C 00 6F 04 04 00 74 00 00 00 B1 04 03 00 1F CA B2 70 04 03 00 4C BD A5 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 29 FE 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 25 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 A2 [15:14:24]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 75 00 00 00 69 04 9C 00 6F 04 04 00 74 00 00 00 B1 04 03 00 1F CA B2 70 04 03 00 4C BD A5 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 29 FE 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 25 95 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 17 00 00 [15:14:24]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 FD 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [15:14:24]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 17 00 00 [15:14:24]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 FD 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [15:14:24]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 17 00 00 [15:14:24]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 FD 51 47 00 72 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 32 30 39 34 32 35 38 10 04 04 00 27 1E 00 00 F4 03 04 00 0C DF EF 66 B6 04 01 00 00 6B 35 CF 1A 14 AA 48 A2 [15:14:25]CommunicateWithHost err = 0 [15:14:25]CheckOFDResponse [15:14:25]1017 (14) - 77093643461234 [15:14:25]1041 (16) - 0000000002094258 [15:14:25]1040 (4) - 7719 [15:14:25]1012 (4) - 22.09.2024 09:10 [15:14:25]1206 (1) - 0 [15:14:25]OFD Sender: Remove packet 7719 [15:14:25]ProducePacketName [15:14:25]name=ofd_packets/00007719 [15:14:25]NVStorageDeleteData [15:14:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:25]Read from MH i2c: E2 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: E2 FD 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [15:14:25]RAPDU: 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 90 00 [15:14:25]wFMCommunicate OK [15:14:25]wFMCommunicate request_size=4 [15:14:25]MH_SAM_APDU [15:14:25]CAPDU: 80 17 00 00 [15:14:25]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]OFD Sender: No OFD packet to send [15:14:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [15:14:25]Read from MH i2c: E2 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: E2 D4 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [15:14:25]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:14:25]wFMCommunicate OK [15:14:25]SAM_PROTO_GetShiftData done [15:14:25]requested_item shift.sale.total_cash is exist - process it [15:14:25]requested_item shift.sale_refund.total is exist - process it [15:14:25]requested_item shift.sale_refund.total_cash is exist - process it [15:14:25]requested_item shift.buy.total is exist - process it [15:14:25]requested_item shift.buy.total_cash is exist - process it [15:14:25]produce_requested_data done [15:14:25]produce_requested_data return {"fm.sale.total":8227789.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":117171.51,"shift.sale.total_cash":108619.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:14:25]process_action_free get_value [15:14:25]json_value_free [15:14:25]json_value_free done [15:14:25]process_json_proto returns [15:14:25]Send response to host [15:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8227789.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":117171.51,"shift.sale.total_cash":108619.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:14:25]free response buf [15:14:25]execute_script done [15:14:25]execute_script returns [15:14:25]free content buf [15:14:25]Sock 11.Close socket [15:14:25]Sock 11.Thread stoped [15:14:29]accept exits with 9 [15:14:29]New connection [15:14:29]New thread 3066686820 created [15:14:29]Thread 3066543460 joined [15:14:29]Waiting for new connection... [15:14:29] Sock 9.Parse request [15:14:29]Sock 9.Check first char [15:14:29]Sock 9.First char is OK [15:14:29]request: POST /json_proto HTTP/1.0 [15:14:29]Method: POST [15:14:29]URL: /json_proto [15:14:29]Method is POST - this is cgi request [15:14:29]url: /json_proto [15:14:29]query_string will be loaded in cgi processing [15:14:29]execute_cgi json_proto POST (null) [15:14:29]execute_cgi path=json_proto method=POST [15:14:29]POST find Content-Length [15:14:29]Host: 172.17.47.195:8080 [15:14:29]Content-Length: 687 [15:14:29]Content-Type: application/json [15:14:29] [15:14:29]POST finish read [15:14:29]Found Content-Length = 687 [15:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:29]execute_script... [15:14: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)871824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:29]POST & json_proto [15:14:29]process_json_proto [15:14:29]json parsed OK: [15:14:29]protocol is kg_v1.0 [15:14:29]action value=close_receipt [15:14:29]process_action close_receipt [15:14:29]cmd_close_receipt [15:14:29]MH_GetDate [15:14:29]Write to MH i2c: F0 00 00 1D 00 0C [15:14:29]Write i2c OK [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: F0 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: F0 09 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: F0 09 00 1D 00 00 56 34 F0 66 96 2E 95 66 B4 [15:14:30]GetLastDocTimeStamp 1727017588 [15:14:30]current date 1727018070 [15:14:30]FM_GetShiftState [15:14:30]SAM_PROTO_GetShiftState [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 13 01 00 [15:14:30]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 0E 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [15:14:30]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:14:30]wFMCommunicate OK [15:14:30]SAM_PROTO_GetShiftState done [15:14:30]FM_GetShiftState done [15:14:30]opened in 1726964224 [15:14:30]opened+sec_in_day 1727050624 [15:14:30]quantity*price = 200025 [15:14:30]sum+1 = 200026 [15:14:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 118 22.09.2024 15:14 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7720 ФПД: 140580286830715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151430&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7720&fm=140580286830715&tin=02508201610067®Number=0000000000190446&sum=200000 [15:14:31]StoreToDocumentArchive [15:14:31]shift 70 fd 7720 [15:14:31]save to /storage/0070/doc_00007720 [15:14:31]save last doc name /storage/0070/doc_00007720 to /storage/kkm_last_doc_name [15:14:31]save OK [15:14:31]Clear old archive folders... [15:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:14:31]tlvbuf is 01E1A7C0 [15:14:31]SAM_PROTO_ClearQueue [15:14:31]wFMCommunicate request_size=4 [15:14:31]MH_SAM_APDU [15:14:31]CAPDU: 80 09 00 00 [15:14:31]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:31]Read from MH i2c: E2 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 03 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:14:31]RAPDU: 90 00 [15:14:31]wFMCommunicate OK [15:14:31]SAM_PROTO_ClearQueue done [15:14:31]KKMCreateOFDPacket [15:14:31]OFDProtocolAddRootSTLVToBuf [15:14:31]FM_MakeSignedData [15:14:31]FM_MakeSignedData [15:14:31]SAM_PROTO_SignData [15:14:31]wFMCommunicate request_size=4 [15:14:31]MH_SAM_APDU [15:14:31]CAPDU: 80 0D 01 02 [15:14:31]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:31]Read from MH i2c: E2 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 03 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:14:31]RAPDU: 90 00 [15:14:31]wFMCommunicate OK [15:14:31]wFMCommunicate request_size=255 [15:14:31]MH_SAM_APDU [15:14: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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 56 34 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 28 1E 00 00 35 04 06 00 [15:14:31]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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 56 34 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 28 1E 00 00 35 04 06 00 00 00 DE [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:31]Read from MH i2c: E2 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 03 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:14:31]RAPDU: 90 00 [15:14:31]wFMCommunicate OK [15:14:31]wFMCommunicate request_size=11 [15:14:31]MH_SAM_APDU [15:14:31]CAPDU: 80 0D 02 02 06 7F DB 66 0F 18 7B [15:14:31]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 7F DB 66 0F 18 7B 00 00 16 [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:31]Read from MH i2c: E2 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 03 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:14:31]RAPDU: 90 00 [15:14:31]wFMCommunicate OK [15:14:31]wFMCommunicate request_size=4 [15:14:31]MH_SAM_APDU [15:14:31]CAPDU: 80 0D 03 02 [15:14:31]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:31]Read from MH i2c: E2 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 0B 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 0B 00 2F 00 00 51 A3 18 60 17 68 FC 4D 90 00 DF [15:14:31]RAPDU: 51 A3 18 60 17 68 FC 4D 90 00 [15:14:31]wFMCommunicate OK [15:14:31]SAM_PROTO_SignData done [15:14:31]FM_MakeSignedData done [15:14:31]CreateOFDProtocolMessage [15:14:31]wFMCommunicate request_size=4 [15:14:31]MH_SAM_APDU [15:14:31]CAPDU: 80 11 00 00 [15:14:31]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:31]Read from MH i2c: E2 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 17 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [15:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:14:31]wFMCommunicate OK [15:14:31]CreateOFDProtocolMessage done [15:14:31]OFDSenderStorePacket 7720 [15:14:31]StoreOFDPacket docnum=7720 [15:14:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 E1 C2 08 01 BC EC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 56 34 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 28 1E 00 00 35 04 06 00 7F DB 66 0F 18 7B 51 A3 18 60 17 68 FC 4D [15:14:31]CheckFolder [15:14:31]dirname=/storage/ofd_packets [15:14:31]CheckFolder done [15:14:31]ProducePacketName [15:14:31]name=ofd_packets/00007720 [15:14:31]NVStorageSaveData ofd_packets/00007720 [15:14:31]File name is /storage/ofd_packets/00007720 [15:14:31]Write 302 bytes [15:14:31]NVStorageSaveData done [15:14:31]OFDSenderStorePacket done [15:14:31]KKMCreateOFDPacket done [15:14:31]NVStorageSaveData kkm_last_timestamp [15:14:31]File name is /storage/kkm_last_timestamp [15:14:31]Write 4 bytes [15:14:31]NVStorageSaveData done [15:14:31]ExternCall_PrintAddStr [15:14:31]wPrintStart [15:14:31]Write to MH i2c: 01 00 00 31 00 31 [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 07 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:14:31]RasterBufferAndPrint [15:14:31]line Счет N : (1)871824 [15:14:31]line ИНН: 02508201610067 [15:14:31]line Контрольно-Кассовый Чек [15:14:31]line ПРОДАЖА [15:14:31]line ТРК (МРК, ГНК) : 34 [15:14:31]line Товар: 2710194210 [15:14:31]line ДТ(л)-К-4 [15:14:31]line 26.250 * 76.20 [15:14:31]line = 2000.25 [15:14:31]line НДС 12% НСП 1% [15:14:31]line > о реализуемом товаре [15:14:31]line ОКРУГЛЕНИЕ: -0.25 [15:14:31]line ИТОГО: 2000.00 [15:14:31]line Внесено: 2000.00 [15:14:31]line СДАЧА: 0.00 [15:14:31]line НСП 1% : 17.70 [15:14:31]line НДС 12% : 212.42 [15:14:31]line Наличными: 2000.00 [15:14:31]line Безнал.: 0.00 [15:14:31]line Место: АЗС № 137 "Партнер Нефть" [15:14:31]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:14:31]line СНО: Общий режим [15:14:31]line Чек 118 22.09.2024 15:14 [15:14:31]line Смена: 70 ФФД: 1.0 [15:14:31]line ЗНМ: 0300000041 [15:14:31]line РНМ: 0000000000190446 [15:14:31]line Версия ККМ: v1.0 [15:14:31]line ФМ: 0000000002094258 [15:14:31]line ФД: 7720 [15:14:31]line ФПД: 140580286830715 [15:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151430&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7720&fm=140580286830715&tin=02508201610067®Number=0000000000190446&sum=200000 [15:14:31]written 0, free lines is 4095 [15:14:31]OFD Sender: Processing packet 7720 [packets to send 51, broken 50] [15:14:31]ProducePacketName [15:14:31]name=ofd_packets/00007720 [15:14:31]OFD Sender: To server: pG, [15:14:31]CommunicateWithHost lk.salyk.kg:30040 [15:14:31]ConnectInit lk.salyk.kg [15:14:32]Write to MH i2c: 01 00 00 5C 00 5C [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: 01 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: 01 07 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 0D 0D 7D [15:14:32]RasterBufferAndPrint [15:14:32]line [15:14:32]line [15:14:32]line [15:14:32]line [15:14:32]line [15:14:32]written 0, free lines is 3362 [15:14:32]MH_Cut [15:14:32]Write to MH i2c: D1 01 00 63 00 01 35 [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: D1 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: D1 01 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: D1 01 00 63 00 00 34 [15:14:32]Write to MH i2c: 01 00 00 64 00 64 [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]Connected sock=10 [15:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 E1 C2 08 01 BC EC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 56 34 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 28 1E 00 00 35 04 06 00 7F DB 66 0F 18 7B 51 A3 18 60 17 68 FC 4D [15:14:33]*** Cut start [15:14:33]*** Purtial cut [15:14:33]*** Stage 1: CUTSNS_PIN = 1 [15:14:33]Read from MH i2c: 01 [15:14:33]MH_I2C_Read... [15:14:33]*** Stop cut motor [15:14:33]*** Cut end [15:14:33]Read from MH i2c: 01 07 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [15:14:33]process_action close_receipt done [15:14:33]requested_data is exist [15:14:33]produce_requested_data [15:14:33]requested_item fm.sn is exist - process it [15:14:33]wFMCommunicate request_size=4 [15:14:33]MH_SAM_APDU [15:14:33]CAPDU: 80 11 00 00 [15:14:33]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 17 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [15:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:14:33]wFMCommunicate OK [15:14:33]requested_item fd.num is exist - process it [15:14:33]SAM_PROTO_GetFieldsCounters [15:14:33]wFMCommunicate request_size=4 [15:14:33]MH_SAM_APDU [15:14:33]CAPDU: 80 13 00 00 [15:14:33]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 62 00 [15:14:33]MH_I2C_Read... [15:14:33]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 28 1E 00 00 0E 04 04 00 46 00 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 EE [15:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 28 1E 00 00 0E 04 04 00 46 00 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 [15:14:33]wFMCommunicate OK [15:14:33]SAM_PROTO_GetFieldsCounters done [15:14:33]requested_item shift.num is exist - process it [15:14:33]requested_item shift.opened is exist - process it [15:14:33]req_shift_opened [15:14:33]FM_GetShiftState [15:14:33]SAM_PROTO_GetShiftState [15:14:33]wFMCommunicate request_size=4 [15:14:33]MH_SAM_APDU [15:14:33]CAPDU: 80 13 01 00 [15:14:33]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 0E 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [15:14:33]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:14:33]wFMCommunicate OK [15:14:33]SAM_PROTO_GetShiftState done [15:14:33]FM_GetShiftState done [15:14:33]req_shift_opened done [15:14:33]requested_item shift.open_date is exist - process it [15:14:33]req_shift_open_date [15:14:33]req_shift_open_date done [15:14:33]produce_requested_data done [15:14:33]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7720,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:14:33]process_action_free close_receipt [15:14:33]json_value_free [15:14:33]json_value_free done [15:14:33]process_json_proto returns [15:14:33]Send response to host [15:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7720,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:14:33]free response buf [15:14:33]execute_script done [15:14:33]execute_script returns [15:14:33]free content buf [15:14:33]Sock 9.Close socket [15:14:33]Sock 9.Thread stoped [15:14:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F9 06 47 00 F2 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 28 1E 00 00 F4 03 04 00 16 DF EF 66 B6 04 01 00 00 3A AF 2F 14 02 20 D5 A1 [15:14:36]CommunicateWithHost err = 0 [15:14:36]CheckOFDResponse [15:14:36]1017 (14) - 77093643461234 [15:14:36]1041 (16) - 0000000002094258 [15:14:36]1040 (4) - 7720 [15:14:36]1012 (4) - 22.09.2024 09:10 [15:14:36]1206 (1) - 0 [15:14:36]OFD Sender: Remove packet 7720 [15:14:36]ProducePacketName [15:14:36]name=ofd_packets/00007720 [15:14:36]NVStorageDeleteData [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:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:14]accept exits with 7 [15:16:14]New connection [15:16:14]New thread 3066543460 created [15:16:14]Thread 3066686820 joined [15:16:14]Waiting for new connection... [15:16:14] Sock 7.Parse request [15:16:14]Sock 7.Check first char [15:16:14]Sock 7.First char is OK [15:16:14]request: POST /json_proto HTTP/1.0 [15:16:14]Method: POST [15:16:14]URL: /json_proto [15:16:14]Method is POST - this is cgi request [15:16:14]url: /json_proto [15:16:14]query_string will be loaded in cgi processing [15:16:14]execute_cgi json_proto POST (null) [15:16:14]execute_cgi path=json_proto method=POST [15:16:14]POST find Content-Length [15:16:14]Host: 172.17.47.195:8080 [15:16:14]Content-Length: 683 [15:16:14]Content-Type: application/json [15:16:14] [15:16:14]POST finish read [15:16:14]Found Content-Length = 683 [15:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 11.240, "sum" : 856.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:14]execute_script... [15:16:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 11.240, "sum" : 856.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:14]POST & json_proto [15:16:14]process_json_proto [15:16:14]json parsed OK: [15:16:14]protocol is kg_v1.0 [15:16:14]action value=close_receipt [15:16:14]process_action close_receipt [15:16:14]cmd_close_receipt [15:16:14]MH_GetDate [15:16:14]Write to MH i2c: F0 00 00 68 00 57 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: F0 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: F0 09 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: F0 09 00 68 00 00 BE 34 F0 66 96 2E 95 66 67 [15:16:14]GetLastDocTimeStamp 1727018070 [15:16:14]current date 1727018174 [15:16:14]FM_GetShiftState [15:16:14]SAM_PROTO_GetShiftState [15:16:14]wFMCommunicate request_size=4 [15:16:14]MH_SAM_APDU [15:16:14]CAPDU: 80 13 01 00 [15:16:14]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 0E 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [15:16:14]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:16:14]wFMCommunicate OK [15:16:14]SAM_PROTO_GetShiftState done [15:16:14]FM_GetShiftState done [15:16:14]opened in 1726964224 [15:16:14]opened+sec_in_day 1727050624 [15:16:14]quantity*price = 85648 [15:16:14]sum+1 = 85650 [15:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 856.00 Внесено: 856.00 СДАЧА: 0.00 НСП 1% : 7.58 НДС 12% : 90.95 Наличными: 856.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 119 22.09.2024 15:16 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7721 ФПД: 141678133673683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151614&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7721&fm=141678133673683&tin=02508201610067®Number=0000000000190446&sum=85600 [15:16:15]StoreToDocumentArchive [15:16:15]shift 70 fd 7721 [15:16:15]save to /storage/0070/doc_00007721 [15:16:15]save last doc name /storage/0070/doc_00007721 to /storage/kkm_last_doc_name [15:16:15]save OK [15:16:15]Clear old archive folders... [15:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:16:15]tlvbuf is 01E26F60 [15:16:15]SAM_PROTO_ClearQueue [15:16:15]wFMCommunicate request_size=4 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 09 00 00 [15:16:15]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:15]Read from MH i2c: E2 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:16:15]RAPDU: 90 00 [15:16:15]wFMCommunicate OK [15:16:15]SAM_PROTO_ClearQueue done [15:16:15]KKMCreateOFDPacket [15:16:15]OFDProtocolAddRootSTLVToBuf [15:16:15]FM_MakeSignedData [15:16:15]FM_MakeSignedData [15:16:15]SAM_PROTO_SignData [15:16:15]wFMCommunicate request_size=4 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 0D 01 02 [15:16:15]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:15]Read from MH i2c: E2 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:16:15]RAPDU: 90 00 [15:16:15]wFMCommunicate OK [15:16:15]wFMCommunicate request_size=255 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E8 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BE 34 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 29 1E 00 00 35 04 06 00 [15:16:15]Write to MH i2c: E2 02 01 78 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 34 FF 03 08 00 03 E8 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BE 34 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 29 1E 00 00 35 04 06 00 00 00 51 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:15]Read from MH i2c: E2 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [15:16:15]RAPDU: 90 00 [15:16:15]wFMCommunicate OK [15:16:15]wFMCommunicate request_size=11 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 0D 02 02 06 80 DB 02 D4 7E D3 [15:16:15]Write to MH i2c: E2 0E 00 79 00 80 0D 02 02 06 00 80 DB 02 D4 7E D3 00 00 81 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:15]Read from MH i2c: E2 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [15:16:15]RAPDU: 90 00 [15:16:15]wFMCommunicate OK [15:16:15]wFMCommunicate request_size=4 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 0D 03 02 [15:16:15]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0B 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0B 00 7A 00 00 74 5C 54 F1 21 39 69 16 90 00 E4 [15:16:16]RAPDU: 74 5C 54 F1 21 39 69 16 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_SignData done [15:16:16]FM_MakeSignedData done [15:16:16]CreateOFDProtocolMessage [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 11 00 00 [15:16:16]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 17 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [15:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:16:16]wFMCommunicate OK [15:16:16]CreateOFDProtocolMessage done [15:16:16]OFDSenderStorePacket 7721 [15:16:16]StoreOFDPacket docnum=7721 [15:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 54 99 08 01 B2 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E8 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BE 34 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 29 1E 00 00 35 04 06 00 80 DB 02 D4 7E D3 74 5C 54 F1 21 39 69 16 [15:16:16]CheckFolder [15:16:16]dirname=/storage/ofd_packets [15:16:16]CheckFolder done [15:16:16]ProducePacketName [15:16:16]name=ofd_packets/00007721 [15:16:16]NVStorageSaveData ofd_packets/00007721 [15:16:16]File name is /storage/ofd_packets/00007721 [15:16:16]Write 302 bytes [15:16:16]NVStorageSaveData done [15:16:16]OFDSenderStorePacket done [15:16:16]KKMCreateOFDPacket done [15:16:16]NVStorageSaveData kkm_last_timestamp [15:16:16]File name is /storage/kkm_last_timestamp [15:16:16]Write 4 bytes [15:16:16]NVStorageSaveData done [15:16:16]ExternCall_PrintAddStr [15:16:16]wPrintStart [15:16:16]Write to MH i2c: 01 00 00 7C 00 7C [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 07 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [15:16:16]RasterBufferAndPrint [15:16:16]line Счет N : (1)871832 [15:16:16]line ИНН: 02508201610067 [15:16:16]line Контрольно-Кассовый Чек [15:16:16]line ПРОДАЖА [15:16:16]line ТРК (МРК, ГНК) : 11 [15:16:16]line Товар: 2710194210 [15:16:16]line ДТ(л)-К-4 [15:16:16]line 11.240 * 76.20 [15:16:16]line = 856.49 [15:16:16]line НДС 12% НСП 1% [15:16:16]line > о реализуемом товаре [15:16:16]line ОКРУГЛЕНИЕ: -0.49 [15:16:16]line ИТОГО: 856.00 [15:16:16]line Внесено: 856.00 [15:16:16]line СДАЧА: 0.00 [15:16:16]line НСП 1% : 7.58 [15:16:16]line НДС 12% : 90.95 [15:16:16]line Наличными: 856.00 [15:16:16]line Безнал.: 0.00 [15:16:16]line Место: АЗС № 137 "Партнер Нефть" [15:16:16]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:16:16]line СНО: Общий режим [15:16:16]line Чек 119 22.09.2024 15:16 [15:16:16]line Смена: 70 ФФД: 1.0 [15:16:16]line ЗНМ: 0300000041 [15:16:16]line РНМ: 0000000000190446 [15:16:16]line Версия ККМ: v1.0 [15:16:16]line ФМ: 0000000002094258 [15:16:16]line ФД: 7721 [15:16:16]line ФПД: 141678133673683 [15:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151614&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7721&fm=141678133673683&tin=02508201610067®Number=0000000000190446&sum=85600 [15:16:16]OFD Sender: Processing packet 7721 [packets to send 51, broken 50] [15:16:16]ProducePacketName [15:16:16]name=ofd_packets/00007721 [15:16:16]OFD Sender: To server: pG, [15:16:16]CommunicateWithHost lk.salyk.kg:30040 [15:16:16]ConnectInit lk.salyk.kg [15:16:16]written 0, free lines is 4095 [15:16:16]Write to MH i2c: 01 00 00 A7 00 A7 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 07 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 ED 0C A7 [15:16:16]RasterBufferAndPrint [15:16:16]line [15:16:16]line [15:16:16]line [15:16:16]line [15:16:16]line [15:16:16]written 0, free lines is 3315 [15:16:16]MH_Cut [15:16:16]Write to MH i2c: D1 01 00 AE 00 01 80 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: D1 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: D1 01 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: D1 01 00 AE 00 00 7F [15:16:16]Write to MH i2c: 01 00 00 AF 00 AF [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:17]Connected sock=9 [15:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 54 99 08 01 B2 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E8 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BE 34 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 29 1E 00 00 35 04 06 00 80 DB 02 D4 7E D3 74 5C 54 F1 21 39 69 16 [15:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 82 44 47 00 35 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 29 1E 00 00 F4 03 04 00 7D DF EF 66 B6 04 01 00 00 C5 EC 23 76 09 91 05 A8 [15:16:17]CommunicateWithHost err = 0 [15:16:17]CheckOFDResponse [15:16:17]1017 (14) - 77093643461234 [15:16:17]1041 (16) - 0000000002094258 [15:16:17]1040 (4) - 7721 [15:16:17]1012 (4) - 22.09.2024 09:12 [15:16:17]1206 (1) - 0 [15:16:17]OFD Sender: Remove packet 7721 [15:16:17]ProducePacketName [15:16:17]name=ofd_packets/00007721 [15:16:17]NVStorageDeleteData [15:16:17]*** Cut start [15:16:17]*** Purtial cut [15:16:17]*** Stage 1: CUTSNS_PIN = 1 [15:16:17]Read from MH i2c: 01 [15:16:17]MH_I2C_Read... [15:16:17]*** Stop cut motor [15:16:17]*** Cut end [15:16:17]Read from MH i2c: 01 07 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [15:16:17]process_action close_receipt done [15:16:17]requested_data is exist [15:16:17]produce_requested_data [15:16:17]requested_item fm.sn is exist - process it [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 11 00 00 [15:16:17]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 17 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [15:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:16:17]wFMCommunicate OK [15:16:17]requested_item fd.num is exist - process it [15:16:17]SAM_PROTO_GetFieldsCounters [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 13 00 00 [15:16:17]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 62 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 29 1E 00 00 0E 04 04 00 46 00 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 3D [15:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 29 1E 00 00 0E 04 04 00 46 00 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 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_GetFieldsCounters done [15:16:18]requested_item shift.num is exist - process it [15:16:18]requested_item shift.opened is exist - process it [15:16:18]req_shift_opened [15:16:18]FM_GetShiftState [15:16:18]SAM_PROTO_GetShiftState [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 13 01 00 [15:16:18]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]OFD Sender: No OFD packet to send [15:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0E 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F2 [15:16:18]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_GetShiftState done [15:16:18]FM_GetShiftState done [15:16:18]req_shift_opened done [15:16:18]requested_item shift.open_date is exist - process it [15:16:18]req_shift_open_date [15:16:18]req_shift_open_date done [15:16:18]produce_requested_data done [15:16:18]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7721,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:16:18]process_action_free close_receipt [15:16:18]json_value_free [15:16:18]json_value_free done [15:16:18]process_json_proto returns [15:16:18]Send response to host [15:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7721,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:16:18]free response buf [15:16:18]execute_script done [15:16:18]execute_script returns [15:16:18]free content buf [15:16:18]Sock 7.Close socket [15:16:18]Sock 7.Thread stoped [15:16:23]OFD Sender: No OFD packet to send [15:16:26]recv_with_timeout no data received [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:38]recv_with_timeout no data received [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:26]recv_with_timeout no data received [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:14]accept exits with 10 [15:18:14]New connection [15:18:14]New thread 3066686820 created [15:18:14]Thread 3066543460 joined [15:18:14]Waiting for new connection... [15:18:14] Sock 10.Parse request [15:18:14]Sock 10.Check first char [15:18:14]Sock 10.First char is OK [15:18:14]request: POST /json_proto HTTP/1.0 [15:18:14]Method: POST [15:18:14]URL: /json_proto [15:18:14]Method is POST - this is cgi request [15:18:14]url: /json_proto [15:18:14]query_string will be loaded in cgi processing [15:18:14]execute_cgi json_proto POST (null) [15:18:14]execute_cgi path=json_proto method=POST [15:18:14]POST find Content-Length [15:18:14]Host: 172.17.47.195:8080 [15:18:14]Content-Length: 677 [15:18:14]Content-Type: application/json [15:18:14] [15:18:14]POST finish read [15:18:14]Found Content-Length = 677 [15:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:14]execute_script... [15:18: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)871833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:14]POST & json_proto [15:18:14]process_json_proto [15:18:14]json parsed OK: [15:18:14]protocol is kg_v1.0 [15:18:14]action value=close_receipt [15:18:14]process_action close_receipt [15:18:14]cmd_close_receipt [15:18:14]MH_GetDate [15:18:14]Write to MH i2c: F0 00 00 B3 00 A2 [15:18:14]Write i2c OK [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: F0 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: F0 09 00 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: F0 09 00 B3 00 00 37 35 F0 66 96 2E 95 66 2C [15:18:14]GetLastDocTimeStamp 1727018174 [15:18:14]current date 1727018295 [15:18:14]FM_GetShiftState [15:18:14]SAM_PROTO_GetShiftState [15:18:14]wFMCommunicate request_size=4 [15:18:14]MH_SAM_APDU [15:18:14]CAPDU: 80 13 01 00 [15:18:14]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [15:18:14]Write i2c OK [15:18:14]MH_I2C_Read... [15:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:14]Read from MH i2c: E2 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: E2 0E 00 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F4 [15:18:14]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:18:14]wFMCommunicate OK [15:18:14]SAM_PROTO_GetShiftState done [15:18:14]FM_GetShiftState done [15:18:14]opened in 1726964224 [15:18:14]opened+sec_in_day 1727050624 [15:18:14]quantity*price = 50036 [15:18:14]sum+1 = 50037 [15:18:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 120 22.09.2024 15:18 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7722 ФПД: 139969092576993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151815&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7722&fm=139969092576993&tin=02508201610067®Number=0000000000190446&sum=50000 [15:18:15]StoreToDocumentArchive [15:18:15]shift 70 fd 7722 [15:18:15]save to /storage/0070/doc_00007722 [15:18:15]save last doc name /storage/0070/doc_00007722 to /storage/kkm_last_doc_name [15:18:15]save OK [15:18:15]Clear old archive folders... [15:18:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:15]tlvbuf is 01DB1E10 [15:18:15]SAM_PROTO_ClearQueue [15:18:15]wFMCommunicate request_size=4 [15:18:15]MH_SAM_APDU [15:18:15]CAPDU: 80 09 00 00 [15:18:15]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [15:18:15]Write i2c OK [15:18:15]MH_I2C_Read... [15:18:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:15]Read from MH i2c: E2 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: E2 03 00 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [15:18:15]RAPDU: 90 00 [15:18:15]wFMCommunicate OK [15:18:15]SAM_PROTO_ClearQueue done [15:18:15]KKMCreateOFDPacket [15:18:15]OFDProtocolAddRootSTLVToBuf [15:18:15]FM_MakeSignedData [15:18:15]FM_MakeSignedData [15:18:15]SAM_PROTO_SignData [15:18:15]wFMCommunicate request_size=4 [15:18:15]MH_SAM_APDU [15:18:15]CAPDU: 80 0D 01 02 [15:18:15]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [15:18:15]Write i2c OK [15:18:15]MH_I2C_Read... [15:18:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:15]Read from MH i2c: E2 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: E2 03 00 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [15:18:15]RAPDU: 90 00 [15:18:15]wFMCommunicate OK [15:18:15]wFMCommunicate request_size=255 [15:18:15]MH_SAM_APDU [15:18:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 37 35 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2A 1E 00 00 35 04 06 00 7F [15:18:15]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 37 35 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2A 1E 00 00 35 04 06 00 7F 00 00 FE [15:18:15]Write i2c OK [15:18:15]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [15:18:16]RAPDU: 90 00 [15:18:16]wFMCommunicate OK [15:18:16]wFMCommunicate request_size=10 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 0D 02 02 05 4D 18 0A E6 E1 [15:18:16]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 4D 18 0A E6 E1 00 00 7E [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [15:18:16]RAPDU: 90 00 [15:18:16]wFMCommunicate OK [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 0D 03 02 [15:18:16]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 0B 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 0B 00 C5 00 00 FC E5 2C 9C 40 75 0E B5 90 00 62 [15:18:16]RAPDU: FC E5 2C 9C 40 75 0E B5 90 00 [15:18:16]wFMCommunicate OK [15:18:16]SAM_PROTO_SignData done [15:18:16]FM_MakeSignedData done [15:18:16]CreateOFDProtocolMessage [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 11 00 00 [15:18:16]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 17 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 91 [15:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:18:16]wFMCommunicate OK [15:18:16]CreateOFDProtocolMessage done [15:18:16]OFDSenderStorePacket 7722 [15:18:16]StoreOFDPacket docnum=7722 [15:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 EF B0 07 01 C4 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 37 35 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2A 1E 00 00 35 04 06 00 7F 4D 18 0A E6 E1 FC E5 2C 9C 40 75 0E B5 [15:18:16]CheckFolder [15:18:16]dirname=/storage/ofd_packets [15:18:16]CheckFolder done [15:18:16]ProducePacketName [15:18:16]name=ofd_packets/00007722 [15:18:16]NVStorageSaveData ofd_packets/00007722 [15:18:16]File name is /storage/ofd_packets/00007722 [15:18:16]Write 301 bytes [15:18:16]NVStorageSaveData done [15:18:16]OFDSenderStorePacket done [15:18:16]KKMCreateOFDPacket done [15:18:16]NVStorageSaveData kkm_last_timestamp [15:18:16]File name is /storage/kkm_last_timestamp [15:18:16]Write 4 bytes [15:18:16]NVStorageSaveData done [15:18:16]ExternCall_PrintAddStr [15:18:16]wPrintStart [15:18:16]Write to MH i2c: 01 00 00 C7 00 C7 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: 01 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: 01 07 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [15:18:16]RasterBufferAndPrint [15:18:16]line Счет N : (1)871833 [15:18:16]line ИНН: 02508201610067 [15:18:16]line Контрольно-Кассовый Чек [15:18:16]line ПРОДАЖА [15:18:16]line ТРК (МРК, ГНК) : 33 [15:18:16]line Товар: 2710124130 [15:18:16]line Аи-92-К-5 [15:18:16]line 7.380 * 67.80 [15:18:16]line = 500.36 [15:18:16]line НДС 12% НСП 1% [15:18:16]line > о реализуемом товаре [15:18:16]line ОКРУГЛЕНИЕ: -0.36 [15:18:16]line ИТОГО: 500.00 [15:18:16]line Внесено: 500.00 [15:18:16]line СДАЧА: 0.00 [15:18:16]line НСП 1% : 4.43 [15:18:16]line НДС 12% : 53.14 [15:18:16]line Наличными: 500.00 [15:18:16]line Безнал.: 0.00 [15:18:16]line Место: АЗС № 137 "Партнер Нефть" [15:18:16]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:18:16]line СНО: Общий режим [15:18:16]line Чек 120 22.09.2024 15:18 [15:18:16]line Смена: 70 ФФД: 1.0 [15:18:16]line ЗНМ: 0300000041 [15:18:16]line РНМ: 0000000000190446 [15:18:16]line Версия ККМ: v1.0 [15:18:16]line ФМ: 0000000002094258 [15:18:16]line ФД: 7722 [15:18:16]line ФПД: 139969092576993 [15:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151815&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7722&fm=139969092576993&tin=02508201610067®Number=0000000000190446&sum=50000 [15:18:16]OFD Sender: Processing packet 7722 [packets to send 51, broken 50] [15:18:16]ProducePacketName [15:18:16]name=ofd_packets/00007722 [15:18:16]OFD Sender: To server: pG, [15:18:16]CommunicateWithHost lk.salyk.kg:30040 [15:18:16]ConnectInit lk.salyk.kg [15:18:16]written 0, free lines is 4095 [15:18:17]Connected sock=7 [15:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 EF B0 07 01 C4 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 37 35 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2A 1E 00 00 35 04 06 00 7F 4D 18 0A E6 E1 FC E5 2C 9C 40 75 0E B5 [15:18:17]Write to MH i2c: 01 00 00 F2 00 F2 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 EC 0C F1 [15:18:17]RasterBufferAndPrint [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]written 0, free lines is 3314 [15:18:17]MH_Cut [15:18:17]Write to MH i2c: D1 01 00 F9 00 01 CB [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: D1 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: D1 01 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: D1 01 00 F9 00 00 CA [15:18:17]Write to MH i2c: 01 00 00 FA 00 FA [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** Cut start [15:18:17]*** Purtial cut [15:18:17]*** Stage 1: CUTSNS_PIN = 1 [15:18:18]Read from MH i2c: 01 [15:18:18]MH_I2C_Read... [15:18:18]*** Stop cut motor [15:18:18]*** Cut end [15:18:18]Read from MH i2c: 01 07 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [15:18:18]process_action close_receipt done [15:18:18]requested_data is exist [15:18:18]produce_requested_data [15:18:18]requested_item fm.sn is exist - process it [15:18:18]wFMCommunicate request_size=4 [15:18:18]MH_SAM_APDU [15:18:18]CAPDU: 80 11 00 00 [15:18:18]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:18]Read from MH i2c: E2 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 17 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C6 [15:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:18:18]wFMCommunicate OK [15:18:18]requested_item fd.num is exist - process it [15:18:18]SAM_PROTO_GetFieldsCounters [15:18:18]wFMCommunicate request_size=4 [15:18:18]MH_SAM_APDU [15:18:18]CAPDU: 80 13 00 00 [15:18:18]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:18]Read from MH i2c: E2 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 62 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2A 1E 00 00 0E 04 04 00 46 00 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 8C [15:18:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2A 1E 00 00 0E 04 04 00 46 00 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 [15:18:18]wFMCommunicate OK [15:18:18]SAM_PROTO_GetFieldsCounters done [15:18:18]requested_item shift.num is exist - process it [15:18:18]requested_item shift.opened is exist - process it [15:18:18]req_shift_opened [15:18:18]FM_GetShiftState [15:18:18]SAM_PROTO_GetShiftState [15:18:18]wFMCommunicate request_size=4 [15:18:18]MH_SAM_APDU [15:18:18]CAPDU: 80 13 01 00 [15:18:18]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:18]Read from MH i2c: E2 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 0E 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3D [15:18:18]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:18:18]wFMCommunicate OK [15:18:18]SAM_PROTO_GetShiftState done [15:18:18]FM_GetShiftState done [15:18:18]req_shift_opened done [15:18:18]requested_item shift.open_date is exist - process it [15:18:18]req_shift_open_date [15:18:18]req_shift_open_date done [15:18:18]produce_requested_data done [15:18:18]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7722,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:18:18]process_action_free close_receipt [15:18:18]json_value_free [15:18:18]json_value_free done [15:18:18]process_json_proto returns [15:18:18]Send response to host [15:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7722,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:18:18]free response buf [15:18:18]execute_script done [15:18:18]execute_script returns [15:18:18]free content buf [15:18:18]Sock 10.Close socket [15:18:18]Sock 10.Thread stoped [15:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 36 77 47 00 55 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2A 1E 00 00 F4 03 04 00 F6 DF EF 66 B6 04 01 00 00 69 8D 22 C7 3C 50 05 CD [15:18:18]CommunicateWithHost err = 0 [15:18:18]CheckOFDResponse [15:18:18]1017 (14) - 77093643461234 [15:18:18]1041 (16) - 0000000002094258 [15:18:18]1040 (4) - 7722 [15:18:18]1012 (4) - 22.09.2024 09:14 [15:18:18]1206 (1) - 0 [15:18:18]OFD Sender: Remove packet 7722 [15:18:18]ProducePacketName [15:18:18]name=ofd_packets/00007722 [15:18:18]NVStorageDeleteData [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:33]accept exits with 9 [15:20:33]New connection [15:20:33]New thread 3066543460 created [15:20:33]Thread 3066686820 joined [15:20:33]Waiting for new connection... [15:20:33] Sock 9.Parse request [15:20:33]Sock 9.Check first char [15:20:33]Sock 9.First char is OK [15:20:33]request: POST /json_proto HTTP/1.0 [15:20:33]Method: POST [15:20:33]URL: /json_proto [15:20:33]Method is POST - this is cgi request [15:20:33]url: /json_proto [15:20:33]query_string will be loaded in cgi processing [15:20:33]execute_cgi json_proto POST (null) [15:20:33]execute_cgi path=json_proto method=POST [15:20:33]POST find Content-Length [15:20:33]Host: 172.17.47.195:8080 [15:20:33]Content-Length: 687 [15:20:33]Content-Type: application/json [15:20:33] [15:20:33]POST finish read [15:20:33]Found Content-Length = 687 [15:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:33]execute_script... [15:20: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)871835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:33]POST & json_proto [15:20:33]process_json_proto [15:20:33]json parsed OK: [15:20:33]protocol is kg_v1.0 [15:20:33]action value=close_receipt [15:20:33]process_action close_receipt [15:20:33]cmd_close_receipt [15:20:33]MH_GetDate [15:20:33]Write to MH i2c: F0 00 00 FE 00 ED [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: F0 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: F0 09 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: F0 09 00 FE 00 00 C2 35 F0 66 96 2E 95 66 02 [15:20:33]GetLastDocTimeStamp 1727018295 [15:20:33]current date 1727018434 [15:20:33]FM_GetShiftState [15:20:33]SAM_PROTO_GetShiftState [15:20:33]wFMCommunicate request_size=4 [15:20:33]MH_SAM_APDU [15:20:33]CAPDU: 80 13 01 00 [15:20:33]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:33]Read from MH i2c: E2 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 0E 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3F [15:20:33]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:20:33]wFMCommunicate OK [15:20:33]SAM_PROTO_GetShiftState done [15:20:33]FM_GetShiftState done [15:20:33]opened in 1726964224 [15:20:33]opened+sec_in_day 1727050624 [15:20:33]quantity*price = 100050 [15:20:33]sum+1 = 100052 [15:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 121 22.09.2024 15:20 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7723 ФПД: 48164310885357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152034&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7723&fm=48164310885357&tin=02508201610067®Number=0000000000190446&sum=100000 [15:20:35]StoreToDocumentArchive [15:20:35]shift 70 fd 7723 [15:20:35]save to /storage/0070/doc_00007723 [15:20:35]save last doc name /storage/0070/doc_00007723 to /storage/kkm_last_doc_name [15:20:35]save OK [15:20:35]Clear old archive folders... [15:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:20:35]tlvbuf is 01E2C760 [15:20:35]SAM_PROTO_ClearQueue [15:20:35]wFMCommunicate request_size=4 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 09 00 00 [15:20:35]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 03 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [15:20:35]RAPDU: 90 00 [15:20:35]wFMCommunicate OK [15:20:35]SAM_PROTO_ClearQueue done [15:20:35]KKMCreateOFDPacket [15:20:35]OFDProtocolAddRootSTLVToBuf [15:20:35]FM_MakeSignedData [15:20:35]FM_MakeSignedData [15:20:35]SAM_PROTO_SignData [15:20:35]wFMCommunicate request_size=4 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 0D 01 02 [15:20:35]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 03 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [15:20:35]RAPDU: 90 00 [15:20:35]wFMCommunicate OK [15:20:35]wFMCommunicate request_size=255 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C2 35 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2B 1E 00 00 35 04 06 00 [15:20:35]Write to MH i2c: E2 02 01 0E 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C2 35 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2B 1E 00 00 35 04 06 00 00 00 45 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 03 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [15:20:35]RAPDU: 90 00 [15:20:35]wFMCommunicate OK [15:20:35]wFMCommunicate request_size=11 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 0D 02 02 06 2B CE 20 A4 23 ED [15:20:35]Write to MH i2c: E2 0E 00 0F 01 80 0D 02 02 06 00 2B CE 20 A4 23 ED 00 00 63 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 03 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [15:20:35]RAPDU: 90 00 [15:20:35]wFMCommunicate OK [15:20:35]wFMCommunicate request_size=4 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 0D 03 02 [15:20:35]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 0B 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 0B 00 10 01 00 67 A0 D1 2B 08 AF 7E EA 90 00 AF [15:20:35]RAPDU: 67 A0 D1 2B 08 AF 7E EA 90 00 [15:20:35]wFMCommunicate OK [15:20:35]SAM_PROTO_SignData done [15:20:35]FM_MakeSignedData done [15:20:35]CreateOFDProtocolMessage [15:20:35]wFMCommunicate request_size=4 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 11 00 00 [15:20:35]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 17 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DD [15:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:20:35]wFMCommunicate OK [15:20:35]CreateOFDProtocolMessage done [15:20:35]OFDSenderStorePacket 7723 [15:20:35]StoreOFDPacket docnum=7723 [15:20:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 C3 F4 08 01 F4 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C2 35 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2B 1E 00 00 35 04 06 00 2B CE 20 A4 23 ED 67 A0 D1 2B 08 AF 7E EA [15:20:35]CheckFolder [15:20:35]dirname=/storage/ofd_packets [15:20:35]CheckFolder done [15:20:35]ProducePacketName [15:20:35]name=ofd_packets/00007723 [15:20:35]NVStorageSaveData ofd_packets/00007723 [15:20:35]File name is /storage/ofd_packets/00007723 [15:20:35]Write 302 bytes [15:20:35]NVStorageSaveData done [15:20:35]OFDSenderStorePacket done [15:20:35]KKMCreateOFDPacket done [15:20:35]NVStorageSaveData kkm_last_timestamp [15:20:35]File name is /storage/kkm_last_timestamp [15:20:35]Write 4 bytes [15:20:35]NVStorageSaveData done [15:20:35]ExternCall_PrintAddStr [15:20:35]wPrintStart [15:20:35]Write to MH i2c: 01 00 00 12 01 13 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: 01 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: 01 07 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [15:20:35]RasterBufferAndPrint [15:20:35]line Счет N : (1)871835 [15:20:35]line ИНН: 02508201610067 [15:20:35]line Контрольно-Кассовый Чек [15:20:35]line ПРОДАЖА [15:20:35]line ТРК (МРК, ГНК) : 34 [15:20:35]line Товар: 2710194210 [15:20:35]line ДТ(л)-К-4 [15:20:35]line 13.130 * 76.20 [15:20:35]line = 1000.51 [15:20:35]line НДС 12% НСП 1% [15:20:35]line > о реализуемом товаре [15:20:35]line ОКРУГЛЕНИЕ: -0.51 [15:20:35]line ИТОГО: 1000.00 [15:20:35]line Внесено: 1000.00 [15:20:35]line СДАЧА: 0.00 [15:20:35]line НСП 1% : 8.85 [15:20:35]line НДС 12% : 106.25 [15:20:35]line Наличными: 1000.00 [15:20:35]line Безнал.: 0.00 [15:20:35]line Место: АЗС № 137 "Партнер Нефть" [15:20:35]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:20:35]line СНО: Общий режим [15:20:35]line Чек 121 22.09.2024 15:20 [15:20:35]line Смена: 70 ФФД: 1.0 [15:20:35]line ЗНМ: 0300000041 [15:20:35]line РНМ: 0000000000190446 [15:20:35]line Версия ККМ: v1.0 [15:20:35]line ФМ: 0000000002094258 [15:20:35]line ФД: 7723 [15:20:35]line ФПД: 48164310885357 [15:20:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152034&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7723&fm=48164310885357&tin=02508201610067®Number=0000000000190446&sum=100000 [15:20:35]OFD Sender: Processing packet 7723 [packets to send 51, broken 50] [15:20:35]ProducePacketName [15:20:35]name=ofd_packets/00007723 [15:20:35]OFD Sender: To server: pG, [15:20:35]CommunicateWithHost lk.salyk.kg:30040 [15:20:35]ConnectInit lk.salyk.kg [15:20:35]written 0, free lines is 4095 [15:20:36]Write to MH i2c: 01 00 00 3D 01 3E [15:20:36]Write i2c OK [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: 01 [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: 01 07 00 [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 E8 0C 39 [15:20:36]RasterBufferAndPrint [15:20:36]line [15:20:36]line [15:20:36]line [15:20:36]line [15:20:36]line [15:20:36]written 0, free lines is 3310 [15:20:36]MH_Cut [15:20:36]Write to MH i2c: D1 01 00 44 01 01 17 [15:20:36]Write i2c OK [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: D1 [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: D1 01 00 [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: D1 01 00 44 01 00 16 [15:20:36]Write to MH i2c: 01 00 00 45 01 46 [15:20:36]Write i2c OK [15:20:36]MH_I2C_Read... [15:20:37]*** Cut start [15:20:37]*** Purtial cut [15:20:37]*** Stage 1: CUTSNS_PIN = 1 [15:20:37]Read from MH i2c: 01 [15:20:37]MH_I2C_Read... [15:20:37]*** Stop cut motor [15:20:37]*** Cut end [15:20:37]Read from MH i2c: 01 07 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [15:20:37]process_action close_receipt done [15:20:37]requested_data is exist [15:20:37]produce_requested_data [15:20:37]requested_item fm.sn is exist - process it [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 11 00 00 [15:20:37]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 17 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 12 [15:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:20:37]wFMCommunicate OK [15:20:37]requested_item fd.num is exist - process it [15:20:37]SAM_PROTO_GetFieldsCounters [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 13 00 00 [15:20:37]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 62 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2B 1E 00 00 0E 04 04 00 46 00 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 DC [15:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2B 1E 00 00 0E 04 04 00 46 00 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 [15:20:37]wFMCommunicate OK [15:20:37]SAM_PROTO_GetFieldsCounters done [15:20:37]requested_item shift.num is exist - process it [15:20:37]requested_item shift.opened is exist - process it [15:20:37]req_shift_opened [15:20:37]FM_GetShiftState [15:20:37]SAM_PROTO_GetShiftState [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 13 01 00 [15:20:37]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 0E 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 89 [15:20:37]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:20:37]wFMCommunicate OK [15:20:37]SAM_PROTO_GetShiftState done [15:20:37]FM_GetShiftState done [15:20:37]req_shift_opened done [15:20:37]requested_item shift.open_date is exist - process it [15:20:37]req_shift_open_date [15:20:37]req_shift_open_date done [15:20:37]produce_requested_data done [15:20:37]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7723,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:20:37]process_action_free close_receipt [15:20:37]json_value_free [15:20:37]json_value_free done [15:20:37]process_json_proto returns [15:20:37]Send response to host [15:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7723,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:20:37]free response buf [15:20:37]execute_script done [15:20:37]execute_script returns [15:20:37]free content buf [15:20:37]Sock 9.Close socket [15:20:37]Sock 9.Thread stoped [15:20:38]Connected sock=10 [15:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 C3 F4 08 01 F4 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C2 35 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2B 1E 00 00 35 04 06 00 2B CE 20 A4 23 ED 67 A0 D1 2B 08 AF 7E EA [15:20:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 7A 2C 47 00 82 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 32 30 39 34 32 35 38 10 04 04 00 2B 1E 00 00 F4 03 04 00 83 E0 EF 66 B6 04 01 00 00 3E 5E AA 58 AD 06 CB FB [15:20:39]CommunicateWithHost err = 0 [15:20:39]CheckOFDResponse [15:20:39]1017 (14) - 77093643461234 [15:20:39]1041 (16) - 0000000002094258 [15:20:39]1040 (4) - 7723 [15:20:39]1012 (4) - 22.09.2024 09:16 [15:20:39]1206 (1) - 0 [15:20:39]OFD Sender: Remove packet 7723 [15:20:39]ProducePacketName [15:20:39]name=ofd_packets/00007723 [15:20:39]NVStorageDeleteData [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:51]recv_with_timeout no data received [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:04]recv_with_timeout no data received [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:19]recv_with_timeout no data received [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:46]accept exits with 7 [15:21:46]New connection [15:21:46]New thread 3066686820 created [15:21:46]Thread 3066543460 joined [15:21:46]Waiting for new connection... [15:21:46] Sock 7.Parse request [15:21:46]Sock 7.Check first char [15:21:46]Sock 7.First char is OK [15:21:46]request: POST /json_proto HTTP/1.0 [15:21:46]Method: POST [15:21:46]URL: /json_proto [15:21:46]Method is POST - this is cgi request [15:21:46]url: /json_proto [15:21:46]query_string will be loaded in cgi processing [15:21:46]execute_cgi json_proto POST (null) [15:21:46]execute_cgi path=json_proto method=POST [15:21:46]POST find Content-Length [15:21:46]Host: 172.17.47.195:8080 [15:21:46]Content-Length: 986 [15:21:46]Content-Type: application/json [15:21:46] [15:21:46]POST finish read [15:21:46]Found Content-Length = 986 [15:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 75.20, "quantity" : 61.180, "sum" : 4600.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 61.18 \u0441\u043E\u043C", "deposit" : 4600.00, "total" : 4600.00, "payments": [ { "type": 0, "sum" : 4600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:46]execute_script... [15:21: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)871834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 75.20, "quantity" : 61.180, "sum" : 4600.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 61.18 \u0441\u043E\u043C", "deposit" : 4600.00, "total" : 4600.00, "payments": [ { "type": 0, "sum" : 4600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:46]POST & json_proto [15:21:46]process_json_proto [15:21:46]json parsed OK: [15:21:46]protocol is kg_v1.0 [15:21:46]action value=close_receipt [15:21:46]process_action close_receipt [15:21:46]cmd_close_receipt [15:21:46]MH_GetDate [15:21:46]Write to MH i2c: F0 00 00 49 01 39 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: F0 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: F0 09 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: F0 09 00 49 01 00 0A 36 F0 66 96 2E 95 66 97 [15:21:46]GetLastDocTimeStamp 1727018434 [15:21:46]current date 1727018506 [15:21:46]FM_GetShiftState [15:21:46]SAM_PROTO_GetShiftState [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 13 01 00 [15:21:46]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8B [15:21:46]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_GetShiftState done [15:21:46]FM_GetShiftState done [15:21:46]opened in 1726964224 [15:21:46]opened+sec_in_day 1727050624 [15:21:46]quantity*price = 460073 [15:21:46]sum+1 = 460075 [15:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 4600.00 Внесено: 4600.00 СДАЧА: 0.00 НСП 1% : 40.71 НДС 12% : 488.57 Наличными: 4600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 122 22.09.2024 15:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Дисконтная программа ДТ номер 137 сэкономлено 61.18 сом ФМ: 0000000002094258 ФД: 7724 ФПД: 178874022200514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152146&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7724&fm=178874022200514&tin=02508201610067®Number=0000000000190446&sum=460000 [15:21:47]StoreToDocumentArchive [15:21:47]shift 70 fd 7724 [15:21:47]save to /storage/0070/doc_00007724 [15:21:47]save last doc name /storage/0070/doc_00007724 to /storage/kkm_last_doc_name [15:21:47]save OK [15:21:47]Clear old archive folders... [15:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:21:47]tlvbuf is 01E3FEB0 [15:21:47]SAM_PROTO_ClearQueue [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 09 00 00 [15:21:47]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]SAM_PROTO_ClearQueue done [15:21:47]KKMCreateOFDPacket [15:21:47]OFDProtocolAddRootSTLVToBuf [15:21:47]FM_MakeSignedData [15:21:47]FM_MakeSignedData [15:21:47]SAM_PROTO_SignData [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 01 02 [15:21:47]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]wFMCommunicate request_size=255 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2A 05 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 BE 00 00 00 00 07 04 06 00 E0 04 07 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 0A 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2C 1E 00 00 35 04 06 00 [15:21:47]Write to MH i2c: E2 02 01 59 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 34 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2A 05 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 BE 00 00 00 00 07 04 06 00 E0 04 07 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 0A 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2C 1E 00 00 35 04 06 00 00 00 B3 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]wFMCommunicate request_size=11 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 02 02 06 A2 AF 5A 8D 84 C2 [15:21:47]Write to MH i2c: E2 0E 00 5A 01 80 0D 02 02 06 00 A2 AF 5A 8D 84 C2 00 00 5F [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 03 02 [15:21:47]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0B 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0B 00 5B 01 00 72 39 A8 6C 64 A7 DB BE 90 00 3B [15:21:47]RAPDU: 72 39 A8 6C 64 A7 DB BE 90 00 [15:21:47]wFMCommunicate OK [15:21:47]SAM_PROTO_SignData done [15:21:47]FM_MakeSignedData done [15:21:47]CreateOFDProtocolMessage [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 11 00 00 [15:21:47]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 17 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 28 [15:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:21:48]wFMCommunicate OK [15:21:48]CreateOFDProtocolMessage done [15:21:48]OFDSenderStorePacket 7724 [15:21:48]StoreOFDPacket docnum=7724 [15:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 FB 74 08 01 5A B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2A 05 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 BE 00 00 00 00 07 04 06 00 E0 04 07 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 0A 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2C 1E 00 00 35 04 06 00 A2 AF 5A 8D 84 C2 72 39 A8 6C 64 A7 DB BE [15:21:48]CheckFolder [15:21:48]dirname=/storage/ofd_packets [15:21:48]CheckFolder done [15:21:48]ProducePacketName [15:21:48]name=ofd_packets/00007724 [15:21:48]NVStorageSaveData ofd_packets/00007724 [15:21:48]File name is /storage/ofd_packets/00007724 [15:21:48]Write 302 bytes [15:21:48]NVStorageSaveData done [15:21:48]OFDSenderStorePacket done [15:21:48]KKMCreateOFDPacket done [15:21:48]NVStorageSaveData kkm_last_timestamp [15:21:48]File name is /storage/kkm_last_timestamp [15:21:48]Write 4 bytes [15:21:48]NVStorageSaveData done [15:21:48]ExternCall_PrintAddStr [15:21:48]wPrintStart [15:21:48]Write to MH i2c: 01 00 00 5D 01 5E [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [15:21:48]RasterBufferAndPrint [15:21:48]line Счет N : (1)871834 [15:21:48]line ИНН: 02508201610067 [15:21:48]line Контрольно-Кассовый Чек [15:21:48]line ПРОДАЖА [15:21:48]line ТРК (МРК, ГНК) : 44 [15:21:48]line Товар: 2710194210 [15:21:48]line ДТ(л)-К-4 [15:21:48]line 61.180 * 75.20 [15:21:48]line = 4600.74 [15:21:48]line НДС 12% НСП 1% [15:21:48]line > о реализуемом товаре [15:21:48]line ОКРУГЛЕНИЕ: -0.74 [15:21:48]line ИТОГО: 4600.00 [15:21:48]line Внесено: 4600.00 [15:21:48]line СДАЧА: 0.00 [15:21:48]line НСП 1% : 40.71 [15:21:48]line НДС 12% : 488.57 [15:21:48]line Наличными: 4600.00 [15:21:48]line Безнал.: 0.00 [15:21:48]line Место: АЗС № 137 "Партнер Нефть" [15:21:48]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:21:48]line СНО: Общий режим [15:21:48]line Чек 122 22.09.2024 15:21 [15:21:48]line Смена: 70 ФФД: 1.0 [15:21:48]line ЗНМ: 0300000041 [15:21:48]line РНМ: 0000000000190446 [15:21:48]line Версия ККМ: v1.0 [15:21:48]line [15:21:48]line Дисконтная программа [15:21:48]line ДТ [15:21:48]line номер 137 [15:21:48]line сэкономлено 61.18 сом [15:21:48]line ФМ: 0000000002094258 [15:21:48]line ФД: 7724 [15:21:48]line ФПД: 178874022200514 [15:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152146&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7724&fm=178874022200514&tin=02508201610067®Number=0000000000190446&sum=460000 [15:21:48]OFD Sender: Processing packet 7724 [packets to send 51, broken 50] [15:21:48]ProducePacketName [15:21:48]name=ofd_packets/00007724 [15:21:48]OFD Sender: To server: pG, [15:21:48]CommunicateWithHost lk.salyk.kg:30040 [15:21:48]ConnectInit lk.salyk.kg [15:21:48]written 0, free lines is 4095 [15:21:48]Write to MH i2c: 01 00 00 8D 01 8E [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 92 0C 33 [15:21:48]RasterBufferAndPrint [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]written 0, free lines is 3224 [15:21:48]MH_Cut [15:21:48]Write to MH i2c: D1 01 00 94 01 01 67 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 01 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 01 00 94 01 00 66 [15:21:48]Write to MH i2c: 01 00 00 95 01 96 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:49]*** Cut start [15:21:49]*** Purtial cut [15:21:49]*** Stage 1: CUTSNS_PIN = 1 [15:21:49]Read from MH i2c: 01 [15:21:49]MH_I2C_Read... [15:21:49]*** Stop cut motor [15:21:49]*** Cut end [15:21:49]Read from MH i2c: 01 07 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 FF 0F AB [15:21:49]process_action close_receipt done [15:21:49]requested_data is exist [15:21:49]produce_requested_data [15:21:49]requested_item fm.sn is exist - process it [15:21:49]wFMCommunicate request_size=4 [15:21:49]MH_SAM_APDU [15:21:49]CAPDU: 80 11 00 00 [15:21:49]Write to MH i2c: E2 08 00 96 01 80 11 00 00 00 00 00 00 11 [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:49]Read from MH i2c: E2 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 17 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 17 00 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 62 [15:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:21:49]wFMCommunicate OK [15:21:49]requested_item fd.num is exist - process it [15:21:49]SAM_PROTO_GetFieldsCounters [15:21:49]wFMCommunicate request_size=4 [15:21:49]MH_SAM_APDU [15:21:49]CAPDU: 80 13 00 00 [15:21:49]Write to MH i2c: E2 08 00 97 01 80 13 00 00 00 00 00 00 14 [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:50]Read from MH i2c: E2 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 62 00 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 62 00 97 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2C 1E 00 00 0E 04 04 00 46 00 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 30 [15:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2C 1E 00 00 0E 04 04 00 46 00 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 [15:21:50]wFMCommunicate OK [15:21:50]SAM_PROTO_GetFieldsCounters done [15:21:50]requested_item shift.num is exist - process it [15:21:50]requested_item shift.opened is exist - process it [15:21:50]req_shift_opened [15:21:50]FM_GetShiftState [15:21:50]SAM_PROTO_GetShiftState [15:21:50]wFMCommunicate request_size=4 [15:21:50]MH_SAM_APDU [15:21:50]CAPDU: 80 13 01 00 [15:21:50]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [15:21:50]Write i2c OK [15:21:50]MH_I2C_Read... [15:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:50]Read from MH i2c: E2 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 0E 00 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D9 [15:21:50]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:21:50]wFMCommunicate OK [15:21:50]SAM_PROTO_GetShiftState done [15:21:50]FM_GetShiftState done [15:21:50]req_shift_opened done [15:21:50]requested_item shift.open_date is exist - process it [15:21:50]req_shift_open_date [15:21:50]req_shift_open_date done [15:21:50]produce_requested_data done [15:21:50]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7724,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:21:50]process_action_free close_receipt [15:21:50]json_value_free [15:21:50]json_value_free done [15:21:50]process_json_proto returns [15:21:50]Send response to host [15:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7724,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:21:50]free response buf [15:21:50]execute_script done [15:21:50]execute_script returns [15:21:50]free content buf [15:21:50]Sock 7.Close socket [15:21:50]Sock 7.Thread stoped [15:21:52]Connected sock=11 [15:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 FB 74 08 01 5A B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2A 05 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 BE 00 00 00 00 07 04 06 00 E0 04 07 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 0A 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2C 1E 00 00 35 04 06 00 A2 AF 5A 8D 84 C2 72 39 A8 6C 64 A7 DB BE [15:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 B5 FB 47 00 86 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 32 30 39 34 32 35 38 10 04 04 00 2C 1E 00 00 F4 03 04 00 CD E0 EF 66 B6 04 01 00 00 00 A5 4E 32 95 8D 99 C4 [15:21:54]CommunicateWithHost err = 0 [15:21:54]CheckOFDResponse [15:21:54]1017 (14) - 77093643461234 [15:21:54]1041 (16) - 0000000002094258 [15:21:54]1040 (4) - 7724 [15:21:54]1012 (4) - 22.09.2024 09:18 [15:21:54]1206 (1) - 0 [15:21:54]OFD Sender: Remove packet 7724 [15:21:54]ProducePacketName [15:21:54]name=ofd_packets/00007724 [15:21:54]NVStorageDeleteData [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:58]accept exits with 9 [15:22:58]New connection [15:22:58]New thread 3066543460 created [15:22:58]Thread 3066686820 joined [15:22:58]Waiting for new connection... [15:22:58] Sock 9.Parse request [15:22:58]Sock 9.Check first char [15:22:58]Sock 9.First char is OK [15:22:58]request: POST /json_proto HTTP/1.0 [15:22:58]Method: POST [15:22:58]URL: /json_proto [15:22:58]Method is POST - this is cgi request [15:22:58]url: /json_proto [15:22:58]query_string will be loaded in cgi processing [15:22:58]execute_cgi json_proto POST (null) [15:22:58]execute_cgi path=json_proto method=POST [15:22:58]POST find Content-Length [15:22:58]Host: 172.17.47.195:8080 [15:22:58]Content-Length: 682 [15:22:58]Content-Type: application/json [15:22:58] [15:22:58]POST finish read [15:22:58]Found Content-Length = 682 [15:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:58]execute_script... [15:22: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)871836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:58]POST & json_proto [15:22:58]process_json_proto [15:22:58]json parsed OK: [15:22:58]protocol is kg_v1.0 [15:22:58]action value=close_receipt [15:22:58]process_action close_receipt [15:22:58]cmd_close_receipt [15:22:58]MH_GetDate [15:22:58]Write to MH i2c: F0 00 00 99 01 89 [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: F0 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: F0 09 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: F0 09 00 99 01 00 53 36 F0 66 96 2E 95 66 30 [15:22:58]GetLastDocTimeStamp 1727018506 [15:22:58]current date 1727018579 [15:22:58]FM_GetShiftState [15:22:58]SAM_PROTO_GetShiftState [15:22:58]wFMCommunicate request_size=4 [15:22:58]MH_SAM_APDU [15:22:58]CAPDU: 80 13 01 00 [15:22:58]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:58]Read from MH i2c: E2 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 0E 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 DB [15:22:58]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:22:58]wFMCommunicate OK [15:22:58]SAM_PROTO_GetShiftState done [15:22:58]FM_GetShiftState done [15:22:58]opened in 1726964224 [15:22:58]opened+sec_in_day 1727050624 [15:22:58]quantity*price = 70027 [15:22:58]sum+1 = 70029 [15:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 123 22.09.2024 15:22 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7725 ФПД: 88058137991837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152259&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7725&fm=88058137991837&tin=02508201610067®Number=0000000000190446&sum=70000 [15:22:59]StoreToDocumentArchive [15:22:59]shift 70 fd 7725 [15:22:59]save to /storage/0070/doc_00007725 [15:22:59]save last doc name /storage/0070/doc_00007725 to /storage/kkm_last_doc_name [15:22:59]save OK [15:22:59]Clear old archive folders... [15:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:22:59]tlvbuf is 01DB1070 [15:22:59]SAM_PROTO_ClearQueue [15:22:59]wFMCommunicate request_size=4 [15:22:59]MH_SAM_APDU [15:22:59]CAPDU: 80 09 00 00 [15:22:59]Write to MH i2c: E2 08 00 A7 01 80 09 00 00 00 00 00 00 1A [15:22:59]Write i2c OK [15:22:59]MH_I2C_Read... [15:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:59]Read from MH i2c: E2 [15:22:59]MH_I2C_Read... [15:22:59]Read from MH i2c: E2 03 00 [15:22:59]MH_I2C_Read... [15:22:59]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [15:22:59]RAPDU: 90 00 [15:22:59]wFMCommunicate OK [15:22:59]SAM_PROTO_ClearQueue done [15:22:59]KKMCreateOFDPacket [15:22:59]OFDProtocolAddRootSTLVToBuf [15:22:59]FM_MakeSignedData [15:22:59]FM_MakeSignedData [15:22:59]SAM_PROTO_SignData [15:22:59]wFMCommunicate request_size=4 [15:22:59]MH_SAM_APDU [15:22:59]CAPDU: 80 0D 01 02 [15:22:59]Write to MH i2c: E2 08 00 A8 01 80 0D 01 02 00 00 00 00 22 [15:22:59]Write i2c OK [15:22:59]MH_I2C_Read... [15:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:59]Read from MH i2c: E2 [15:22:59]MH_I2C_Read... [15:22:59]Read from MH i2c: E2 03 00 [15:22:59]MH_I2C_Read... [15:22:59]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [15:22:59]RAPDU: 90 00 [15:22:59]wFMCommunicate OK [15:22:59]wFMCommunicate request_size=255 [15:22:59]MH_SAM_APDU [15:22:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 53 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2D 1E 00 00 35 04 06 00 [15:22:59]Write to MH i2c: E2 02 01 A9 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 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 53 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2D 1E 00 00 35 04 06 00 00 00 72 [15:22:59]Write i2c OK [15:22:59]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [15:23:00]RAPDU: 90 00 [15:23:00]wFMCommunicate OK [15:23:00]wFMCommunicate request_size=11 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 0D 02 02 06 50 16 A2 08 DA 9D [15:23:00]Write to MH i2c: E2 0E 00 AA 01 80 0D 02 02 06 00 50 16 A2 08 DA 9D 00 00 B8 [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [15:23:00]RAPDU: 90 00 [15:23:00]wFMCommunicate OK [15:23:00]wFMCommunicate request_size=4 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 0D 03 02 [15:23:00]Write to MH i2c: E2 08 00 AB 01 80 0D 03 02 00 00 00 00 27 [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 0B 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 0B 00 AB 01 00 AA 67 D1 75 BD 64 B5 14 90 00 69 [15:23:00]RAPDU: AA 67 D1 75 BD 64 B5 14 90 00 [15:23:00]wFMCommunicate OK [15:23:00]SAM_PROTO_SignData done [15:23:00]FM_MakeSignedData done [15:23:00]CreateOFDProtocolMessage [15:23:00]wFMCommunicate request_size=4 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 11 00 00 [15:23:00]Write to MH i2c: E2 08 00 AC 01 80 11 00 00 00 00 00 00 27 [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 17 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 17 00 AC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 78 [15:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:23:00]wFMCommunicate OK [15:23:00]CreateOFDProtocolMessage done [15:23:00]OFDSenderStorePacket 7725 [15:23:00]StoreOFDPacket docnum=7725 [15:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 BE 79 08 01 C3 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 53 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2D 1E 00 00 35 04 06 00 50 16 A2 08 DA 9D AA 67 D1 75 BD 64 B5 14 [15:23:00]CheckFolder [15:23:00]dirname=/storage/ofd_packets [15:23:00]CheckFolder done [15:23:00]ProducePacketName [15:23:00]name=ofd_packets/00007725 [15:23:00]NVStorageSaveData ofd_packets/00007725 [15:23:00]File name is /storage/ofd_packets/00007725 [15:23:00]Write 302 bytes [15:23:00]NVStorageSaveData done [15:23:00]OFDSenderStorePacket done [15:23:00]KKMCreateOFDPacket done [15:23:00]NVStorageSaveData kkm_last_timestamp [15:23:00]File name is /storage/kkm_last_timestamp [15:23:00]Write 4 bytes [15:23:00]NVStorageSaveData done [15:23:00]ExternCall_PrintAddStr [15:23:00]wPrintStart [15:23:00]Write to MH i2c: 01 00 00 AD 01 AE [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: 01 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: 01 07 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: 01 07 00 AD 01 00 00 00 00 00 FF 0F C3 [15:23:00]RasterBufferAndPrint [15:23:00]line Счет N : (1)871836 [15:23:00]line ИНН: 02508201610067 [15:23:00]line Контрольно-Кассовый Чек [15:23:00]line ПРОДАЖА [15:23:00]line ТРК (МРК, ГНК) : 21 [15:23:00]line Товар: 2710194210 [15:23:00]line ДТ(л)-К-4 [15:23:00]line 9.190 * 76.20 [15:23:00]line = 700.28 [15:23:00]line НДС 12% НСП 1% [15:23:00]line > о реализуемом товаре [15:23:00]line ОКРУГЛЕНИЕ: -0.28 [15:23:00]line ИТОГО: 700.00 [15:23:00]line Внесено: 700.00 [15:23:00]line СДАЧА: 0.00 [15:23:00]line НСП 1% : 6.20 [15:23:00]line НДС 12% : 74.37 [15:23:00]line Наличными: 700.00 [15:23:00]line Безнал.: 0.00 [15:23:00]line Место: АЗС № 137 "Партнер Нефть" [15:23:00]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:23:00]line СНО: Общий режим [15:23:00]line Чек 123 22.09.2024 15:22 [15:23:00]line Смена: 70 ФФД: 1.0 [15:23:00]line ЗНМ: 0300000041 [15:23:00]line РНМ: 0000000000190446 [15:23:00]line Версия ККМ: v1.0 [15:23:00]line ФМ: 0000000002094258 [15:23:00]line ФД: 7725 [15:23:00]line ФПД: 88058137991837 [15:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152259&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7725&fm=88058137991837&tin=02508201610067®Number=0000000000190446&sum=70000 [15:23:00]OFD Sender: Processing packet 7725 [packets to send 51, broken 50] [15:23:00]ProducePacketName [15:23:00]name=ofd_packets/00007725 [15:23:00]OFD Sender: To server: pG, [15:23:00]CommunicateWithHost lk.salyk.kg:30040 [15:23:00]ConnectInit lk.salyk.kg [15:23:00]written 0, free lines is 4095 [15:23:01]Write to MH i2c: 01 00 00 D8 01 D9 [15:23:01]Write i2c OK [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: 01 [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: 01 07 00 [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 E9 0C D5 [15:23:01]RasterBufferAndPrint [15:23:01]line [15:23:01]line [15:23:01]line [15:23:01]line [15:23:01]line [15:23:01]written 0, free lines is 3311 [15:23:01]MH_Cut [15:23:01]Write to MH i2c: D1 01 00 DF 01 01 B2 [15:23:01]Write i2c OK [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: D1 [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: D1 01 00 [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: D1 01 00 DF 01 00 B1 [15:23:01]Write to MH i2c: 01 00 00 E0 01 E1 [15:23:01]Write i2c OK [15:23:01]MH_I2C_Read... [15:23:01]*** Cut start [15:23:01]*** Purtial cut [15:23:01]*** Stage 1: CUTSNS_PIN = 1 [15:23:02]Read from MH i2c: 01 [15:23:02]MH_I2C_Read... [15:23:02]*** Stop cut motor [15:23:02]*** Cut end [15:23:02]Read from MH i2c: 01 07 00 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [15:23:02]process_action close_receipt done [15:23:02]requested_data is exist [15:23:02]produce_requested_data [15:23:02]requested_item fm.sn is exist - process it [15:23:02]wFMCommunicate request_size=4 [15:23:02]MH_SAM_APDU [15:23:02]CAPDU: 80 11 00 00 [15:23:02]Write to MH i2c: E2 08 00 E1 01 80 11 00 00 00 00 00 00 5C [15:23:02]Write i2c OK [15:23:02]MH_I2C_Read... [15:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:02]Read from MH i2c: E2 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 17 00 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 17 00 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 AD [15:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:23:02]wFMCommunicate OK [15:23:02]requested_item fd.num is exist - process it [15:23:02]SAM_PROTO_GetFieldsCounters [15:23:02]wFMCommunicate request_size=4 [15:23:02]MH_SAM_APDU [15:23:02]CAPDU: 80 13 00 00 [15:23:02]Write to MH i2c: E2 08 00 E2 01 80 13 00 00 00 00 00 00 5F [15:23:02]Write i2c OK [15:23:02]MH_I2C_Read... [15:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:02]Read from MH i2c: E2 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 62 00 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 62 00 E2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2D 1E 00 00 0E 04 04 00 46 00 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 7F [15:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2D 1E 00 00 0E 04 04 00 46 00 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 [15:23:02]wFMCommunicate OK [15:23:02]SAM_PROTO_GetFieldsCounters done [15:23:02]requested_item shift.num is exist - process it [15:23:02]requested_item shift.opened is exist - process it [15:23:02]req_shift_opened [15:23:02]FM_GetShiftState [15:23:02]SAM_PROTO_GetShiftState [15:23:02]wFMCommunicate request_size=4 [15:23:02]MH_SAM_APDU [15:23:02]CAPDU: 80 13 01 00 [15:23:02]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [15:23:02]Write i2c OK [15:23:02]MH_I2C_Read... [15:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:02]Read from MH i2c: E2 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 0E 00 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 24 [15:23:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:23:02]wFMCommunicate OK [15:23:02]SAM_PROTO_GetShiftState done [15:23:02]FM_GetShiftState done [15:23:02]req_shift_opened done [15:23:02]requested_item shift.open_date is exist - process it [15:23:02]req_shift_open_date [15:23:02]req_shift_open_date done [15:23:02]produce_requested_data done [15:23:02]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7725,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:23:02]process_action_free close_receipt [15:23:02]json_value_free [15:23:02]json_value_free done [15:23:02]process_json_proto returns [15:23:02]Send response to host [15:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7725,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:23:02]free response buf [15:23:02]execute_script done [15:23:02]execute_script returns [15:23:02]free content buf [15:23:02]Sock 9.Close socket [15:23:02]Sock 9.Thread stoped [15:23:03]Connected sock=11 [15:23:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 BE 79 08 01 C3 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 53 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2D 1E 00 00 35 04 06 00 50 16 A2 08 DA 9D AA 67 D1 75 BD 64 B5 14 [15:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 37 C8 47 00 95 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 32 30 39 34 32 35 38 10 04 04 00 2D 1E 00 00 F4 03 04 00 14 E1 EF 66 B6 04 01 00 00 5D 78 6F 0B 58 69 07 7A [15:23:06]CommunicateWithHost err = 0 [15:23:06]CheckOFDResponse [15:23:06]1017 (14) - 77093643461234 [15:23:06]1041 (16) - 0000000002094258 [15:23:06]1040 (4) - 7725 [15:23:06]1012 (4) - 22.09.2024 09:19 [15:23:06]1206 (1) - 0 [15:23:06]OFD Sender: Remove packet 7725 [15:23:06]ProducePacketName [15:23:06]name=ofd_packets/00007725 [15:23:06]NVStorageDeleteData [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:13]recv_with_timeout no data received [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:24]recv_with_timeout no data received [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:35]recv_with_timeout no data received [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:23:58]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:16]recv_with_timeout no data received [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:22]accept exits with 10 [15:24:22]New connection [15:24:22]New thread 3066686820 created [15:24:22]Thread 3066543460 joined [15:24:22]Waiting for new connection... [15:24:22] Sock 10.Parse request [15:24:22]Sock 10.Check first char [15:24:22]Sock 10.First char is OK [15:24:22]request: POST /json_proto HTTP/1.0 [15:24:22]Method: POST [15:24:22]URL: /json_proto [15:24:22]Method is POST - this is cgi request [15:24:22]url: /json_proto [15:24:22]query_string will be loaded in cgi processing [15:24:22]execute_cgi json_proto POST (null) [15:24:22]execute_cgi path=json_proto method=POST [15:24:22]POST find Content-Length [15:24:22]Host: 172.17.47.195:8080 [15:24:22]Content-Length: 677 [15:24:22]Content-Type: application/json [15:24:22] [15:24:22]POST finish read [15:24:22]Found Content-Length = 677 [15:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:22]execute_script... [15:24:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:22]POST & json_proto [15:24:22]process_json_proto [15:24:22]json parsed OK: [15:24:22]protocol is kg_v1.0 [15:24:22]action value=close_receipt [15:24:22]process_action close_receipt [15:24:22]cmd_close_receipt [15:24:22]MH_GetDate [15:24:22]Write to MH i2c: F0 00 00 E4 01 D4 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: F0 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: F0 09 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: F0 09 00 E4 01 00 A7 36 F0 66 96 2E 95 66 CF [15:24:22]GetLastDocTimeStamp 1727018579 [15:24:22]current date 1727018663 [15:24:22]FM_GetShiftState [15:24:22]SAM_PROTO_GetShiftState [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 13 01 00 [15:24:22]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 0E 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 26 [15:24:22]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:24:22]wFMCommunicate OK [15:24:22]SAM_PROTO_GetShiftState done [15:24:22]FM_GetShiftState done [15:24:22]opened in 1726964224 [15:24:22]opened+sec_in_day 1727050624 [15:24:22]quantity*price = 60003 [15:24:22]sum+1 = 60004 [15:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 124 22.09.2024 15:24 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7726 ФПД: 81215799010756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152423&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7726&fm=81215799010756&tin=02508201610067®Number=0000000000190446&sum=60000 [15:24:23]StoreToDocumentArchive [15:24:23]shift 70 fd 7726 [15:24:23]save to /storage/0070/doc_00007726 [15:24:23]save last doc name /storage/0070/doc_00007726 to /storage/kkm_last_doc_name [15:24:23]save OK [15:24:23]Clear old archive folders... [15:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:23]tlvbuf is 01E2EDB0 [15:24:23]SAM_PROTO_ClearQueue [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 09 00 00 [15:24:23]Write to MH i2c: E2 08 00 F2 01 80 09 00 00 00 00 00 00 65 [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 03 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [15:24:24]RAPDU: 90 00 [15:24:24]wFMCommunicate OK [15:24:24]SAM_PROTO_ClearQueue done [15:24:24]KKMCreateOFDPacket [15:24:24]OFDProtocolAddRootSTLVToBuf [15:24:24]FM_MakeSignedData [15:24:24]FM_MakeSignedData [15:24:24]SAM_PROTO_SignData [15:24:24]wFMCommunicate request_size=4 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 0D 01 02 [15:24:24]Write to MH i2c: E2 08 00 F3 01 80 0D 01 02 00 00 00 00 6D [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 03 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [15:24:24]RAPDU: 90 00 [15:24:24]wFMCommunicate OK [15:24:24]wFMCommunicate request_size=255 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A7 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2E 1E 00 00 35 04 06 00 49 [15:24:24]Write to MH i2c: E2 02 01 F4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A7 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2E 1E 00 00 35 04 06 00 49 00 00 3A [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 03 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [15:24:24]RAPDU: 90 00 [15:24:24]wFMCommunicate OK [15:24:24]wFMCommunicate request_size=10 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 0D 02 02 05 DD 86 D9 A5 C4 [15:24:24]Write to MH i2c: E2 0D 00 F5 01 80 0D 02 02 05 00 DD 86 D9 A5 C4 00 00 1F [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 03 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [15:24:24]RAPDU: 90 00 [15:24:24]wFMCommunicate OK [15:24:24]wFMCommunicate request_size=4 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 0D 03 02 [15:24:24]Write to MH i2c: E2 08 00 F6 01 80 0D 03 02 00 00 00 00 72 [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 0B 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 0B 00 F6 01 00 38 42 E5 E4 A2 07 59 90 90 00 48 [15:24:24]RAPDU: 38 42 E5 E4 A2 07 59 90 90 00 [15:24:24]wFMCommunicate OK [15:24:24]SAM_PROTO_SignData done [15:24:24]FM_MakeSignedData done [15:24:24]CreateOFDProtocolMessage [15:24:24]wFMCommunicate request_size=4 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 11 00 00 [15:24:24]Write to MH i2c: E2 08 00 F7 01 80 11 00 00 00 00 00 00 72 [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 17 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 17 00 F7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C3 [15:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:24:24]wFMCommunicate OK [15:24:24]CreateOFDProtocolMessage done [15:24:24]OFDSenderStorePacket 7726 [15:24:24]StoreOFDPacket docnum=7726 [15:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 A6 EB 07 01 31 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A7 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2E 1E 00 00 35 04 06 00 49 DD 86 D9 A5 C4 38 42 E5 E4 A2 07 59 90 [15:24:24]CheckFolder [15:24:24]dirname=/storage/ofd_packets [15:24:24]CheckFolder done [15:24:24]ProducePacketName [15:24:24]name=ofd_packets/00007726 [15:24:24]NVStorageSaveData ofd_packets/00007726 [15:24:24]File name is /storage/ofd_packets/00007726 [15:24:24]Write 301 bytes [15:24:24]NVStorageSaveData done [15:24:24]OFDSenderStorePacket done [15:24:24]KKMCreateOFDPacket done [15:24:24]NVStorageSaveData kkm_last_timestamp [15:24:24]File name is /storage/kkm_last_timestamp [15:24:24]Write 4 bytes [15:24:24]NVStorageSaveData done [15:24:24]ExternCall_PrintAddStr [15:24:24]wPrintStart [15:24:24]Write to MH i2c: 01 00 00 F8 01 F9 [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 07 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [15:24:24]RasterBufferAndPrint [15:24:24]line Счет N : (1)871838 [15:24:24]line ИНН: 02508201610067 [15:24:24]line Контрольно-Кассовый Чек [15:24:24]line ПРОДАЖА [15:24:24]line ТРК (МРК, ГНК) : 43 [15:24:24]line Товар: 2710124130 [15:24:24]line Аи-92-К-5 [15:24:24]line 8.850 * 67.80 [15:24:24]line = 600.03 [15:24:24]line НДС 12% НСП 1% [15:24:24]line > о реализуемом товаре [15:24:24]line ОКРУГЛЕНИЕ: -0.03 [15:24:24]line ИТОГО: 600.00 [15:24:24]line Внесено: 600.00 [15:24:24]line СДАЧА: 0.00 [15:24:24]line НСП 1% : 5.31 [15:24:24]line НДС 12% : 63.72 [15:24:24]line Наличными: 600.00 [15:24:24]line Безнал.: 0.00 [15:24:24]line Место: АЗС № 137 "Партнер Нефть" [15:24:24]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:24:24]line СНО: Общий режим [15:24:24]line Чек 124 22.09.2024 15:24 [15:24:24]line Смена: 70 ФФД: 1.0 [15:24:24]line ЗНМ: 0300000041 [15:24:24]line РНМ: 0000000000190446 [15:24:24]line Версия ККМ: v1.0 [15:24:24]line ФМ: 0000000002094258 [15:24:24]line ФД: 7726 [15:24:24]line ФПД: 81215799010756 [15:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152423&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7726&fm=81215799010756&tin=02508201610067®Number=0000000000190446&sum=60000 [15:24:24]OFD Sender: Processing packet 7726 [packets to send 51, broken 50] [15:24:24]ProducePacketName [15:24:24]name=ofd_packets/00007726 [15:24:24]OFD Sender: To server: pG, [15:24:24]CommunicateWithHost lk.salyk.kg:30040 [15:24:24]ConnectInit lk.salyk.kg [15:24:24]written 0, free lines is 4095 [15:24:25]Write to MH i2c: 01 00 00 23 02 25 [15:24:25]Write i2c OK [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: 01 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: 01 07 00 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 EC 0C 24 [15:24:25]RasterBufferAndPrint [15:24:25]line [15:24:25]line [15:24:25]line [15:24:25]line [15:24:25]line [15:24:25]written 0, free lines is 3314 [15:24:25]MH_Cut [15:24:25]Write to MH i2c: D1 01 00 2A 02 01 FE [15:24:25]Write i2c OK [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: D1 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: D1 01 00 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: D1 01 00 2A 02 00 FD [15:24:25]Write to MH i2c: 01 00 00 2B 02 2D [15:24:25]Write i2c OK [15:24:25]MH_I2C_Read... [15:24:25]Connected sock=11 [15:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 A6 EB 07 01 31 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A7 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2E 1E 00 00 35 04 06 00 49 DD 86 D9 A5 C4 38 42 E5 E4 A2 07 59 90 [15:24:25]*** Cut start [15:24:25]*** Purtial cut [15:24:25]*** Stage 1: CUTSNS_PIN = 1 [15:24:26]Read from MH i2c: 01 [15:24:26]MH_I2C_Read... [15:24:26]*** Stop cut motor [15:24:26]*** Cut end [15:24:26]Read from MH i2c: 01 07 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [15:24:26]process_action close_receipt done [15:24:26]requested_data is exist [15:24:26]produce_requested_data [15:24:26]requested_item fm.sn is exist - process it [15:24:26]wFMCommunicate request_size=4 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 11 00 00 [15:24:26]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:26]Read from MH i2c: E2 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 17 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 F9 [15:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:24:26]wFMCommunicate OK [15:24:26]requested_item fd.num is exist - process it [15:24:26]SAM_PROTO_GetFieldsCounters [15:24:26]wFMCommunicate request_size=4 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 13 00 00 [15:24:26]Write to MH i2c: E2 08 00 2D 02 80 13 00 00 00 00 00 00 AB [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:26]Read from MH i2c: E2 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 62 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 62 00 2D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2E 1E 00 00 0E 04 04 00 46 00 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 CF [15:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2E 1E 00 00 0E 04 04 00 46 00 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 [15:24:26]wFMCommunicate OK [15:24:26]SAM_PROTO_GetFieldsCounters done [15:24:26]requested_item shift.num is exist - process it [15:24:26]requested_item shift.opened is exist - process it [15:24:26]req_shift_opened [15:24:26]FM_GetShiftState [15:24:26]SAM_PROTO_GetShiftState [15:24:26]wFMCommunicate request_size=4 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 13 01 00 [15:24:26]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:26]Read from MH i2c: E2 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 0E 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 70 [15:24:26]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:24:26]wFMCommunicate OK [15:24:26]SAM_PROTO_GetShiftState done [15:24:26]FM_GetShiftState done [15:24:26]req_shift_opened done [15:24:26]requested_item shift.open_date is exist - process it [15:24:26]req_shift_open_date [15:24:26]req_shift_open_date done [15:24:26]produce_requested_data done [15:24:26]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7726,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:24:26]process_action_free close_receipt [15:24:26]json_value_free [15:24:26]json_value_free done [15:24:26]process_json_proto returns [15:24:26]Send response to host [15:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7726,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:24:26]free response buf [15:24:26]execute_script done [15:24:26]execute_script returns [15:24:26]free content buf [15:24:26]Sock 10.Close socket [15:24:26]Sock 10.Thread stoped [15:24:26]accept exits with 9 [15:24:26]New connection [15:24:26]New thread 3066543460 created [15:24:26]Thread 3066686820 joined [15:24:26]Waiting for new connection... [15:24:26] Sock 9.Parse request [15:24:26]Sock 9.Check first char [15:24:26]Sock 9.First char is OK [15:24:26]request: POST /json_proto HTTP/1.0 [15:24:26]Method: POST [15:24:26]URL: /json_proto [15:24:26]Method is POST - this is cgi request [15:24:26]url: /json_proto [15:24:26]query_string will be loaded in cgi processing [15:24:26]execute_cgi json_proto POST (null) [15:24:26]execute_cgi path=json_proto method=POST [15:24:26]POST find Content-Length [15:24:26]Host: 172.17.47.195:8080 [15:24:26]Content-Length: 984 [15:24:26]Content-Type: application/json [15:24:26] [15:24:26]POST finish read [15:24:26]Found Content-Length = 984 [15:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 20.960, "sum" : 1400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.96 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:26]execute_script... [15:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 20.960, "sum" : 1400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.96 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:26]POST & json_proto [15:24:26]process_json_proto [15:24:26]json parsed OK: [15:24:26]protocol is kg_v1.0 [15:24:26]action value=close_receipt [15:24:26]process_action close_receipt [15:24:26]cmd_close_receipt [15:24:26]MH_GetDate [15:24:26]Write to MH i2c: F0 00 00 2F 02 20 [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: F0 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: F0 09 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: F0 09 00 2F 02 00 AB 36 F0 66 96 2E 95 66 1F [15:24:26]GetLastDocTimeStamp 1727018663 [15:24:26]current date 1727018667 [15:24:26]FM_GetShiftState [15:24:26]SAM_PROTO_GetShiftState [15:24:26]wFMCommunicate request_size=4 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 13 01 00 [15:24:26]Write to MH i2c: E2 08 00 30 02 80 13 01 00 00 00 00 00 AF [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E2 88 47 00 00 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2E 1E 00 00 F4 03 04 00 67 E1 EF 66 B6 04 01 00 00 CA A5 EB 15 A2 89 C8 75 [15:24:26]CommunicateWithHost err = 0 [15:24:26]CheckOFDResponse [15:24:26]1017 (14) - 77093643461234 [15:24:26]1041 (16) - 0000000002094258 [15:24:26]1040 (4) - 7726 [15:24:26]1012 (4) - 22.09.2024 09:20 [15:24:26]1206 (1) - 0 [15:24:26]OFD Sender: Remove packet 7726 [15:24:26]ProducePacketName [15:24:26]name=ofd_packets/00007726 [15:24:26]NVStorageDeleteData [15:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:26]Read from MH i2c: E2 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 0E 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 0E 00 30 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 72 [15:24:26]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:24:26]wFMCommunicate OK [15:24:26]SAM_PROTO_GetShiftState done [15:24:26]FM_GetShiftState done [15:24:26]opened in 1726964224 [15:24:26]opened+sec_in_day 1727050624 [15:24:26]quantity*price = 140012 [15:24:26]sum+1 = 140014 [15:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 125 22.09.2024 15:24 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 137 сэкономлено 20.96 сом ФМ: 0000000002094258 ФД: 7727 ФПД: 77623406574590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152427&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7727&fm=77623406574590&tin=02508201610067®Number=0000000000190446&sum=140000 [15:24:28]StoreToDocumentArchive [15:24:28]shift 70 fd 7727 [15:24:28]save to /storage/0070/doc_00007727 [15:24:28]save last doc name /storage/0070/doc_00007727 to /storage/kkm_last_doc_name [15:24:28]save OK [15:24:28]Clear old archive folders... [15:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:28]tlvbuf is 01DD8440 [15:24:28]SAM_PROTO_ClearQueue [15:24:28]wFMCommunicate request_size=4 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 09 00 00 [15:24:28]Write to MH i2c: E2 08 00 3D 02 80 09 00 00 00 00 00 00 B1 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [15:24:28]RAPDU: 90 00 [15:24:28]wFMCommunicate OK [15:24:28]SAM_PROTO_ClearQueue done [15:24:28]KKMCreateOFDPacket [15:24:28]OFDProtocolAddRootSTLVToBuf [15:24:28]FM_MakeSignedData [15:24:28]FM_MakeSignedData [15:24:28]SAM_PROTO_SignData [15:24:28]wFMCommunicate request_size=4 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 0D 01 02 [15:24:28]Write to MH i2c: E2 08 00 3E 02 80 0D 01 02 00 00 00 00 B9 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [15:24:28]RAPDU: 90 00 [15:24:28]wFMCommunicate OK [15:24:28]wFMCommunicate request_size=255 [15:24:28]MH_SAM_APDU [15:24: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 E0 51 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 ED 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 AB 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2F 1E 00 00 35 04 06 00 46 [15:24:28]Write to MH i2c: E2 02 01 3F 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 E0 51 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 ED 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 AB 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2F 1E 00 00 35 04 06 00 46 00 00 F3 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [15:24:28]RAPDU: 90 00 [15:24:28]wFMCommunicate OK [15:24:28]wFMCommunicate request_size=10 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 0D 02 02 05 99 1B 93 3B FE [15:24:28]Write to MH i2c: E2 0D 00 40 02 80 0D 02 02 05 00 99 1B 93 3B FE 00 00 46 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [15:24:28]RAPDU: 90 00 [15:24:28]wFMCommunicate OK [15:24:28]wFMCommunicate request_size=4 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 0D 03 02 [15:24:28]Write to MH i2c: E2 08 00 41 02 80 0D 03 02 00 00 00 00 BE [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 0B 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 0B 00 41 02 00 37 E8 CA CE 09 5A 15 31 90 00 1F [15:24:28]RAPDU: 37 E8 CA CE 09 5A 15 31 90 00 [15:24:28]wFMCommunicate OK [15:24:28]SAM_PROTO_SignData done [15:24:28]FM_MakeSignedData done [15:24:28]CreateOFDProtocolMessage [15:24:28]wFMCommunicate request_size=4 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 11 00 00 [15:24:28]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 17 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 0F [15:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:24:28]wFMCommunicate OK [15:24:28]CreateOFDProtocolMessage done [15:24:28]OFDSenderStorePacket 7727 [15:24:28]StoreOFDPacket docnum=7727 [15:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 67 62 07 01 7E 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 E0 51 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 ED 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 AB 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2F 1E 00 00 35 04 06 00 46 99 1B 93 3B FE 37 E8 CA CE 09 5A 15 31 [15:24:28]CheckFolder [15:24:28]dirname=/storage/ofd_packets [15:24:28]CheckFolder done [15:24:28]ProducePacketName [15:24:28]name=ofd_packets/00007727 [15:24:28]NVStorageSaveData ofd_packets/00007727 [15:24:28]File name is /storage/ofd_packets/00007727 [15:24:28]Write 301 bytes [15:24:28]NVStorageSaveData done [15:24:28]OFDSenderStorePacket done [15:24:28]KKMCreateOFDPacket done [15:24:28]NVStorageSaveData kkm_last_timestamp [15:24:28]File name is /storage/kkm_last_timestamp [15:24:28]Write 4 bytes [15:24:28]NVStorageSaveData done [15:24:28]ExternCall_PrintAddStr [15:24:28]wPrintStart [15:24:28]Write to MH i2c: 01 00 00 43 02 45 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: 01 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: 01 07 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [15:24:28]RasterBufferAndPrint [15:24:28]line Счет N : (1)871837 [15:24:28]line ИНН: 02508201610067 [15:24:28]line Контрольно-Кассовый Чек [15:24:28]line ПРОДАЖА [15:24:28]line ТРК (МРК, ГНК) : 33 [15:24:28]line Товар: 2710124130 [15:24:28]line Аи-92-К-5 [15:24:28]line 20.960 * 66.80 [15:24:28]line = 1400.13 [15:24:28]line НДС 12% НСП 1% [15:24:28]line > о реализуемом товаре [15:24:28]line ОКРУГЛЕНИЕ: -0.13 [15:24:28]line ИТОГО: 1400.00 [15:24:28]line Внесено: 1400.00 [15:24:28]line СДАЧА: 0.00 [15:24:28]line НСП 1% : 12.39 [15:24:28]line НДС 12% : 148.69 [15:24:28]line Наличными: 1400.00 [15:24:28]line Безнал.: 0.00 [15:24:28]line Место: АЗС № 137 "Партнер Нефть" [15:24:28]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:24:28]line СНО: Общий режим [15:24:28]line Чек 125 22.09.2024 15:24 [15:24:28]line Смена: 70 ФФД: 1.0 [15:24:28]line ЗНМ: 0300000041 [15:24:28]line РНМ: 0000000000190446 [15:24:28]line Версия ККМ: v1.0 [15:24:28]line [15:24:28]line Дисконтная программа [15:24:28]line АИ-92 [15:24:28]line номер 137 [15:24:28]line сэкономлено 20.96 сом [15:24:29]line ФМ: 0000000002094258 [15:24:29]line ФД: 7727 [15:24:29]line ФПД: 77623406574590 [15:24:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152427&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7727&fm=77623406574590&tin=02508201610067®Number=0000000000190446&sum=140000 [15:24:29]OFD Sender: Processing packet 7727 [packets to send 51, broken 50] [15:24:29]ProducePacketName [15:24:29]name=ofd_packets/00007727 [15:24:29]OFD Sender: To server: pG, [15:24:29]CommunicateWithHost lk.salyk.kg:30040 [15:24:29]ConnectInit lk.salyk.kg [15:24:29]written 0, free lines is 4095 [15:24:29]Write to MH i2c: 01 00 00 73 02 75 [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 07 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 9D 0C 25 [15:24:29]RasterBufferAndPrint [15:24:29]line [15:24:29]line [15:24:29]line [15:24:29]line [15:24:29]line [15:24:29]written 0, free lines is 3244 [15:24:29]MH_Cut [15:24:29]Write to MH i2c: D1 01 00 7A 02 01 4E [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: D1 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: D1 01 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: D1 01 00 7A 02 00 4D [15:24:29]Write to MH i2c: 01 00 00 7B 02 7D [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]Connected sock=10 [15:24:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 67 62 07 01 7E 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 E0 51 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 ED 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 AB 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 2F 1E 00 00 35 04 06 00 46 99 1B 93 3B FE 37 E8 CA CE 09 5A 15 31 [15:24:30]*** Cut start [15:24:30]*** Purtial cut [15:24:30]*** Stage 1: CUTSNS_PIN = 1 [15:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 9D CD 47 00 F3 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 32 30 39 34 32 35 38 10 04 04 00 2F 1E 00 00 F4 03 04 00 6B E1 EF 66 B6 04 01 00 00 03 FA 60 47 02 A1 FB C3 [15:24:30]CommunicateWithHost err = 0 [15:24:30]CheckOFDResponse [15:24:30]1017 (14) - 77093643461234 [15:24:30]1041 (16) - 0000000002094258 [15:24:30]1040 (4) - 7727 [15:24:30]1012 (4) - 22.09.2024 09:20 [15:24:30]1206 (1) - 0 [15:24:30]OFD Sender: Remove packet 7727 [15:24:30]ProducePacketName [15:24:30]name=ofd_packets/00007727 [15:24:30]NVStorageDeleteData [15:24:30]Read from MH i2c: 01 [15:24:30]MH_I2C_Read... [15:24:30]*** Stop cut motor [15:24:30]*** Cut end [15:24:30]Read from MH i2c: 01 07 00 [15:24:30]MH_I2C_Read... [15:24:30]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [15:24:30]process_action close_receipt done [15:24:30]requested_data is exist [15:24:30]produce_requested_data [15:24:30]requested_item fm.sn is exist - process it [15:24:30]wFMCommunicate request_size=4 [15:24:30]MH_SAM_APDU [15:24:30]CAPDU: 80 11 00 00 [15:24:30]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [15:24:30]Write i2c OK [15:24:30]MH_I2C_Read... [15:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:30]Read from MH i2c: E2 [15:24:30]MH_I2C_Read... [15:24:30]Read from MH i2c: E2 17 00 [15:24:30]MH_I2C_Read... [15:24:30]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 49 [15:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:24:30]wFMCommunicate OK [15:24:30]requested_item fd.num is exist - process it [15:24:30]SAM_PROTO_GetFieldsCounters [15:24:30]wFMCommunicate request_size=4 [15:24:30]MH_SAM_APDU [15:24:30]CAPDU: 80 13 00 00 [15:24:30]Write to MH i2c: E2 08 00 7D 02 80 13 00 00 00 00 00 00 FB [15:24:30]Write i2c OK [15:24:30]MH_I2C_Read... [15:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:30]Read from MH i2c: E2 [15:24:30]MH_I2C_Read... [15:24:30]Read from MH i2c: E2 62 00 [15:24:30]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 62 00 7D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2F 1E 00 00 0E 04 04 00 46 00 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 23 [15:24:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 2F 1E 00 00 0E 04 04 00 46 00 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 [15:24:31]wFMCommunicate OK [15:24:31]SAM_PROTO_GetFieldsCounters done [15:24:31]requested_item shift.num is exist - process it [15:24:31]requested_item shift.opened is exist - process it [15:24:31]req_shift_opened [15:24:31]FM_GetShiftState [15:24:31]SAM_PROTO_GetShiftState [15:24:31]wFMCommunicate request_size=4 [15:24:31]MH_SAM_APDU [15:24:31]CAPDU: 80 13 01 00 [15:24:31]Write to MH i2c: E2 08 00 7E 02 80 13 01 00 00 00 00 00 FD [15:24:31]Write i2c OK [15:24:31]MH_I2C_Read... [15:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:31]Read from MH i2c: E2 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 0E 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 0E 00 7E 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 C0 [15:24:31]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:24:31]wFMCommunicate OK [15:24:31]SAM_PROTO_GetShiftState done [15:24:31]FM_GetShiftState done [15:24:31]req_shift_opened done [15:24:31]requested_item shift.open_date is exist - process it [15:24:31]req_shift_open_date [15:24:31]req_shift_open_date done [15:24:31]produce_requested_data done [15:24:31]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7727,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:24:31]process_action_free close_receipt [15:24:31]json_value_free [15:24:31]json_value_free done [15:24:31]process_json_proto returns [15:24:31]Send response to host [15:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7727,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:24:31]free response buf [15:24:31]execute_script done [15:24:31]execute_script returns [15:24:31]free content buf [15:24:31]Sock 9.Close socket [15:24:31]Sock 9.Thread stoped [15:24:31]OFD Sender: No OFD packet to send [15:24:35]recv_with_timeout no data received [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:24:57]accept exits with 7 [15:24:57]New connection [15:24:57]New thread 3066686820 created [15:24:57]Thread 3066543460 joined [15:24:57]Waiting for new connection... [15:24:57] Sock 7.Parse request [15:24:57]Sock 7.Check first char [15:24:57]Sock 7.First char is OK [15:24:57]request: POST /json_proto HTTP/1.0 [15:24:57]Method: POST [15:24:57]URL: /json_proto [15:24:57]Method is POST - this is cgi request [15:24:57]url: /json_proto [15:24:57]query_string will be loaded in cgi processing [15:24:57]execute_cgi json_proto POST (null) [15:24:57]execute_cgi path=json_proto method=POST [15:24:57]POST find Content-Length [15:24:57]Host: 172.17.47.195:8080 [15:24:57]Content-Length: 984 [15:24:57]Content-Type: application/json [15:24:57] [15:24:57]POST finish read [15:24:57]Found Content-Length = 984 [15:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871839", "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.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.46 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:57]execute_script... [15:24: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)871839", "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.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.46 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:57]POST & json_proto [15:24:57]process_json_proto [15:24:57]json parsed OK: [15:24:57]protocol is kg_v1.0 [15:24:57]action value=close_receipt [15:24:57]process_action close_receipt [15:24:57]cmd_close_receipt [15:24:57]MH_GetDate [15:24:57]Write to MH i2c: F0 00 00 7F 02 70 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 09 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 09 00 7F 02 00 CA 36 F0 66 96 2E 95 66 8E [15:24:57]GetLastDocTimeStamp 1727018667 [15:24:57]current date 1727018698 [15:24:57]FM_GetShiftState [15:24:57]SAM_PROTO_GetShiftState [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 13 01 00 [15:24:57]Write to MH i2c: E2 08 00 80 02 80 13 01 00 00 00 00 00 FF [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0E 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0E 00 80 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 C2 [15:24:57]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:24:57]wFMCommunicate OK [15:24:57]SAM_PROTO_GetShiftState done [15:24:57]FM_GetShiftState done [15:24:57]opened in 1726964224 [15:24:57]opened+sec_in_day 1727050624 [15:24:57]quantity*price = 150032 [15:24:57]sum+1 = 150034 [15:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 126 22.09.2024 15:24 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 137 сэкономлено 22.46 сом ФМ: 0000000002094258 ФД: 7728 ФПД: 127337565751752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152458&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7728&fm=127337565751752&tin=02508201610067®Number=0000000000190446&sum=150000 [15:24:58]StoreToDocumentArchive [15:24:58]shift 70 fd 7728 [15:24:58]save to /storage/0070/doc_00007728 [15:24:58]save last doc name /storage/0070/doc_00007728 to /storage/kkm_last_doc_name [15:24:58]save OK [15:24:58]Clear old archive folders... [15:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:58]tlvbuf is 01E32C40 [15:24:58]SAM_PROTO_ClearQueue [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 09 00 00 [15:24:58]Write to MH i2c: E2 08 00 8D 02 80 09 00 00 00 00 00 00 01 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [15:24:58]RAPDU: 90 00 [15:24:58]wFMCommunicate OK [15:24:58]SAM_PROTO_ClearQueue done [15:24:58]KKMCreateOFDPacket [15:24:58]OFDProtocolAddRootSTLVToBuf [15:24:58]FM_MakeSignedData [15:24:58]FM_MakeSignedData [15:24:58]SAM_PROTO_SignData [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 0D 01 02 [15:24:58]Write to MH i2c: E2 08 00 8E 02 80 0D 01 02 00 00 00 00 09 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [15:24:58]RAPDU: 90 00 [15:24:58]wFMCommunicate OK [15:24:58]wFMCommunicate request_size=255 [15:24:58]MH_SAM_APDU [15:24: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 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 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 7E 00 00 00 F4 03 04 00 CA 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 30 1E 00 00 35 04 06 00 73 [15:24:58]Write to MH i2c: E2 02 01 8F 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 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 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 7E 00 00 00 F4 03 04 00 CA 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 30 1E 00 00 35 04 06 00 73 00 00 B3 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 03 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [15:24:59]RAPDU: 90 00 [15:24:59]wFMCommunicate OK [15:24:59]wFMCommunicate request_size=10 [15:24:59]MH_SAM_APDU [15:24:59]CAPDU: 80 0D 02 02 05 D0 16 5F 89 C8 [15:24:59]Write to MH i2c: E2 0D 00 90 02 80 0D 02 02 05 00 D0 16 5F 89 C8 00 00 AC [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 03 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [15:24:59]RAPDU: 90 00 [15:24:59]wFMCommunicate OK [15:24:59]wFMCommunicate request_size=4 [15:24:59]MH_SAM_APDU [15:24:59]CAPDU: 80 0D 03 02 [15:24:59]Write to MH i2c: E2 08 00 91 02 80 0D 03 02 00 00 00 00 0E [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 0B 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 0B 00 91 02 00 1D BB D8 5D 4D 2B 90 16 90 00 3A [15:24:59]RAPDU: 1D BB D8 5D 4D 2B 90 16 90 00 [15:24:59]wFMCommunicate OK [15:24:59]SAM_PROTO_SignData done [15:24:59]FM_MakeSignedData done [15:24:59]CreateOFDProtocolMessage [15:24:59]wFMCommunicate request_size=4 [15:24:59]MH_SAM_APDU [15:24:59]CAPDU: 80 11 00 00 [15:24:59]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 17 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5F [15:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:24:59]wFMCommunicate OK [15:24:59]CreateOFDProtocolMessage done [15:24:59]OFDSenderStorePacket 7728 [15:24:59]StoreOFDPacket docnum=7728 [15:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 51 1C 07 01 1C 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 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 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 7E 00 00 00 F4 03 04 00 CA 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 30 1E 00 00 35 04 06 00 73 D0 16 5F 89 C8 1D BB D8 5D 4D 2B 90 16 [15:24:59]CheckFolder [15:24:59]dirname=/storage/ofd_packets [15:24:59]CheckFolder done [15:24:59]ProducePacketName [15:24:59]name=ofd_packets/00007728 [15:24:59]NVStorageSaveData ofd_packets/00007728 [15:24:59]File name is /storage/ofd_packets/00007728 [15:24:59]Write 301 bytes [15:24:59]NVStorageSaveData done [15:24:59]OFDSenderStorePacket done [15:24:59]KKMCreateOFDPacket done [15:24:59]NVStorageSaveData kkm_last_timestamp [15:24:59]File name is /storage/kkm_last_timestamp [15:24:59]Write 4 bytes [15:24:59]NVStorageSaveData done [15:24:59]ExternCall_PrintAddStr [15:24:59]wPrintStart [15:24:59]Write to MH i2c: 01 00 00 93 02 95 [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 93 02 00 00 00 00 00 FF 0F AA [15:24:59]RasterBufferAndPrint [15:24:59]line Счет N : (1)871839 [15:24:59]line ИНН: 02508201610067 [15:24:59]line Контрольно-Кассовый Чек [15:24:59]line ПРОДАЖА [15:24:59]line ТРК (МРК, ГНК) : 63 [15:24:59]line Товар: 2710124130 [15:24:59]line Аи-92-К-5 [15:24:59]line 22.460 * 66.80 [15:24:59]line = 1500.33 [15:24:59]line НДС 12% НСП 1% [15:24:59]line > о реализуемом товаре [15:24:59]line ОКРУГЛЕНИЕ: -0.33 [15:24:59]line ИТОГО: 1500.00 [15:24:59]line Внесено: 1500.00 [15:24:59]line СДАЧА: 0.00 [15:24:59]line НСП 1% : 13.28 [15:24:59]line НДС 12% : 159.33 [15:24:59]line Наличными: 1500.00 [15:24:59]line Безнал.: 0.00 [15:24:59]line Место: АЗС № 137 "Партнер Нефть" [15:24:59]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:24:59]line СНО: Общий режим [15:24:59]line Чек 126 22.09.2024 15:24 [15:24:59]line Смена: 70 ФФД: 1.0 [15:24:59]line ЗНМ: 0300000041 [15:24:59]line РНМ: 0000000000190446 [15:24:59]line Версия ККМ: v1.0 [15:24:59]line [15:24:59]line Дисконтная программа [15:24:59]line АИ-92 [15:24:59]line номер 137 [15:24:59]line сэкономлено 22.46 сом [15:24:59]line ФМ: 0000000002094258 [15:24:59]line ФД: 7728 [15:24:59]line ФПД: 127337565751752 [15:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152458&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7728&fm=127337565751752&tin=02508201610067®Number=0000000000190446&sum=150000 [15:24:59]written 0, free lines is 4095 [15:24:59]OFD Sender: Processing packet 7728 [packets to send 51, broken 50] [15:24:59]ProducePacketName [15:24:59]name=ofd_packets/00007728 [15:24:59]OFD Sender: To server: pG, [15:24:59]CommunicateWithHost lk.salyk.kg:30040 [15:24:59]ConnectInit lk.salyk.kg [15:24:59]Write to MH i2c: 01 00 00 C3 02 C5 [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 9B 0C 73 [15:24:59]RasterBufferAndPrint [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]written 0, free lines is 3238 [15:24:59]MH_Cut [15:24:59]Write to MH i2c: D1 01 00 CA 02 01 9E [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 01 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 01 00 CA 02 00 9D [15:24:59]Write to MH i2c: 01 00 00 CB 02 CD [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:25:00]*** Cut start [15:25:00]*** Purtial cut [15:25:00]*** Stage 1: CUTSNS_PIN = 1 [15:25:00]Read from MH i2c: 01 [15:25:00]MH_I2C_Read... [15:25:00]*** Stop cut motor [15:25:00]*** Cut end [15:25:00]Read from MH i2c: 01 07 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [15:25:00]process_action close_receipt done [15:25:00]requested_data is exist [15:25:00]produce_requested_data [15:25:00]requested_item fm.sn is exist - process it [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 11 00 00 [15:25:00]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 17 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 99 [15:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:25:01]wFMCommunicate OK [15:25:01]requested_item fd.num is exist - process it [15:25:01]SAM_PROTO_GetFieldsCounters [15:25:01]wFMCommunicate request_size=4 [15:25:01]MH_SAM_APDU [15:25:01]CAPDU: 80 13 00 00 [15:25:01]Write to MH i2c: E2 08 00 CD 02 80 13 00 00 00 00 00 00 4B [15:25:01]Write i2c OK [15:25:01]MH_I2C_Read... [15:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:01]Read from MH i2c: E2 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 62 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 62 00 CD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 30 1E 00 00 0E 04 04 00 46 00 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 77 [15:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 30 1E 00 00 0E 04 04 00 46 00 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 [15:25:01]wFMCommunicate OK [15:25:01]SAM_PROTO_GetFieldsCounters done [15:25:01]requested_item shift.num is exist - process it [15:25:01]requested_item shift.opened is exist - process it [15:25:01]req_shift_opened [15:25:01]FM_GetShiftState [15:25:01]SAM_PROTO_GetShiftState [15:25:01]wFMCommunicate request_size=4 [15:25:01]MH_SAM_APDU [15:25:01]CAPDU: 80 13 01 00 [15:25:01]Write to MH i2c: E2 08 00 CE 02 80 13 01 00 00 00 00 00 4D [15:25:01]Write i2c OK [15:25:01]MH_I2C_Read... [15:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:01]Read from MH i2c: E2 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 0E 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 0E 00 CE 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 10 [15:25:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:25:01]wFMCommunicate OK [15:25:01]SAM_PROTO_GetShiftState done [15:25:01]FM_GetShiftState done [15:25:01]req_shift_opened done [15:25:01]requested_item shift.open_date is exist - process it [15:25:01]req_shift_open_date [15:25:01]req_shift_open_date done [15:25:01]produce_requested_data done [15:25:01]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7728,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:25:01]process_action_free close_receipt [15:25:01]json_value_free [15:25:01]json_value_free done [15:25:01]process_json_proto returns [15:25:01]Send response to host [15:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7728,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:25:01]free response buf [15:25:01]execute_script done [15:25:01]execute_script returns [15:25:01]free content buf [15:25:01]Sock 7.Close socket [15:25:01]Sock 7.Thread stoped [15:25:04]ConnectInit Can't take IP for lk.salyk.kg [15:25:04]CommunicateWithHost connect error [15:25:04]CommunicateWithHost err = -1 [15:25:04]OFD Sender: Server communicate error [15:25:09]OFD Sender: Processing packet 7728 [packets to send 51, broken 50] [15:25:09]ProducePacketName [15:25:09]name=ofd_packets/00007728 [15:25:09]OFD Sender: To server: pG, [15:25:09]CommunicateWithHost lk.salyk.kg:30040 [15:25:09]ConnectInit lk.salyk.kg [15:25:11]Connected sock=9 [15:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 51 1C 07 01 1C 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 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 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 7E 00 00 00 F4 03 04 00 CA 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 30 1E 00 00 35 04 06 00 73 D0 16 5F 89 C8 1D BB D8 5D 4D 2B 90 16 [15:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 BB 93 47 00 7F 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 32 30 39 34 32 35 38 10 04 04 00 30 1E 00 00 F4 03 04 00 94 E1 EF 66 B6 04 01 00 00 9F A0 E0 40 6D 8C 71 86 [15:25:13]CommunicateWithHost err = 0 [15:25:13]CheckOFDResponse [15:25:13]1017 (14) - 77093643461234 [15:25:13]1041 (16) - 0000000002094258 [15:25:13]1040 (4) - 7728 [15:25:13]1012 (4) - 22.09.2024 09:21 [15:25:13]1206 (1) - 0 [15:25:13]OFD Sender: Remove packet 7728 [15:25:13]ProducePacketName [15:25:13]name=ofd_packets/00007728 [15:25:13]NVStorageDeleteData [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:25]accept exits with 10 [15:25:25]New connection [15:25:25]New thread 3066543460 created [15:25:25]Thread 3066686820 joined [15:25:25]Waiting for new connection... [15:25:25] Sock 10.Parse request [15:25:25]Sock 10.Check first char [15:25:25]Sock 10.First char is OK [15:25:25]request: POST /json_proto HTTP/1.0 [15:25:25]Method: POST [15:25:25]URL: /json_proto [15:25:25]Method is POST - this is cgi request [15:25:25]url: /json_proto [15:25:25]query_string will be loaded in cgi processing [15:25:25]execute_cgi json_proto POST (null) [15:25:25]execute_cgi path=json_proto method=POST [15:25:25]POST find Content-Length [15:25:25]Host: 172.17.47.195:8080 [15:25:25]Content-Length: 687 [15:25:25]Content-Type: application/json [15:25:25] [15:25:25]POST finish read [15:25:25]Found Content-Length = 687 [15:25:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:25]execute_script... [15:25: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)871840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:25]POST & json_proto [15:25:25]process_json_proto [15:25:25]json parsed OK: [15:25:25]protocol is kg_v1.0 [15:25:25]action value=close_receipt [15:25:25]process_action close_receipt [15:25:25]cmd_close_receipt [15:25:25]MH_GetDate [15:25:25]Write to MH i2c: F0 00 00 CF 02 C0 [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: F0 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: F0 09 00 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: F0 09 00 CF 02 00 E6 36 F0 66 96 2E 95 66 FA [15:25:25]GetLastDocTimeStamp 1727018698 [15:25:25]current date 1727018726 [15:25:25]FM_GetShiftState [15:25:25]SAM_PROTO_GetShiftState [15:25:25]wFMCommunicate request_size=4 [15:25:25]MH_SAM_APDU [15:25:25]CAPDU: 80 13 01 00 [15:25:25]Write to MH i2c: E2 08 00 D0 02 80 13 01 00 00 00 00 00 4F [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:25]Read from MH i2c: E2 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: E2 0E 00 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: E2 0E 00 D0 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 12 [15:25:25]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:25:25]wFMCommunicate OK [15:25:25]SAM_PROTO_GetShiftState done [15:25:25]FM_GetShiftState done [15:25:25]opened in 1726964224 [15:25:25]opened+sec_in_day 1727050624 [15:25:25]quantity*price = 250012 [15:25:25]sum+1 = 250013 [15:25:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 127 22.09.2024 15:25 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7729 ФПД: 266022610931073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152526&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7729&fm=266022610931073&tin=02508201610067®Number=0000000000190446&sum=250000 [15:25:26]StoreToDocumentArchive [15:25:26]shift 70 fd 7729 [15:25:26]save to /storage/0070/doc_00007729 [15:25:26]save last doc name /storage/0070/doc_00007729 to /storage/kkm_last_doc_name [15:25:26]save OK [15:25:26]Clear old archive folders... [15:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:25:26]tlvbuf is 01DB1E30 [15:25:26]SAM_PROTO_ClearQueue [15:25:26]wFMCommunicate request_size=4 [15:25:26]MH_SAM_APDU [15:25:26]CAPDU: 80 09 00 00 [15:25:26]Write to MH i2c: E2 08 00 DD 02 80 09 00 00 00 00 00 00 51 [15:25:26]Write i2c OK [15:25:26]MH_I2C_Read... [15:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:26]Read from MH i2c: E2 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 03 00 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [15:25:26]RAPDU: 90 00 [15:25:26]wFMCommunicate OK [15:25:26]SAM_PROTO_ClearQueue done [15:25:26]KKMCreateOFDPacket [15:25:26]OFDProtocolAddRootSTLVToBuf [15:25:26]FM_MakeSignedData [15:25:26]FM_MakeSignedData [15:25:26]SAM_PROTO_SignData [15:25:26]wFMCommunicate request_size=4 [15:25:26]MH_SAM_APDU [15:25:26]CAPDU: 80 0D 01 02 [15:25:26]Write to MH i2c: E2 08 00 DE 02 80 0D 01 02 00 00 00 00 59 [15:25:26]Write i2c OK [15:25:26]MH_I2C_Read... [15:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:26]Read from MH i2c: E2 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 03 00 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [15:25:26]RAPDU: 90 00 [15:25:26]wFMCommunicate OK [15:25:26]wFMCommunicate request_size=255 [15:25:26]MH_SAM_APDU [15:25: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 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E6 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 31 1E 00 00 35 04 06 00 [15:25:26]Write to MH i2c: E2 02 01 DF 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 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E6 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 31 1E 00 00 35 04 06 00 00 00 A9 [15:25:26]Write i2c OK [15:25:26]MH_I2C_Read... [15:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:27]Read from MH i2c: E2 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 03 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 03 00 DF 02 00 90 00 55 [15:25:27]RAPDU: 90 00 [15:25:27]wFMCommunicate OK [15:25:27]wFMCommunicate request_size=11 [15:25:27]MH_SAM_APDU [15:25:27]CAPDU: 80 0D 02 02 06 F1 F2 37 3A 0D 81 [15:25:27]Write to MH i2c: E2 0E 00 E0 02 80 0D 02 02 06 00 F1 F2 37 3A 0D 81 00 00 4A [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:27]Read from MH i2c: E2 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 03 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 03 00 E0 02 00 90 00 56 [15:25:27]RAPDU: 90 00 [15:25:27]wFMCommunicate OK [15:25:27]wFMCommunicate request_size=4 [15:25:27]MH_SAM_APDU [15:25:27]CAPDU: 80 0D 03 02 [15:25:27]Write to MH i2c: E2 08 00 E1 02 80 0D 03 02 00 00 00 00 5E [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:27]Read from MH i2c: E2 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 0B 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 0B 00 E1 02 00 7B 6A 3E B1 B1 6A 61 B3 90 00 62 [15:25:27]RAPDU: 7B 6A 3E B1 B1 6A 61 B3 90 00 [15:25:27]wFMCommunicate OK [15:25:27]SAM_PROTO_SignData done [15:25:27]FM_MakeSignedData done [15:25:27]CreateOFDProtocolMessage [15:25:27]wFMCommunicate request_size=4 [15:25:27]MH_SAM_APDU [15:25:27]CAPDU: 80 11 00 00 [15:25:27]Write to MH i2c: E2 08 00 E2 02 80 11 00 00 00 00 00 00 5E [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:27]Read from MH i2c: E2 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 17 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 17 00 E2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 AF [15:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:25:27]wFMCommunicate OK [15:25:27]CreateOFDProtocolMessage done [15:25:27]OFDSenderStorePacket 7729 [15:25:27]StoreOFDPacket docnum=7729 [15:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 06 DA 08 01 C2 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E6 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 31 1E 00 00 35 04 06 00 F1 F2 37 3A 0D 81 7B 6A 3E B1 B1 6A 61 B3 [15:25:27]CheckFolder [15:25:27]dirname=/storage/ofd_packets [15:25:27]CheckFolder done [15:25:27]ProducePacketName [15:25:27]name=ofd_packets/00007729 [15:25:27]NVStorageSaveData ofd_packets/00007729 [15:25:27]File name is /storage/ofd_packets/00007729 [15:25:27]Write 302 bytes [15:25:27]NVStorageSaveData done [15:25:27]OFDSenderStorePacket done [15:25:27]KKMCreateOFDPacket done [15:25:27]NVStorageSaveData kkm_last_timestamp [15:25:27]File name is /storage/kkm_last_timestamp [15:25:27]Write 4 bytes [15:25:27]NVStorageSaveData done [15:25:27]ExternCall_PrintAddStr [15:25:27]wPrintStart [15:25:27]Write to MH i2c: 01 00 00 E3 02 E5 [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: 01 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: 01 07 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 FF 0F FA [15:25:27]RasterBufferAndPrint [15:25:27]line Счет N : (1)871840 [15:25:27]line ИНН: 02508201610067 [15:25:27]line Контрольно-Кассовый Чек [15:25:27]line ПРОДАЖА [15:25:27]line ТРК (МРК, ГНК) : 54 [15:25:27]line Товар: 2710194210 [15:25:27]line ДТ(л)-К-4 [15:25:27]line 32.810 * 76.20 [15:25:27]line = 2500.12 [15:25:27]line НДС 12% НСП 1% [15:25:27]line > о реализуемом товаре [15:25:27]line ОКРУГЛЕНИЕ: -0.12 [15:25:27]line ИТОГО: 2500.00 [15:25:27]line Внесено: 2500.00 [15:25:27]line СДАЧА: 0.00 [15:25:27]line НСП 1% : 22.12 [15:25:27]line НДС 12% : 265.50 [15:25:27]line Наличными: 2500.00 [15:25:27]line Безнал.: 0.00 [15:25:27]line Место: АЗС № 137 "Партнер Нефть" [15:25:27]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:25:27]line СНО: Общий режим [15:25:27]line Чек 127 22.09.2024 15:25 [15:25:27]line Смена: 70 ФФД: 1.0 [15:25:27]line ЗНМ: 0300000041 [15:25:27]line РНМ: 0000000000190446 [15:25:27]line Версия ККМ: v1.0 [15:25:27]line ФМ: 0000000002094258 [15:25:27]line ФД: 7729 [15:25:27]line ФПД: 266022610931073 [15:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152526&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7729&fm=266022610931073&tin=02508201610067®Number=0000000000190446&sum=250000 [15:25:27]written 0, free lines is 4095 [15:25:27]OFD Sender: Processing packet 7729 [packets to send 51, broken 50] [15:25:27]ProducePacketName [15:25:27]name=ofd_packets/00007729 [15:25:27]OFD Sender: To server: pG, [15:25:27]CommunicateWithHost lk.salyk.kg:30040 [15:25:27]ConnectInit lk.salyk.kg [15:25:27]Connected sock=7 [15:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 06 DA 08 01 C2 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E6 36 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 31 1E 00 00 35 04 06 00 F1 F2 37 3A 0D 81 7B 6A 3E B1 B1 6A 61 B3 [15:25:27]Write to MH i2c: 01 00 00 0E 03 11 [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: 01 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: 01 07 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 F6 0C 1A [15:25:27]RasterBufferAndPrint [15:25:27]line [15:25:27]line [15:25:27]line [15:25:27]line [15:25:27]line [15:25:27]written 0, free lines is 3333 [15:25:27]MH_Cut [15:25:27]Write to MH i2c: D1 01 00 15 03 01 EA [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: D1 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: D1 01 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: D1 01 00 15 03 00 E9 [15:25:27]Write to MH i2c: 01 00 00 16 03 19 [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 48 C9 47 00 DC 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 32 30 39 34 32 35 38 10 04 04 00 31 1E 00 00 F4 03 04 00 A4 E1 EF 66 B6 04 01 00 00 E6 00 4D 2C D2 6B 54 67 [15:25:28]CommunicateWithHost err = 0 [15:25:28]CheckOFDResponse [15:25:28]1017 (14) - 77093643461234 [15:25:28]1041 (16) - 0000000002094258 [15:25:28]1040 (4) - 7729 [15:25:28]1012 (4) - 22.09.2024 09:21 [15:25:28]1206 (1) - 0 [15:25:28]OFD Sender: Remove packet 7729 [15:25:28]ProducePacketName [15:25:28]name=ofd_packets/00007729 [15:25:28]NVStorageDeleteData [15:25:28]*** Cut start [15:25:28]*** Purtial cut [15:25:28]*** Stage 1: CUTSNS_PIN = 1 [15:25:28]Read from MH i2c: 01 [15:25:28]MH_I2C_Read... [15:25:28]*** Stop cut motor [15:25:28]*** Cut end [15:25:28]Read from MH i2c: 01 07 00 [15:25:28]MH_I2C_Read... [15:25:28]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [15:25:28]process_action close_receipt done [15:25:28]requested_data is exist [15:25:28]produce_requested_data [15:25:28]requested_item fm.sn is exist - process it [15:25:28]wFMCommunicate request_size=4 [15:25:28]MH_SAM_APDU [15:25:28]CAPDU: 80 11 00 00 [15:25:28]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [15:25:28]Write i2c OK [15:25:28]MH_I2C_Read... [15:25:28]OFD Sender: No OFD packet to send [15:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:28]Read from MH i2c: E2 [15:25:28]MH_I2C_Read... [15:25:28]Read from MH i2c: E2 17 00 [15:25:28]MH_I2C_Read... [15:25:28]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 E5 [15:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:25:28]wFMCommunicate OK [15:25:28]requested_item fd.num is exist - process it [15:25:28]SAM_PROTO_GetFieldsCounters [15:25:28]wFMCommunicate request_size=4 [15:25:28]MH_SAM_APDU [15:25:28]CAPDU: 80 13 00 00 [15:25:28]Write to MH i2c: E2 08 00 18 03 80 13 00 00 00 00 00 00 97 [15:25:28]Write i2c OK [15:25:28]MH_I2C_Read... [15:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:29]Read from MH i2c: E2 [15:25:29]MH_I2C_Read... [15:25:29]Read from MH i2c: E2 62 00 [15:25:29]MH_I2C_Read... [15:25:29]Read from MH i2c: E2 62 00 18 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 31 1E 00 00 0E 04 04 00 46 00 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 C7 [15:25:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 31 1E 00 00 0E 04 04 00 46 00 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 [15:25:29]wFMCommunicate OK [15:25:29]SAM_PROTO_GetFieldsCounters done [15:25:29]requested_item shift.num is exist - process it [15:25:29]requested_item shift.opened is exist - process it [15:25:29]req_shift_opened [15:25:29]FM_GetShiftState [15:25:29]SAM_PROTO_GetShiftState [15:25:29]wFMCommunicate request_size=4 [15:25:29]MH_SAM_APDU [15:25:29]CAPDU: 80 13 01 00 [15:25:29]Write to MH i2c: E2 08 00 19 03 80 13 01 00 00 00 00 00 99 [15:25:29]Write i2c OK [15:25:29]MH_I2C_Read... [15:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:29]Read from MH i2c: E2 [15:25:29]MH_I2C_Read... [15:25:29]Read from MH i2c: E2 0E 00 [15:25:29]MH_I2C_Read... [15:25:29]Read from MH i2c: E2 0E 00 19 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5C [15:25:29]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:25:29]wFMCommunicate OK [15:25:29]SAM_PROTO_GetShiftState done [15:25:29]FM_GetShiftState done [15:25:29]req_shift_opened done [15:25:29]requested_item shift.open_date is exist - process it [15:25:29]req_shift_open_date [15:25:29]req_shift_open_date done [15:25:29]produce_requested_data done [15:25:29]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7729,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:25:29]process_action_free close_receipt [15:25:29]json_value_free [15:25:29]json_value_free done [15:25:29]process_json_proto returns [15:25:29]Send response to host [15:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7729,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:25:29]free response buf [15:25:29]execute_script done [15:25:29]execute_script returns [15:25:29]free content buf [15:25:29]Sock 10.Close socket [15:25:29]Sock 10.Thread stoped [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]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]accept exits with 9 [15:27:43]New connection [15:27:43]New thread 3066686820 created [15:27:43]Thread 3066543460 joined [15:27:43]Waiting for new connection... [15:27:43] Sock 9.Parse request [15:27:43]Sock 9.Check first char [15:27:43]Sock 9.First char is OK [15:27:43]request: POST /json_proto HTTP/1.0 [15:27:43]Method: POST [15:27:43]URL: /json_proto [15:27:43]Method is POST - this is cgi request [15:27:43]url: /json_proto [15:27:43]query_string will be loaded in cgi processing [15:27:43]execute_cgi json_proto POST (null) [15:27:43]execute_cgi path=json_proto method=POST [15:27:43]POST find Content-Length [15:27:43]Host: 172.17.47.195:8080 [15:27:43]Content-Length: 687 [15:27:43]Content-Type: application/json [15:27:43] [15:27:43]POST finish read [15:27:43]Found Content-Length = 687 [15:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:43]execute_script... [15:27: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)871841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:43]POST & json_proto [15:27:43]process_json_proto [15:27:43]json parsed OK: [15:27:43]protocol is kg_v1.0 [15:27:43]action value=close_receipt [15:27:43]process_action close_receipt [15:27:43]cmd_close_receipt [15:27:43]MH_GetDate [15:27:43]Write to MH i2c: F0 00 00 1A 03 0C [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: F0 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: F0 09 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: F0 09 00 1A 03 00 70 37 F0 66 96 2E 95 66 D1 [15:27:43]GetLastDocTimeStamp 1727018726 [15:27:43]current date 1727018864 [15:27:43]FM_GetShiftState [15:27:43]SAM_PROTO_GetShiftState [15:27:43]wFMCommunicate request_size=4 [15:27:43]MH_SAM_APDU [15:27:43]CAPDU: 80 13 01 00 [15:27:43]Write to MH i2c: E2 08 00 1B 03 80 13 01 00 00 00 00 00 9B [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:43]Read from MH i2c: E2 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 0E 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 0E 00 1B 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [15:27:43]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:27:43]wFMCommunicate OK [15:27:43]SAM_PROTO_GetShiftState done [15:27:43]FM_GetShiftState done [15:27:43]opened in 1726964224 [15:27:43]opened+sec_in_day 1727050624 [15:27:43]quantity*price = 100050 [15:27:43]sum+1 = 100052 [15:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 128 22.09.2024 15:27 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7730 ФПД: 259749136096901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152744&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7730&fm=259749136096901&tin=02508201610067®Number=0000000000190446&sum=100000 [15:27:44]StoreToDocumentArchive [15:27:44]shift 70 fd 7730 [15:27:44]save to /storage/0070/doc_00007730 [15:27:44]save last doc name /storage/0070/doc_00007730 to /storage/kkm_last_doc_name [15:27:44]save OK [15:27:44]Clear old archive folders... [15:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:27:44]tlvbuf is 01E3E890 [15:27:44]SAM_PROTO_ClearQueue [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 09 00 00 [15:27:44]Write to MH i2c: E2 08 00 28 03 80 09 00 00 00 00 00 00 9D [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [15:27:44]RAPDU: 90 00 [15:27:44]wFMCommunicate OK [15:27:44]SAM_PROTO_ClearQueue done [15:27:44]KKMCreateOFDPacket [15:27:44]OFDProtocolAddRootSTLVToBuf [15:27:44]FM_MakeSignedData [15:27:44]FM_MakeSignedData [15:27:44]SAM_PROTO_SignData [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 0D 01 02 [15:27:44]Write to MH i2c: E2 08 00 29 03 80 0D 01 02 00 00 00 00 A5 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [15:27:44]RAPDU: 90 00 [15:27:44]wFMCommunicate OK [15:27:44]wFMCommunicate request_size=255 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 70 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 32 1E 00 00 35 04 06 00 [15:27:44]Write to MH i2c: E2 02 01 2A 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 70 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 32 1E 00 00 35 04 06 00 00 00 21 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [15:27:45]RAPDU: 90 00 [15:27:45]wFMCommunicate OK [15:27:45]wFMCommunicate request_size=11 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 0D 02 02 06 EC 3D 8E FC DE 85 [15:27:45]Write to MH i2c: E2 0E 00 2B 03 80 0D 02 02 06 00 EC 3D 8E FC DE 85 00 00 CA [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [15:27:45]RAPDU: 90 00 [15:27:45]wFMCommunicate OK [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 0D 03 02 [15:27:45]Write to MH i2c: E2 08 00 2C 03 80 0D 03 02 00 00 00 00 AA [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 0B 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 0B 00 2C 03 00 B3 30 6E 3A 66 FF 42 30 90 00 0D [15:27:45]RAPDU: B3 30 6E 3A 66 FF 42 30 90 00 [15:27:45]wFMCommunicate OK [15:27:45]SAM_PROTO_SignData done [15:27:45]FM_MakeSignedData done [15:27:45]CreateOFDProtocolMessage [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 11 00 00 [15:27:45]Write to MH i2c: E2 08 00 2D 03 80 11 00 00 00 00 00 00 AA [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 17 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 17 00 2D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [15:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:27:45]wFMCommunicate OK [15:27:45]CreateOFDProtocolMessage done [15:27:45]OFDSenderStorePacket 7730 [15:27:45]StoreOFDPacket docnum=7730 [15:27:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 F5 68 08 01 F4 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 70 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 32 1E 00 00 35 04 06 00 EC 3D 8E FC DE 85 B3 30 6E 3A 66 FF 42 30 [15:27:45]CheckFolder [15:27:45]dirname=/storage/ofd_packets [15:27:45]CheckFolder done [15:27:45]ProducePacketName [15:27:45]name=ofd_packets/00007730 [15:27:45]NVStorageSaveData ofd_packets/00007730 [15:27:45]File name is /storage/ofd_packets/00007730 [15:27:45]Write 302 bytes [15:27:45]NVStorageSaveData done [15:27:45]OFDSenderStorePacket done [15:27:45]KKMCreateOFDPacket done [15:27:45]NVStorageSaveData kkm_last_timestamp [15:27:45]File name is /storage/kkm_last_timestamp [15:27:45]Write 4 bytes [15:27:45]NVStorageSaveData done [15:27:45]OFD Sender: Processing packet 7730 [packets to send 51, broken 50] [15:27:45]ProducePacketName [15:27:45]name=ofd_packets/00007730 [15:27:45]OFD Sender: To server: pG, [15:27:45]CommunicateWithHost lk.salyk.kg:30040 [15:27:45]ConnectInit lk.salyk.kg [15:27:45]ExternCall_PrintAddStr [15:27:45]wPrintStart [15:27:45]Write to MH i2c: 01 00 00 2E 03 31 [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: 01 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: 01 07 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 FF 0F 46 [15:27:45]RasterBufferAndPrint [15:27:45]line Счет N : (1)871841 [15:27:45]line ИНН: 02508201610067 [15:27:45]line Контрольно-Кассовый Чек [15:27:45]line ПРОДАЖА [15:27:45]line ТРК (МРК, ГНК) : 34 [15:27:45]line Товар: 2710194210 [15:27:45]line ДТ(л)-К-4 [15:27:45]line 13.130 * 76.20 [15:27:45]line = 1000.51 [15:27:45]line НДС 12% НСП 1% [15:27:45]line > о реализуемом товаре [15:27:45]line ОКРУГЛЕНИЕ: -0.51 [15:27:45]line ИТОГО: 1000.00 [15:27:45]line Внесено: 1000.00 [15:27:45]line СДАЧА: 0.00 [15:27:45]line НСП 1% : 8.85 [15:27:45]line НДС 12% : 106.25 [15:27:45]line Наличными: 1000.00 [15:27:45]line Безнал.: 0.00 [15:27:45]line Место: АЗС № 137 "Партнер Нефть" [15:27:45]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:27:45]line СНО: Общий режим [15:27:45]line Чек 128 22.09.2024 15:27 [15:27:45]line Смена: 70 ФФД: 1.0 [15:27:45]line ЗНМ: 0300000041 [15:27:45]line РНМ: 0000000000190446 [15:27:45]line Версия ККМ: v1.0 [15:27:45]line ФМ: 0000000002094258 [15:27:45]line ФД: 7730 [15:27:45]line ФПД: 259749136096901 [15:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152744&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7730&fm=259749136096901&tin=02508201610067®Number=0000000000190446&sum=100000 [15:27:45]written 0, free lines is 4095 [15:27:46]Write to MH i2c: 01 00 00 59 03 5C [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 07 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 ED 0C 5C [15:27:46]RasterBufferAndPrint [15:27:46]line [15:27:46]line [15:27:46]line [15:27:46]line [15:27:46]line [15:27:46]written 0, free lines is 3315 [15:27:46]MH_Cut [15:27:46]Write to MH i2c: D1 01 00 60 03 01 35 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: D1 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: D1 01 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: D1 01 00 60 03 00 34 [15:27:46]Write to MH i2c: 01 00 00 61 03 64 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]Connected sock=11 [15:27:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 F5 68 08 01 F4 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 70 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 32 1E 00 00 35 04 06 00 EC 3D 8E FC DE 85 B3 30 6E 3A 66 FF 42 30 [15:27:46]*** Cut start [15:27:46]*** Purtial cut [15:27:46]*** Stage 1: CUTSNS_PIN = 1 [15:27:46]Read from MH i2c: 01 [15:27:46]MH_I2C_Read... [15:27:46]*** Stop cut motor [15:27:46]*** Cut end [15:27:46]Read from MH i2c: 01 07 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [15:27:46]process_action close_receipt done [15:27:46]requested_data is exist [15:27:46]produce_requested_data [15:27:46]requested_item fm.sn is exist - process it [15:27:46]wFMCommunicate request_size=4 [15:27:46]MH_SAM_APDU [15:27:46]CAPDU: 80 11 00 00 [15:27:46]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 09 30 47 00 53 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 32 30 39 34 32 35 38 10 04 04 00 32 1E 00 00 F4 03 04 00 2F E2 EF 66 B6 04 01 00 00 F3 F4 39 25 C0 B5 37 BC [15:27:47]CommunicateWithHost err = 0 [15:27:47]CheckOFDResponse [15:27:47]1017 (14) - 77093643461234 [15:27:47]1041 (16) - 0000000002094258 [15:27:47]1040 (4) - 7730 [15:27:47]1012 (4) - 22.09.2024 09:23 [15:27:47]1206 (1) - 0 [15:27:47]OFD Sender: Remove packet 7730 [15:27:47]ProducePacketName [15:27:47]name=ofd_packets/00007730 [15:27:47]NVStorageDeleteData [15:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 17 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [15:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:27:47]wFMCommunicate OK [15:27:47]requested_item fd.num is exist - process it [15:27:47]SAM_PROTO_GetFieldsCounters [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 13 00 00 [15:27:47]Write to MH i2c: E2 08 00 63 03 80 13 00 00 00 00 00 00 E2 [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 62 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 62 00 63 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 32 1E 00 00 0E 04 04 00 46 00 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 16 [15:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 32 1E 00 00 0E 04 04 00 46 00 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 [15:27:47]wFMCommunicate OK [15:27:47]SAM_PROTO_GetFieldsCounters done [15:27:47]requested_item shift.num is exist - process it [15:27:47]requested_item shift.opened is exist - process it [15:27:47]req_shift_opened [15:27:47]FM_GetShiftState [15:27:47]SAM_PROTO_GetShiftState [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 13 01 00 [15:27:47]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 0E 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [15:27:47]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:27:47]wFMCommunicate OK [15:27:47]SAM_PROTO_GetShiftState done [15:27:47]FM_GetShiftState done [15:27:47]req_shift_opened done [15:27:47]requested_item shift.open_date is exist - process it [15:27:47]req_shift_open_date [15:27:47]req_shift_open_date done [15:27:47]produce_requested_data done [15:27:47]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7730,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:27:47]process_action_free close_receipt [15:27:47]json_value_free [15:27:47]json_value_free done [15:27:47]process_json_proto returns [15:27:47]Send response to host [15:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7730,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:27:47]free response buf [15:27:47]execute_script done [15:27:47]execute_script returns [15:27:47]free content buf [15:27:47]Sock 9.Close socket [15:27:47]Sock 9.Thread stoped [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:13]accept exits with 10 [15:28:13]New connection [15:28:13]New thread 3066543460 created [15:28:13]Thread 3066686820 joined [15:28:13]Waiting for new connection... [15:28:13] Sock 10.Parse request [15:28:13]Sock 10.Check first char [15:28:13]Sock 10.First char is OK [15:28:13]request: POST /json_proto HTTP/1.0 [15:28:13]Method: POST [15:28:13]URL: /json_proto [15:28:13]Method is POST - this is cgi request [15:28:13]url: /json_proto [15:28:13]query_string will be loaded in cgi processing [15:28:13]execute_cgi json_proto POST (null) [15:28:13]execute_cgi path=json_proto method=POST [15:28:13]POST find Content-Length [15:28:13]Host: 172.17.47.195:8080 [15:28:13]Content-Length: 682 [15:28:13]Content-Type: application/json [15:28:13] [15:28:13]POST finish read [15:28:13]Found Content-Length = 682 [15:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:13]execute_script... [15:28: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)871844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:13]POST & json_proto [15:28:13]process_json_proto [15:28:13]json parsed OK: [15:28:13]protocol is kg_v1.0 [15:28:13]action value=close_receipt [15:28:13]process_action close_receipt [15:28:13]cmd_close_receipt [15:28:13]MH_GetDate [15:28:13]Write to MH i2c: F0 00 00 65 03 57 [15:28:13]Write i2c OK [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: F0 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: F0 09 00 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: F0 09 00 65 03 00 8E 37 F0 66 96 2E 95 66 3A [15:28:13]GetLastDocTimeStamp 1727018864 [15:28:13]current date 1727018894 [15:28:13]FM_GetShiftState [15:28:13]SAM_PROTO_GetShiftState [15:28:13]wFMCommunicate request_size=4 [15:28:13]MH_SAM_APDU [15:28:13]CAPDU: 80 13 01 00 [15:28:13]Write to MH i2c: E2 08 00 66 03 80 13 01 00 00 00 00 00 E6 [15:28:13]Write i2c OK [15:28:13]MH_I2C_Read... [15:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:14]Read from MH i2c: E2 [15:28:14]MH_I2C_Read... [15:28:14]Read from MH i2c: E2 0E 00 [15:28:14]MH_I2C_Read... [15:28:14]Read from MH i2c: E2 0E 00 66 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [15:28:14]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:28:14]wFMCommunicate OK [15:28:14]SAM_PROTO_GetShiftState done [15:28:14]FM_GetShiftState done [15:28:14]opened in 1726964224 [15:28:14]opened+sec_in_day 1727050624 [15:28:14]quantity*price = 20040 [15:28:14]sum+1 = 20042 [15:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 129 22.09.2024 15:28 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7731 ФПД: 209871599763981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152814&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7731&fm=209871599763981&tin=02508201610067®Number=0000000000190446&sum=20000 [15:28:15]StoreToDocumentArchive [15:28:15]shift 70 fd 7731 [15:28:15]save to /storage/0070/doc_00007731 [15:28:15]save last doc name /storage/0070/doc_00007731 to /storage/kkm_last_doc_name [15:28:15]save OK [15:28:15]Clear old archive folders... [15:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:28:15]tlvbuf is 01DAC550 [15:28:15]SAM_PROTO_ClearQueue [15:28:15]wFMCommunicate request_size=4 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 09 00 00 [15:28:15]Write to MH i2c: E2 08 00 73 03 80 09 00 00 00 00 00 00 E8 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [15:28:15]RAPDU: 90 00 [15:28:15]wFMCommunicate OK [15:28:15]SAM_PROTO_ClearQueue done [15:28:15]KKMCreateOFDPacket [15:28:15]OFDProtocolAddRootSTLVToBuf [15:28:15]FM_MakeSignedData [15:28:15]FM_MakeSignedData [15:28:15]SAM_PROTO_SignData [15:28:15]wFMCommunicate request_size=4 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 0D 01 02 [15:28:15]Write to MH i2c: E2 08 00 74 03 80 0D 01 02 00 00 00 00 F0 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [15:28:15]RAPDU: 90 00 [15:28:15]wFMCommunicate OK [15:28:15]wFMCommunicate request_size=255 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 8E 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 33 1E 00 00 35 04 06 00 [15:28:15]Write to MH i2c: E2 02 01 75 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 8E 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 33 1E 00 00 35 04 06 00 00 00 11 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [15:28:15]RAPDU: 90 00 [15:28:15]wFMCommunicate OK [15:28:15]wFMCommunicate request_size=11 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 0D 02 02 06 BE E0 8A 27 02 0D [15:28:15]Write to MH i2c: E2 0E 00 76 03 80 0D 02 02 06 00 BE E0 8A 27 02 0D 00 00 5D [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [15:28:15]RAPDU: 90 00 [15:28:15]wFMCommunicate OK [15:28:15]wFMCommunicate request_size=4 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 0D 03 02 [15:28:15]Write to MH i2c: E2 08 00 77 03 80 0D 03 02 00 00 00 00 F5 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 0B 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 0B 00 77 03 00 AB C7 3A 4F 1B 11 23 B7 90 00 F7 [15:28:15]RAPDU: AB C7 3A 4F 1B 11 23 B7 90 00 [15:28:15]wFMCommunicate OK [15:28:15]SAM_PROTO_SignData done [15:28:15]FM_MakeSignedData done [15:28:15]CreateOFDProtocolMessage [15:28:15]wFMCommunicate request_size=4 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 11 00 00 [15:28:15]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 17 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 17 00 78 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [15:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:28:15]wFMCommunicate OK [15:28:15]CreateOFDProtocolMessage done [15:28:15]OFDSenderStorePacket 7731 [15:28:15]StoreOFDPacket docnum=7731 [15:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 F2 71 08 01 60 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 8E 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 33 1E 00 00 35 04 06 00 BE E0 8A 27 02 0D AB C7 3A 4F 1B 11 23 B7 [15:28:15]CheckFolder [15:28:15]dirname=/storage/ofd_packets [15:28:15]CheckFolder done [15:28:15]ProducePacketName [15:28:15]name=ofd_packets/00007731 [15:28:15]NVStorageSaveData ofd_packets/00007731 [15:28:15]File name is /storage/ofd_packets/00007731 [15:28:15]Write 302 bytes [15:28:15]NVStorageSaveData done [15:28:15]OFDSenderStorePacket done [15:28:15]KKMCreateOFDPacket done [15:28:15]NVStorageSaveData kkm_last_timestamp [15:28:15]File name is /storage/kkm_last_timestamp [15:28:15]Write 4 bytes [15:28:15]NVStorageSaveData done [15:28:15]ExternCall_PrintAddStr [15:28:15]wPrintStart [15:28:15]Write to MH i2c: 01 00 00 79 03 7C [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: 01 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: 01 07 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [15:28:15]RasterBufferAndPrint [15:28:15]line Счет N : (1)871844 [15:28:15]line ИНН: 02508201610067 [15:28:15]line Контрольно-Кассовый Чек [15:28:15]line ПРОДАЖА [15:28:15]line ТРК (МРК, ГНК) : 11 [15:28:15]line Товар: 2710194210 [15:28:15]line ДТ(л)-К-4 [15:28:15]line 2.630 * 76.20 [15:28:15]line = 200.41 [15:28:15]line НДС 12% НСП 1% [15:28:15]line > о реализуемом товаре [15:28:15]line ОКРУГЛЕНИЕ: -0.41 [15:28:15]line ИТОГО: 200.00 [15:28:15]line Внесено: 200.00 [15:28:15]line СДАЧА: 0.00 [15:28:15]line НСП 1% : 1.77 [15:28:15]line НДС 12% : 21.28 [15:28:15]line Наличными: 200.00 [15:28:15]line Безнал.: 0.00 [15:28:15]line Место: АЗС № 137 "Партнер Нефть" [15:28:15]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:28:15]line СНО: Общий режим [15:28:15]line Чек 129 22.09.2024 15:28 [15:28:15]line Смена: 70 ФФД: 1.0 [15:28:15]line ЗНМ: 0300000041 [15:28:15]line РНМ: 0000000000190446 [15:28:15]line Версия ККМ: v1.0 [15:28:15]line ФМ: 0000000002094258 [15:28:15]line ФД: 7731 [15:28:15]line ФПД: 209871599763981 [15:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152814&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7731&fm=209871599763981&tin=02508201610067®Number=0000000000190446&sum=20000 [15:28:16]OFD Sender: Processing packet 7731 [packets to send 51, broken 50] [15:28:16]ProducePacketName [15:28:16]name=ofd_packets/00007731 [15:28:16]OFD Sender: To server: pG, [15:28:16]CommunicateWithHost lk.salyk.kg:30040 [15:28:16]ConnectInit lk.salyk.kg [15:28:16]written 0, free lines is 4095 [15:28:16]Write to MH i2c: 01 00 00 A4 03 A7 [15:28:16]Write i2c OK [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: 01 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: 01 07 00 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 E7 0C A1 [15:28:16]RasterBufferAndPrint [15:28:16]line [15:28:16]line [15:28:16]line [15:28:16]line [15:28:16]line [15:28:16]written 0, free lines is 3309 [15:28:16]MH_Cut [15:28:16]Write to MH i2c: D1 01 00 AB 03 01 80 [15:28:16]Write i2c OK [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: D1 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: D1 01 00 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: D1 01 00 AB 03 00 7F [15:28:16]Write to MH i2c: 01 00 00 AC 03 AF [15:28:16]Write i2c OK [15:28:16]MH_I2C_Read... [15:28:16]Connected sock=7 [15:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 F2 71 08 01 60 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 8E 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 33 1E 00 00 35 04 06 00 BE E0 8A 27 02 0D AB C7 3A 4F 1B 11 23 B7 [15:28:17]*** Cut start [15:28:17]*** Purtial cut [15:28:17]*** Stage 1: CUTSNS_PIN = 1 [15:28:17]Read from MH i2c: 01 [15:28:17]MH_I2C_Read... [15:28:17]*** Stop cut motor [15:28:17]*** Cut end [15:28:17]Read from MH i2c: 01 07 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [15:28:17]process_action close_receipt done [15:28:17]requested_data is exist [15:28:17]produce_requested_data [15:28:17]requested_item fm.sn is exist - process it [15:28:17]wFMCommunicate request_size=4 [15:28:17]MH_SAM_APDU [15:28:17]CAPDU: 80 11 00 00 [15:28:17]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:17]Read from MH i2c: E2 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 17 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [15:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:28:17]wFMCommunicate OK [15:28:17]requested_item fd.num is exist - process it [15:28:17]SAM_PROTO_GetFieldsCounters [15:28:17]wFMCommunicate request_size=4 [15:28:17]MH_SAM_APDU [15:28:17]CAPDU: 80 13 00 00 [15:28:17]Write to MH i2c: E2 08 00 AE 03 80 13 00 00 00 00 00 00 2D [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 0A 96 47 00 12 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 32 30 39 34 32 35 38 10 04 04 00 33 1E 00 00 F4 03 04 00 4D E2 EF 66 B6 04 01 00 00 71 50 E2 BC 1E 8C 7B EC [15:28:17]CommunicateWithHost err = 0 [15:28:17]CheckOFDResponse [15:28:17]1017 (14) - 77093643461234 [15:28:17]1041 (16) - 0000000002094258 [15:28:17]1040 (4) - 7731 [15:28:17]1012 (4) - 22.09.2024 09:24 [15:28:17]1206 (1) - 0 [15:28:17]OFD Sender: Remove packet 7731 [15:28:17]ProducePacketName [15:28:17]name=ofd_packets/00007731 [15:28:17]NVStorageDeleteData [15:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:17]Read from MH i2c: E2 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 62 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 62 00 AE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 33 1E 00 00 0E 04 04 00 46 00 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 65 [15:28:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 33 1E 00 00 0E 04 04 00 46 00 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 [15:28:17]wFMCommunicate OK [15:28:17]SAM_PROTO_GetFieldsCounters done [15:28:17]requested_item shift.num is exist - process it [15:28:17]requested_item shift.opened is exist - process it [15:28:17]req_shift_opened [15:28:17]FM_GetShiftState [15:28:17]SAM_PROTO_GetShiftState [15:28:17]wFMCommunicate request_size=4 [15:28:17]MH_SAM_APDU [15:28:17]CAPDU: 80 13 01 00 [15:28:17]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:17]Read from MH i2c: E2 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 0E 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F2 [15:28:17]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:28:17]wFMCommunicate OK [15:28:17]SAM_PROTO_GetShiftState done [15:28:17]FM_GetShiftState done [15:28:17]req_shift_opened done [15:28:17]requested_item shift.open_date is exist - process it [15:28:17]req_shift_open_date [15:28:17]req_shift_open_date done [15:28:17]produce_requested_data done [15:28:17]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7731,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:28:17]process_action_free close_receipt [15:28:17]json_value_free [15:28:17]json_value_free done [15:28:17]process_json_proto returns [15:28:17]Send response to host [15:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7731,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:28:17]free response buf [15:28:17]execute_script done [15:28:17]execute_script returns [15:28:17]free content buf [15:28:17]Sock 10.Close socket [15:28:17]Sock 10.Thread stoped [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:27]accept exits with 9 [15:28:27]New connection [15:28:27]New thread 3066686820 created [15:28:27]Thread 3066543460 joined [15:28:27]Waiting for new connection... [15:28:27] Sock 9.Parse request [15:28:27]Sock 9.Check first char [15:28:27]Sock 9.First char is OK [15:28:27]request: POST /json_proto HTTP/1.0 [15:28:27]Method: POST [15:28:27]URL: /json_proto [15:28:27]Method is POST - this is cgi request [15:28:27]url: /json_proto [15:28:27]query_string will be loaded in cgi processing [15:28:27]execute_cgi json_proto POST (null) [15:28:27]execute_cgi path=json_proto method=POST [15:28:27]POST find Content-Length [15:28:27]Host: 172.17.47.195:8080 [15:28:27]Content-Length: 677 [15:28:27]Content-Type: application/json [15:28:27] [15:28:27]POST finish read [15:28:27]Found Content-Length = 677 [15:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:27]execute_script... [15:28: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)871843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:27]POST & json_proto [15:28:27]process_json_proto [15:28:27]json parsed OK: [15:28:27]protocol is kg_v1.0 [15:28:27]action value=close_receipt [15:28:27]process_action close_receipt [15:28:27]cmd_close_receipt [15:28:27]MH_GetDate [15:28:27]Write to MH i2c: F0 00 00 B0 03 A2 [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: F0 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: F0 09 00 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: F0 09 00 B0 03 00 9C 37 F0 66 96 2E 95 66 93 [15:28:27]GetLastDocTimeStamp 1727018894 [15:28:27]current date 1727018908 [15:28:27]FM_GetShiftState [15:28:27]SAM_PROTO_GetShiftState [15:28:27]wFMCommunicate request_size=4 [15:28:27]MH_SAM_APDU [15:28:27]CAPDU: 80 13 01 00 [15:28:27]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:27]Read from MH i2c: E2 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: E2 0E 00 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F4 [15:28:27]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:28:27]wFMCommunicate OK [15:28:27]SAM_PROTO_GetShiftState done [15:28:27]FM_GetShiftState done [15:28:27]opened in 1726964224 [15:28:27]opened+sec_in_day 1727050624 [15:28:27]quantity*price = 50036 [15:28:27]sum+1 = 50037 [15:28:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 130 22.09.2024 15:28 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7732 ФПД: 114245960178048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152828&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7732&fm=114245960178048&tin=02508201610067®Number=0000000000190446&sum=50000 [15:28:28]StoreToDocumentArchive [15:28:28]shift 70 fd 7732 [15:28:28]save to /storage/0070/doc_00007732 [15:28:28]save last doc name /storage/0070/doc_00007732 to /storage/kkm_last_doc_name [15:28:28]save OK [15:28:28]Clear old archive folders... [15:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:28]tlvbuf is 01DB0270 [15:28:28]SAM_PROTO_ClearQueue [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 09 00 00 [15:28:28]Write to MH i2c: E2 08 00 BE 03 80 09 00 00 00 00 00 00 33 [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 03 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [15:28:28]RAPDU: 90 00 [15:28:28]wFMCommunicate OK [15:28:28]SAM_PROTO_ClearQueue done [15:28:28]KKMCreateOFDPacket [15:28:28]OFDProtocolAddRootSTLVToBuf [15:28:28]FM_MakeSignedData [15:28:28]FM_MakeSignedData [15:28:28]SAM_PROTO_SignData [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 0D 01 02 [15:28:28]Write to MH i2c: E2 08 00 BF 03 80 0D 01 02 00 00 00 00 3B [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 03 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [15:28:28]RAPDU: 90 00 [15:28:28]wFMCommunicate OK [15:28:28]wFMCommunicate request_size=255 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9C 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 34 1E 00 00 35 04 06 00 67 [15:28:28]Write to MH i2c: E2 02 01 C0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9C 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 34 1E 00 00 35 04 06 00 67 00 00 61 [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:29]Read from MH i2c: E2 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 03 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [15:28:29]RAPDU: 90 00 [15:28:29]wFMCommunicate OK [15:28:29]wFMCommunicate request_size=10 [15:28:29]MH_SAM_APDU [15:28:29]CAPDU: 80 0D 02 02 05 E7 F5 DF 99 80 [15:28:29]Write to MH i2c: E2 0D 00 C1 03 80 0D 02 02 05 00 E7 F5 DF 99 80 00 00 1C [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:29]Read from MH i2c: E2 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 03 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [15:28:29]RAPDU: 90 00 [15:28:29]wFMCommunicate OK [15:28:29]wFMCommunicate request_size=4 [15:28:29]MH_SAM_APDU [15:28:29]CAPDU: 80 0D 03 02 [15:28:29]Write to MH i2c: E2 08 00 C2 03 80 0D 03 02 00 00 00 00 40 [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:29]Read from MH i2c: E2 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 0B 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 0B 00 C2 03 00 5C ED 24 D2 DE 53 1E 6E 90 00 3D [15:28:29]RAPDU: 5C ED 24 D2 DE 53 1E 6E 90 00 [15:28:29]wFMCommunicate OK [15:28:29]SAM_PROTO_SignData done [15:28:29]FM_MakeSignedData done [15:28:29]CreateOFDProtocolMessage [15:28:29]wFMCommunicate request_size=4 [15:28:29]MH_SAM_APDU [15:28:29]CAPDU: 80 11 00 00 [15:28:29]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:29]Read from MH i2c: E2 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 17 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 91 [15:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:28:29]wFMCommunicate OK [15:28:29]CreateOFDProtocolMessage done [15:28:29]OFDSenderStorePacket 7732 [15:28:29]StoreOFDPacket docnum=7732 [15:28:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 2D FF 07 01 79 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9C 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 34 1E 00 00 35 04 06 00 67 E7 F5 DF 99 80 5C ED 24 D2 DE 53 1E 6E [15:28:29]CheckFolder [15:28:29]dirname=/storage/ofd_packets [15:28:29]CheckFolder done [15:28:29]ProducePacketName [15:28:29]name=ofd_packets/00007732 [15:28:29]NVStorageSaveData ofd_packets/00007732 [15:28:29]File name is /storage/ofd_packets/00007732 [15:28:29]Write 301 bytes [15:28:29]NVStorageSaveData done [15:28:29]OFDSenderStorePacket done [15:28:29]KKMCreateOFDPacket done [15:28:29]NVStorageSaveData kkm_last_timestamp [15:28:29]File name is /storage/kkm_last_timestamp [15:28:29]Write 4 bytes [15:28:29]NVStorageSaveData done [15:28:29]ExternCall_PrintAddStr [15:28:29]wPrintStart [15:28:29]Write to MH i2c: 01 00 00 C4 03 C7 [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: 01 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: 01 07 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [15:28:29]RasterBufferAndPrint [15:28:29]line Счет N : (1)871843 [15:28:29]line ИНН: 02508201610067 [15:28:29]line Контрольно-Кассовый Чек [15:28:29]line ПРОДАЖА [15:28:29]line ТРК (МРК, ГНК) : 43 [15:28:29]line Товар: 2710124130 [15:28:29]line Аи-92-К-5 [15:28:29]line 7.380 * 67.80 [15:28:29]line = 500.36 [15:28:29]line НДС 12% НСП 1% [15:28:29]line > о реализуемом товаре [15:28:29]line ОКРУГЛЕНИЕ: -0.36 [15:28:29]line ИТОГО: 500.00 [15:28:29]line Внесено: 500.00 [15:28:29]line СДАЧА: 0.00 [15:28:29]line НСП 1% : 4.43 [15:28:29]line НДС 12% : 53.14 [15:28:29]line Наличными: 500.00 [15:28:29]line Безнал.: 0.00 [15:28:29]line Место: АЗС № 137 "Партнер Нефть" [15:28:29]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:28:29]line СНО: Общий режим [15:28:29]line Чек 130 22.09.2024 15:28 [15:28:29]line Смена: 70 ФФД: 1.0 [15:28:29]line ЗНМ: 0300000041 [15:28:29]line РНМ: 0000000000190446 [15:28:29]line Версия ККМ: v1.0 [15:28:29]line ФМ: 0000000002094258 [15:28:29]line ФД: 7732 [15:28:29]line ФПД: 114245960178048 [15:28:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152828&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7732&fm=114245960178048&tin=02508201610067®Number=0000000000190446&sum=50000 [15:28:29]written 0, free lines is 4095 [15:28:29]OFD Sender: Processing packet 7732 [packets to send 51, broken 50] [15:28:29]ProducePacketName [15:28:29]name=ofd_packets/00007732 [15:28:29]OFD Sender: To server: pG, [15:28:29]CommunicateWithHost lk.salyk.kg:30040 [15:28:29]ConnectInit lk.salyk.kg [15:28:29]Write to MH i2c: 01 00 00 EF 03 F2 [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: 01 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: 01 07 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 EA 0C EF [15:28:29]RasterBufferAndPrint [15:28:29]line [15:28:29]line [15:28:29]line [15:28:29]line [15:28:29]line [15:28:29]written 0, free lines is 3315 [15:28:29]MH_Cut [15:28:29]Write to MH i2c: D1 01 00 F6 03 01 CB [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: D1 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: D1 01 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: D1 01 00 F6 03 00 CA [15:28:29]Write to MH i2c: 01 00 00 F7 03 FA [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:30]*** Cut start [15:28:30]*** Purtial cut [15:28:30]*** Stage 1: CUTSNS_PIN = 1 [15:28:30]Read from MH i2c: 01 [15:28:30]MH_I2C_Read... [15:28:30]*** Stop cut motor [15:28:30]*** Cut end [15:28:30]Read from MH i2c: 01 07 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: 01 07 00 F7 03 00 00 00 00 00 FF 0F 0F [15:28:30]process_action close_receipt done [15:28:30]requested_data is exist [15:28:30]produce_requested_data [15:28:30]requested_item fm.sn is exist - process it [15:28:30]wFMCommunicate request_size=4 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 11 00 00 [15:28:30]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:30]Read from MH i2c: E2 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 17 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C6 [15:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:28:30]wFMCommunicate OK [15:28:30]requested_item fd.num is exist - process it [15:28:30]SAM_PROTO_GetFieldsCounters [15:28:30]wFMCommunicate request_size=4 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 13 00 00 [15:28:30]Write to MH i2c: E2 08 00 F9 03 80 13 00 00 00 00 00 00 78 [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 [15:28:30]MH_I2C_Read... [15:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:30]Read from MH i2c: E2 62 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 62 00 F9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 34 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [15:28:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 34 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:30]wFMCommunicate OK [15:28:30]SAM_PROTO_GetFieldsCounters done [15:28:30]requested_item shift.num is exist - process it [15:28:30]requested_item shift.opened is exist - process it [15:28:30]req_shift_opened [15:28:30]FM_GetShiftState [15:28:30]SAM_PROTO_GetShiftState [15:28:30]wFMCommunicate request_size=4 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 13 01 00 [15:28:30]Write to MH i2c: E2 08 00 FA 03 80 13 01 00 00 00 00 00 7A [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:31]Read from MH i2c: E2 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 0E 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 0E 00 FA 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3D [15:28:31]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:28:31]wFMCommunicate OK [15:28:31]SAM_PROTO_GetShiftState done [15:28:31]FM_GetShiftState done [15:28:31]req_shift_opened done [15:28:31]requested_item shift.open_date is exist - process it [15:28:31]req_shift_open_date [15:28:31]req_shift_open_date done [15:28:31]produce_requested_data done [15:28:31]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7732,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:28:31]process_action_free close_receipt [15:28:31]json_value_free [15:28:31]json_value_free done [15:28:31]process_json_proto returns [15:28:31]Send response to host [15:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7732,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:28:31]free response buf [15:28:31]execute_script done [15:28:31]execute_script returns [15:28:31]free content buf [15:28:31]Sock 9.Close socket [15:28:31]Sock 9.Thread stoped [15:28:33]Connected sock=11 [15:28:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 2D FF 07 01 79 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9C 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 34 1E 00 00 35 04 06 00 67 E7 F5 DF 99 80 5C ED 24 D2 DE 53 1E 6E [15:28:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E4 1B 47 00 FE 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 34 1E 00 00 F4 03 04 00 5E E2 EF 66 B6 04 01 00 00 DB E7 92 A4 7F 32 97 E3 [15:28:34]CommunicateWithHost err = 0 [15:28:34]CheckOFDResponse [15:28:34]1017 (14) - 77093643461234 [15:28:34]1041 (16) - 0000000002094258 [15:28:34]1040 (4) - 7732 [15:28:34]1012 (4) - 22.09.2024 09:24 [15:28:34]1206 (1) - 0 [15:28:34]OFD Sender: Remove packet 7732 [15:28:34]ProducePacketName [15:28:34]name=ofd_packets/00007732 [15:28:34]NVStorageDeleteData [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:28:55]recv_with_timeout no data received [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:09]recv_with_timeout no data received [15:29:10]OFD Sender: No OFD packet to send [15:29:11]accept exits with 10 [15:29:11]New connection [15:29:11]New thread 3066543460 created [15:29:11]Thread 3066686820 joined [15:29:11]Waiting for new connection... [15:29:11] Sock 10.Parse request [15:29:11]Sock 10.Check first char [15:29:11]Sock 10.First char is OK [15:29:11]request: POST /json_proto HTTP/1.0 [15:29:11]Method: POST [15:29:11]URL: /json_proto [15:29:11]Method is POST - this is cgi request [15:29:11]url: /json_proto [15:29:11]query_string will be loaded in cgi processing [15:29:11]execute_cgi json_proto POST (null) [15:29:11]execute_cgi path=json_proto method=POST [15:29:11]POST find Content-Length [15:29:11]Host: 172.17.47.195:8080 [15:29:11]Content-Length: 984 [15:29:11]Content-Type: application/json [15:29:11] [15:29:11]POST finish read [15:29:11]Found Content-Length = 984 [15:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871845", "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.80, "quantity" : 20.960, "sum" : 1400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.96 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:11]execute_script... [15:29: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)871845", "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.80, "quantity" : 20.960, "sum" : 1400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.96 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:11]POST & json_proto [15:29:11]process_json_proto [15:29:11]json parsed OK: [15:29:11]protocol is kg_v1.0 [15:29:11]action value=close_receipt [15:29:11]process_action close_receipt [15:29:11]cmd_close_receipt [15:29:11]MH_GetDate [15:29:11]Write to MH i2c: F0 00 00 FB 03 ED [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: F0 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: F0 09 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: F0 09 00 FB 03 00 C8 37 F0 66 96 2E 95 66 0A [15:29:11]GetLastDocTimeStamp 1727018908 [15:29:11]current date 1727018952 [15:29:11]FM_GetShiftState [15:29:11]SAM_PROTO_GetShiftState [15:29:11]wFMCommunicate request_size=4 [15:29:11]MH_SAM_APDU [15:29:11]CAPDU: 80 13 01 00 [15:29:11]Write to MH i2c: E2 08 00 FC 03 80 13 01 00 00 00 00 00 7C [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:11]Read from MH i2c: E2 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 0E 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 0E 00 FC 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3F [15:29:11]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:29:11]wFMCommunicate OK [15:29:11]SAM_PROTO_GetShiftState done [15:29:11]FM_GetShiftState done [15:29:11]opened in 1726964224 [15:29:11]opened+sec_in_day 1727050624 [15:29:11]quantity*price = 140012 [15:29:11]sum+1 = 140014 [15:29:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 131 22.09.2024 15:29 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 137 сэкономлено 20.96 сом ФМ: 0000000002094258 ФД: 7733 ФПД: 76305620636853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152912&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7733&fm=76305620636853&tin=02508201610067®Number=0000000000190446&sum=140000 [15:29:12]StoreToDocumentArchive [15:29:12]shift 70 fd 7733 [15:29:12]save to /storage/0070/doc_00007733 [15:29:12]save last doc name /storage/0070/doc_00007733 to /storage/kkm_last_doc_name [15:29:12]save OK [15:29:12]Clear old archive folders... [15:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:12]tlvbuf is 01DB7FC0 [15:29:12]SAM_PROTO_ClearQueue [15:29:12]wFMCommunicate request_size=4 [15:29:12]MH_SAM_APDU [15:29:12]CAPDU: 80 09 00 00 [15:29:12]Write to MH i2c: E2 08 00 09 04 80 09 00 00 00 00 00 00 7F [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:12]Read from MH i2c: E2 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 03 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [15:29:12]RAPDU: 90 00 [15:29:12]wFMCommunicate OK [15:29:12]SAM_PROTO_ClearQueue done [15:29:12]KKMCreateOFDPacket [15:29:12]OFDProtocolAddRootSTLVToBuf [15:29:12]FM_MakeSignedData [15:29:12]FM_MakeSignedData [15:29:12]SAM_PROTO_SignData [15:29:12]wFMCommunicate request_size=4 [15:29:12]MH_SAM_APDU [15:29:12]CAPDU: 80 0D 01 02 [15:29:12]Write to MH i2c: E2 08 00 0A 04 80 0D 01 02 00 00 00 00 87 [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:12]Read from MH i2c: E2 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 03 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [15:29:12]RAPDU: 90 00 [15:29:12]wFMCommunicate OK [15:29:12]wFMCommunicate request_size=255 [15:29:12]MH_SAM_APDU [15:29: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 E0 51 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 ED 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C8 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 35 1E 00 00 35 04 06 00 45 [15:29:12]Write to MH i2c: E2 02 01 0B 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 E0 51 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 ED 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C8 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 35 1E 00 00 35 04 06 00 45 00 00 EA [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 0B 04 00 90 00 83 [15:29:13]RAPDU: 90 00 [15:29:13]wFMCommunicate OK [15:29:13]wFMCommunicate request_size=10 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 0D 02 02 05 66 49 69 94 B5 [15:29:13]Write to MH i2c: E2 0D 00 0C 04 80 0D 02 02 05 00 66 49 69 94 B5 00 00 F5 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 0C 04 00 90 00 84 [15:29:13]RAPDU: 90 00 [15:29:13]wFMCommunicate OK [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 0D 03 02 [15:29:13]Write to MH i2c: E2 08 00 0D 04 80 0D 03 02 00 00 00 00 8C [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0B 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0B 00 0D 04 00 1E D0 C8 A0 64 24 C4 5E 90 00 8D [15:29:13]RAPDU: 1E D0 C8 A0 64 24 C4 5E 90 00 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_SignData done [15:29:13]FM_MakeSignedData done [15:29:13]CreateOFDProtocolMessage [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 11 00 00 [15:29:13]Write to MH i2c: E2 08 00 0E 04 80 11 00 00 00 00 00 00 8C [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 0E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DD [15:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:29:13]wFMCommunicate OK [15:29:13]CreateOFDProtocolMessage done [15:29:13]OFDSenderStorePacket 7733 [15:29:13]StoreOFDPacket docnum=7733 [15:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 04 FE 07 01 77 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 ED 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C8 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 35 1E 00 00 35 04 06 00 45 66 49 69 94 B5 1E D0 C8 A0 64 24 C4 5E [15:29:13]CheckFolder [15:29:13]dirname=/storage/ofd_packets [15:29:13]CheckFolder done [15:29:13]ProducePacketName [15:29:13]name=ofd_packets/00007733 [15:29:13]NVStorageSaveData ofd_packets/00007733 [15:29:13]File name is /storage/ofd_packets/00007733 [15:29:13]Write 301 bytes [15:29:13]NVStorageSaveData done [15:29:13]OFDSenderStorePacket done [15:29:13]KKMCreateOFDPacket done [15:29:13]NVStorageSaveData kkm_last_timestamp [15:29:13]File name is /storage/kkm_last_timestamp [15:29:13]Write 4 bytes [15:29:13]NVStorageSaveData done [15:29:13]ExternCall_PrintAddStr [15:29:13]wPrintStart [15:29:13]Write to MH i2c: 01 00 00 0F 04 13 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 0F 04 00 00 00 00 00 FF 0F 28 [15:29:13]RasterBufferAndPrint [15:29:13]line Счет N : (1)871845 [15:29:13]line ИНН: 02508201610067 [15:29:13]line Контрольно-Кассовый Чек [15:29:13]line ПРОДАЖА [15:29:13]line ТРК (МРК, ГНК) : 53 [15:29:13]line Товар: 2710124130 [15:29:13]line Аи-92-К-5 [15:29:13]line 20.960 * 66.80 [15:29:13]line = 1400.13 [15:29:13]line НДС 12% НСП 1% [15:29:13]line > о реализуемом товаре [15:29:13]line ОКРУГЛЕНИЕ: -0.13 [15:29:13]line ИТОГО: 1400.00 [15:29:13]line Внесено: 1400.00 [15:29:13]line СДАЧА: 0.00 [15:29:13]line НСП 1% : 12.39 [15:29:13]line НДС 12% : 148.69 [15:29:13]line Наличными: 1400.00 [15:29:13]line Безнал.: 0.00 [15:29:13]line Место: АЗС № 137 "Партнер Нефть" [15:29:13]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:29:13]line СНО: Общий режим [15:29:13]line Чек 131 22.09.2024 15:29 [15:29:13]line Смена: 70 ФФД: 1.0 [15:29:13]line ЗНМ: 0300000041 [15:29:13]line РНМ: 0000000000190446 [15:29:13]line Версия ККМ: v1.0 [15:29:13]line [15:29:13]line Дисконтная программа [15:29:13]line АИ-92 [15:29:13]line номер 137 [15:29:13]line сэкономлено 20.96 сом [15:29:13]line ФМ: 0000000002094258 [15:29:13]line ФД: 7733 [15:29:13]line ФПД: 76305620636853 [15:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152912&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7733&fm=76305620636853&tin=02508201610067®Number=0000000000190446&sum=140000 [15:29:13]OFD Sender: Processing packet 7733 [packets to send 51, broken 50] [15:29:13]ProducePacketName [15:29:13]name=ofd_packets/00007733 [15:29:13]OFD Sender: To server: pG, [15:29:13]CommunicateWithHost lk.salyk.kg:30040 [15:29:13]ConnectInit lk.salyk.kg [15:29:13]written 0, free lines is 4095 [15:29:14]Write to MH i2c: 01 00 00 3F 04 43 [15:29:14]Write i2c OK [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: 01 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: 01 07 00 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 9C 0C F2 [15:29:14]RasterBufferAndPrint [15:29:14]line [15:29:14]line [15:29:14]line [15:29:14]line [15:29:14]line [15:29:14]written 0, free lines is 3237 [15:29:14]MH_Cut [15:29:14]Write to MH i2c: D1 01 00 46 04 01 1C [15:29:14]Write i2c OK [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: D1 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: D1 01 00 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: D1 01 00 46 04 00 1B [15:29:14]Write to MH i2c: 01 00 00 47 04 4B [15:29:14]Write i2c OK [15:29:14]MH_I2C_Read... [15:29:14]Connected sock=9 [15:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 04 FE 07 01 77 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 ED 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C8 37 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 35 1E 00 00 35 04 06 00 45 66 49 69 94 B5 1E D0 C8 A0 64 24 C4 5E [15:29:15]*** Cut start [15:29:15]*** Purtial cut [15:29:15]*** Stage 1: CUTSNS_PIN = 1 [15:29:15]Read from MH i2c: 01 [15:29:15]MH_I2C_Read... [15:29:15]*** Stop cut motor [15:29:15]*** Cut end [15:29:15]Read from MH i2c: 01 07 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [15:29:15]process_action close_receipt done [15:29:15]requested_data is exist [15:29:15]produce_requested_data [15:29:15]requested_item fm.sn is exist - process it [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 11 00 00 [15:29:15]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 17 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 17 [15:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:29:15]wFMCommunicate OK [15:29:15]requested_item fd.num is exist - process it [15:29:15]SAM_PROTO_GetFieldsCounters [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 13 00 00 [15:29:15]Write to MH i2c: E2 08 00 49 04 80 13 00 00 00 00 00 00 C9 [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 62 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 62 00 49 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 35 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [15:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 35 1E 00 00 0E 04 04 00 46 00 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 [15:29:15]wFMCommunicate OK [15:29:15]SAM_PROTO_GetFieldsCounters done [15:29:15]requested_item shift.num is exist - process it [15:29:15]requested_item shift.opened is exist - process it [15:29:15]req_shift_opened [15:29:15]FM_GetShiftState [15:29:15]SAM_PROTO_GetShiftState [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 13 01 00 [15:29:15]Write to MH i2c: E2 08 00 4A 04 80 13 01 00 00 00 00 00 CB [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 0E 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 0E 00 4A 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8E [15:29:15]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:29:15]wFMCommunicate OK [15:29:15]SAM_PROTO_GetShiftState done [15:29:15]FM_GetShiftState done [15:29:15]req_shift_opened done [15:29:15]requested_item shift.open_date is exist - process it [15:29:15]req_shift_open_date [15:29:15]req_shift_open_date done [15:29:15]produce_requested_data done [15:29:15]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7733,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:29:15]process_action_free close_receipt [15:29:15]json_value_free [15:29:15]json_value_free done [15:29:15]process_json_proto returns [15:29:15]Send response to host [15:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7733,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:29:15]free response buf [15:29:15]execute_script done [15:29:15]execute_script returns [15:29:15]free content buf [15:29:15]Sock 10.Close socket [15:29:15]Sock 10.Thread stoped [15:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 D2 14 47 00 62 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 32 30 39 34 32 35 38 10 04 04 00 35 1E 00 00 F4 03 04 00 87 E2 EF 66 B6 04 01 00 00 49 F2 74 DF BA 27 52 60 [15:29:15]CommunicateWithHost err = 0 [15:29:15]CheckOFDResponse [15:29:15]1017 (14) - 77093643461234 [15:29:15]1041 (16) - 0000000002094258 [15:29:15]1040 (4) - 7733 [15:29:15]1012 (4) - 22.09.2024 09:25 [15:29:15]1206 (1) - 0 [15:29:15]OFD Sender: Remove packet 7733 [15:29:15]ProducePacketName [15:29:15]name=ofd_packets/00007733 [15:29:15]NVStorageDeleteData [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:39]recv_with_timeout no data received [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:24]recv_with_timeout no data received [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:12]recv_with_timeout no data received [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:47]recv_with_timeout no data received [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]recv_with_timeout no data received [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:05]recv_with_timeout no data received [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:32]recv_with_timeout no data received [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:10]accept exits with 7 [15:37:10]New connection [15:37:10]New thread 3066686820 created [15:37:10]Thread 3066543460 joined [15:37:10]Waiting for new connection... [15:37:10] Sock 7.Parse request [15:37:10]Sock 7.Check first char [15:37:10]Sock 7.First char is OK [15:37:10]request: POST /json_proto HTTP/1.0 [15:37:10]Method: POST [15:37:10]URL: /json_proto [15:37:10]Method is POST - this is cgi request [15:37:10]url: /json_proto [15:37:10]query_string will be loaded in cgi processing [15:37:10]execute_cgi json_proto POST (null) [15:37:10]execute_cgi path=json_proto method=POST [15:37:10]POST find Content-Length [15:37:10]Host: 172.17.47.195:8080 [15:37:10]Content-Length: 678 [15:37:10]Content-Type: application/json [15:37:10] [15:37:10]POST finish read [15:37:10]Found Content-Length = 678 [15:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:10]execute_script... [15:37: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)871846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:10]POST & json_proto [15:37:10]process_json_proto [15:37:10]json parsed OK: [15:37:10]protocol is kg_v1.0 [15:37:10]action value=close_receipt [15:37:10]process_action close_receipt [15:37:10]cmd_close_receipt [15:37:10]MH_GetDate [15:37:10]Write to MH i2c: F0 00 00 4B 04 3E [15:37:10]Write i2c OK [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: F0 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: F0 09 00 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: F0 09 00 4B 04 00 A6 39 F0 66 96 2E 95 66 3B [15:37:10]GetLastDocTimeStamp 1727018952 [15:37:10]current date 1727019430 [15:37:10]FM_GetShiftState [15:37:10]SAM_PROTO_GetShiftState [15:37:10]wFMCommunicate request_size=4 [15:37:10]MH_SAM_APDU [15:37:10]CAPDU: 80 13 01 00 [15:37:10]Write to MH i2c: E2 08 00 4C 04 80 13 01 00 00 00 00 00 CD [15:37:10]Write i2c OK [15:37:10]MH_I2C_Read... [15:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:10]Read from MH i2c: E2 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: E2 0E 00 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: E2 0E 00 4C 04 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 90 [15:37:10]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:37:10]wFMCommunicate OK [15:37:10]SAM_PROTO_GetShiftState done [15:37:10]FM_GetShiftState done [15:37:10]opened in 1726964224 [15:37:10]opened+sec_in_day 1727050624 [15:37:10]quantity*price = 70037 [15:37:10]sum+1 = 70038 [15:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 132 22.09.2024 15:37 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7734 ФПД: 159278169914408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T153710&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7734&fm=159278169914408&tin=02508201610067®Number=0000000000190446&sum=70000 [15:37:11]StoreToDocumentArchive [15:37:11]shift 70 fd 7734 [15:37:11]save to /storage/0070/doc_00007734 [15:37:11]save last doc name /storage/0070/doc_00007734 to /storage/kkm_last_doc_name [15:37:11]save OK [15:37:11]Clear old archive folders... [15:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:11]tlvbuf is 01D936B0 [15:37:11]SAM_PROTO_ClearQueue [15:37:11]wFMCommunicate request_size=4 [15:37:11]MH_SAM_APDU [15:37:11]CAPDU: 80 09 00 00 [15:37:11]Write to MH i2c: E2 08 00 59 04 80 09 00 00 00 00 00 00 CF [15:37:11]Write i2c OK [15:37:11]MH_I2C_Read... [15:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:11]Read from MH i2c: E2 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 03 00 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [15:37:11]RAPDU: 90 00 [15:37:11]wFMCommunicate OK [15:37:11]SAM_PROTO_ClearQueue done [15:37:11]KKMCreateOFDPacket [15:37:11]OFDProtocolAddRootSTLVToBuf [15:37:11]FM_MakeSignedData [15:37:11]FM_MakeSignedData [15:37:11]SAM_PROTO_SignData [15:37:11]wFMCommunicate request_size=4 [15:37:11]MH_SAM_APDU [15:37:11]CAPDU: 80 0D 01 02 [15:37:11]Write to MH i2c: E2 08 00 5A 04 80 0D 01 02 00 00 00 00 D7 [15:37:11]Write i2c OK [15:37:11]MH_I2C_Read... [15:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:11]Read from MH i2c: E2 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 03 00 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 03 00 5A 04 00 90 00 D2 [15:37:11]RAPDU: 90 00 [15:37:11]wFMCommunicate OK [15:37:11]wFMCommunicate request_size=255 [15:37:11]MH_SAM_APDU [15:37: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A6 39 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 36 1E 00 00 35 04 06 00 90 [15:37:11]Write to MH i2c: E2 02 01 5B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 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 84 00 00 00 F4 03 04 00 A6 39 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 36 1E 00 00 35 04 06 00 90 00 00 1D [15:37:11]Write i2c OK [15:37:11]MH_I2C_Read... [15:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:11]Read from MH i2c: E2 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 03 00 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 03 00 5B 04 00 90 00 D3 [15:37:11]RAPDU: 90 00 [15:37:11]wFMCommunicate OK [15:37:11]wFMCommunicate request_size=10 [15:37:11]MH_SAM_APDU [15:37:11]CAPDU: 80 0D 02 02 05 DC D6 BC FC 28 [15:37:11]Write to MH i2c: E2 0D 00 5C 04 80 0D 02 02 05 00 DC D6 BC FC 28 00 00 76 [15:37:11]Write i2c OK [15:37:11]MH_I2C_Read... [15:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:11]Read from MH i2c: E2 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 03 00 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 03 00 5C 04 00 90 00 D4 [15:37:11]RAPDU: 90 00 [15:37:11]wFMCommunicate OK [15:37:11]wFMCommunicate request_size=4 [15:37:11]MH_SAM_APDU [15:37:11]CAPDU: 80 0D 03 02 [15:37:11]Write to MH i2c: E2 08 00 5D 04 80 0D 03 02 00 00 00 00 DC [15:37:11]Write i2c OK [15:37:11]MH_I2C_Read... [15:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:11]Read from MH i2c: E2 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 0B 00 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 0B 00 5D 04 00 C9 D7 7E 40 C5 D4 F0 60 90 00 24 [15:37:11]RAPDU: C9 D7 7E 40 C5 D4 F0 60 90 00 [15:37:11]wFMCommunicate OK [15:37:11]SAM_PROTO_SignData done [15:37:11]FM_MakeSignedData done [15:37:11]CreateOFDProtocolMessage [15:37:11]wFMCommunicate request_size=4 [15:37:11]MH_SAM_APDU [15:37:11]CAPDU: 80 11 00 00 [15:37:11]Write to MH i2c: E2 08 00 5E 04 80 11 00 00 00 00 00 00 DC [15:37:11]Write i2c OK [15:37:11]MH_I2C_Read... [15:37:11]OFD Sender: No OFD packet to send [15:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:11]Read from MH i2c: E2 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 17 00 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 17 00 5E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 2D [15:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:37:11]wFMCommunicate OK [15:37:11]CreateOFDProtocolMessage done [15:37:11]OFDSenderStorePacket 7734 [15:37:11]StoreOFDPacket docnum=7734 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005724E0 (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: 5967209+1721052822=1727020031 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 00 3C F0 66 96 2E 95 66 50 [15:47:12]Current date/time: 22.09.2024 15:47 [15:47:12]FM_Init [15:47:12]wFMConnect [15:47:12]MH_SAM_On [15:47:12]Write to MH i2c: E0 00 00 08 00 E7 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_init finished! [15:47:12]*** atr: [15:47:12]*** 0F 3B D5 18 FF 81 91 FE [15:47:12]*** 1F C3 80 73 C8 21 10 0A [15:47:12]*** 00 00 00 00 00 00 00 00 [15:47:12]*** 00 00 00 00 00 00 00 00 [15:47:12]*** 00 00 00 00 00 00 00 00 [15:47:12]*** 00 00 00 00 00 00 00 00 [15:47:12]*** 00 00 00 00 00 00 00 00 [15:47:12]*** 00 00 00 00 00 00 00 00 [15:47:12]Read from MH i2c: E0 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E0 10 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [15:47:12]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:47:12]wFMCommunicate request_size=10 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:47:12]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:47:12]RAPDU: 90 00 [15:47:12]wFMCommunicate OK [15:47:12]wFMCommunicate request_size=4 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 11 00 00 [15:47:12]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 17 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [15:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:47:12]wFMCommunicate OK [15:47:12]Detected FM SN is 0000000002094258 [15:47:12]Stored FM SN is 0000000002094258 [15:47:12]wFMCommunicate request_size=9 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 16 00 00 04 BC C2 00 00 [15:47:12]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:47:12]RAPDU: 90 00 [15:47:12]wFMCommunicate OK [15:47:12]FM PIN OK [15:47:12]wFMCommunicate request_size=8 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 14 04 00 03 02 00 01 [15:47:12]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:47:12]RAPDU: 90 00 [15:47:12]wFMCommunicate OK [15:47:12]wFMCommunicate request_size=13 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:47:12]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:47:12]RAPDU: 90 00 [15:47:12]wFMCommunicate OK [15:47:12]wFMCommunicate request_size=4 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 11 00 00 [15:47:12]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 17 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [15:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:47:12]wFMCommunicate OK [15:47:12]DocumentArchiveInit [15:47:12]Start Httpd... [15:47:12]Httpd thread 3067702628 created [15:47:12]Write to MH i2c: 01 00 00 0F 00 0F [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: 01 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: 01 07 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:47:12]MH Int Process started [15:47:12]Allocated Socket 8 [15:47:12]Bind OK [15:47:12]Listen OK [15:47:12]httpd running on port 8080 [15:47:12]Waiting for new connection... [15:47:12]OFD Sender: Processing packet 7734 [packets to send 51, broken 50] [15:47:12]ProducePacketName [15:47:12]name=ofd_packets/00007734 [15:47:12]OFD Sender: To server: pG, [15:47:12]CommunicateWithHost lk.salyk.kg:30040 [15:47:12]ConnectInit lk.salyk.kg [15:47:14]Connected sock=6 [15:47:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 DF 32 07 01 CA 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A6 39 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 36 1E 00 00 35 04 06 00 90 DC D6 BC FC 28 C9 D7 7E 40 C5 D4 F0 60 [15:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 D3 F7 47 00 2E 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 32 30 39 34 32 35 38 10 04 04 00 36 1E 00 00 F4 03 04 00 BF E6 EF 66 B6 04 01 00 00 1E F2 50 AC DD 83 D8 42 [15:47:16]CommunicateWithHost err = 0 [15:47:16]CheckOFDResponse [15:47:16]1017 (14) - 77093643461234 [15:47:16]1041 (16) - 0000000002094258 [15:47:16]1040 (4) - 7734 [15:47:16]1012 (4) - 22.09.2024 09:43 [15:47:16]1206 (1) - 0 [15:47:16]OFD Sender: Remove packet 7734 [15:47:16]ProducePacketName [15:47:16]name=ofd_packets/00007734 [15:47:16]NVStorageDeleteData [15:47:17]OFD Sender: No OFD packet to send [15:47:22]accept exits with 9 [15:47:22]New connection [15:47:22]New thread 3067415908 created [15:47:22]Waiting for new connection... [15:47:22] Sock 9.Parse request [15:47:22]Sock 9.Check first char [15:47:22]Sock 9.First char is OK [15:47:22]request: POST /json_proto HTTP/1.0 [15:47:22]Method: POST [15:47:22]URL: /json_proto [15:47:22]Method is POST - this is cgi request [15:47:22]url: /json_proto [15:47:22]query_string will be loaded in cgi processing [15:47:22]execute_cgi json_proto POST (null) [15:47:22]execute_cgi path=json_proto method=POST [15:47:22]POST find Content-Length [15:47:22]Host: 172.17.47.195:8080 [15:47:22]Content-Length: 215 [15:47:22]Content-Type: application/json [15:47:22] [15:47:22]POST finish read [15:47:22]Found Content-Length = 215 [15:47: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" ] } } [15:47:22]execute_script... [15:47: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" ] } } [15:47:22]POST & json_proto [15:47:22]process_json_proto [15:47:22]json parsed OK: [15:47:22]protocol is kg_v1.0 [15:47:22]action value=get_value [15:47:22]process_action get_value [15:47:22]cmd_get_value [15:47:22]process_action get_value done [15:47:22]requested_data is exist [15:47:22]produce_requested_data [15:47:22]requested_item kkm.sn is exist - process it [15:47:22]requested_item kkm.ver is exist - process it [15:47:22]requested_item fm.sn is exist - process it [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 11 00 00 [15:47:22]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 17 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [15:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:47:22]wFMCommunicate OK [15:47:22]requested_item fd.num is exist - process it [15:47:22]SAM_PROTO_GetFieldsCounters [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 13 00 00 [15:47:22]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 62 00 [15:47:22]MH_I2C_Read... [15:47:22]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 36 1E 00 00 0E 04 04 00 46 00 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 D1 [15:47:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 36 1E 00 00 0E 04 04 00 46 00 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 [15:47:22]wFMCommunicate OK [15:47:22]SAM_PROTO_GetFieldsCounters done [15:47:22]requested_item shift.num is exist - process it [15:47:22]requested_item shift.opened is exist - process it [15:47:22]req_shift_opened [15:47:22]FM_GetShiftState [15:47:22]SAM_PROTO_GetShiftState [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 13 01 00 [15:47:22]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]OFD Sender: No OFD packet to send [15:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 0E 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [15:47:22]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:47:22]wFMCommunicate OK [15:47:22]SAM_PROTO_GetShiftState done [15:47:22]FM_GetShiftState done [15:47:22]req_shift_opened done [15:47:22]requested_item shift.open_date is exist - process it [15:47:22]req_shift_open_date [15:47:22]req_shift_open_date done [15:47:22]produce_requested_data done [15:47:22]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7734,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:47:22]process_action_free get_value [15:47:22]json_value_free [15:47:22]json_value_free done [15:47:22]process_json_proto returns [15:47:22]Send response to host [15:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7734,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:47:22]free response buf [15:47:22]execute_script done [15:47:22]execute_script returns [15:47:22]free content buf [15:47:22]Sock 9.Close socket [15:47:22]Sock 9.Thread stoped [15:47:22]accept exits with 7 [15:47:22]New connection [15:47:22]New thread 3067272548 created [15:47:22]Thread 3067415908 joined [15:47:22]Waiting for new connection... [15:47:22] Sock 7.Parse request [15:47:22]Sock 7.Check first char [15:47:22]Sock 7.First char is OK [15:47:22]request: POST /json_proto HTTP/1.0 [15:47:22]Method: POST [15:47:22]URL: /json_proto [15:47:22]Method is POST - this is cgi request [15:47:22]url: /json_proto [15:47:22]query_string will be loaded in cgi processing [15:47:22]execute_cgi json_proto POST (null) [15:47:22]execute_cgi path=json_proto method=POST [15:47:22]POST find Content-Length [15:47:22]Host: 172.17.47.195:8080 [15:47:22]Content-Length: 331 [15:47:22]Content-Type: application/json [15:47:22] [15:47:22]POST finish read [15:47:22]Found Content-Length = 331 [15:47: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" ] } } [15:47:22]execute_script... [15:47:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:47:22]POST & json_proto [15:47:22]process_json_proto [15:47:22]json parsed OK: [15:47:22]protocol is kg_v1.0 [15:47:22]action value=get_value [15:47:22]process_action get_value [15:47:22]cmd_get_value [15:47:22]process_action get_value done [15:47:22]requested_data is exist [15:47:22]produce_requested_data [15:47:22]requested_item fm.sale.total is exist - process it [15:47:22]SAM_PROTO_GetFMData [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 13 03 00 [15:47:22]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 FD 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 AA 1D 00 00 69 04 A0 00 6F 04 04 00 7D 1D 00 00 B1 04 04 00 1B 4C 28 31 70 04 04 00 BC 6E 3D 29 72 04 04 00 5F DD EA 07 00 04 7C 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 AE AF 38 05 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 80 63 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 67 [15:47:23]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 AA 1D 00 00 69 04 A0 00 6F 04 04 00 7D 1D 00 00 B1 04 04 00 1B 4C 28 31 70 04 04 00 BC 6E 3D 29 72 04 04 00 5F DD EA 07 00 04 7C 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 AE AF 38 05 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 80 63 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [15:47:23]wFMCommunicate OK [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 17 00 00 [15:47:23]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 FD 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [15:47:23]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [15:47:23]wFMCommunicate OK [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 17 00 00 [15:47:23]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 FD 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [15:47:23]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:47:23]wFMCommunicate OK [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 17 00 00 [15:47:23]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 FD 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [15:47:24]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:47:24]wFMCommunicate OK [15:47:24]wFMCommunicate request_size=4 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 17 00 00 [15:47:24]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 [15:47:24]MH_I2C_Read... [15:47:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [15:47:24]Read from MH i2c: E2 DE 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [15:47:24]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:47:24]wFMCommunicate OK [15:47:24]SAM_PROTO_GetFMData done [15:47:24]requested_item fm.sale_refund.total is exist - process it [15:47:24]requested_item fm.buy.total is exist - process it [15:47:24]requested_item shift.sale.total is exist - process it [15:47:24]SAM_PROTO_GetShiftData [15:47:24]wFMCommunicate request_size=4 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 13 02 00 [15:47:24]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:47:24]Read from MH i2c: E2 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 FD 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 84 00 00 00 69 04 9C 00 6F 04 04 00 83 00 00 00 B1 04 03 00 1F 7A D0 70 04 03 00 4C 6D C3 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 75 25 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6A D8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 5B [15:47:24]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 84 00 00 00 69 04 9C 00 6F 04 04 00 83 00 00 00 B1 04 03 00 1F 7A D0 70 04 03 00 4C 6D C3 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 75 25 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6A D8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [15:47:24]wFMCommunicate OK [15:47:24]wFMCommunicate request_size=4 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 17 00 00 [15:47:24]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 FD 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [15:47:25]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [15:47:25]wFMCommunicate OK [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 17 00 00 [15:47:25]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 FD 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [15:47:25]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:47:25]wFMCommunicate OK [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 17 00 00 [15:47:25]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 FD 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 FD 00 1B 00 00 09 00 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [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:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5967416+1721052822=1727020238 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 CF 3C F0 66 96 2E 95 66 1F [15:50:39]Current date/time: 22.09.2024 15:50 [15:50:39]FM_Init [15:50:39]wFMConnect [15:50:39]MH_SAM_On [15:50:39]Write to MH i2c: E0 00 00 08 00 E7 [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_init finished! [15:50:39]*** atr: [15:50:39]*** 0F 3B D5 18 FF 81 91 FE [15:50:39]*** 1F C3 80 73 C8 21 10 0A [15:50:39]*** 00 00 00 00 00 00 00 00 [15:50:39]*** 00 00 00 00 00 00 00 00 [15:50:39]*** 00 00 00 00 00 00 00 00 [15:50:39]*** 00 00 00 00 00 00 00 00 [15:50:39]*** 00 00 00 00 00 00 00 00 [15:50:39]*** 00 00 00 00 00 00 00 00 [15:50:39]Read from MH i2c: E0 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E0 10 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [15:50:39]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:50:39]wFMCommunicate request_size=10 [15:50:39]MH_SAM_APDU [15:50:39]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:50:39]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:50:39]Read from MH i2c: E2 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 03 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:50:39]RAPDU: 90 00 [15:50:39]wFMCommunicate OK [15:50:39]wFMCommunicate request_size=4 [15:50:39]MH_SAM_APDU [15:50:39]CAPDU: 80 11 00 00 [15:50:39]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:39]Read from MH i2c: E2 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 17 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [15:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:50:39]wFMCommunicate OK [15:50:39]Detected FM SN is 0000000002094258 [15:50:39]Stored FM SN is 0000000002094258 [15:50:39]wFMCommunicate request_size=9 [15:50:39]MH_SAM_APDU [15:50:39]CAPDU: 80 16 00 00 04 BC C2 00 00 [15:50:39]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:50:39]Read from MH i2c: E2 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 03 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:50:39]RAPDU: 90 00 [15:50:39]wFMCommunicate OK [15:50:39]FM PIN OK [15:50:39]wFMCommunicate request_size=8 [15:50:39]MH_SAM_APDU [15:50:39]CAPDU: 80 14 04 00 03 02 00 01 [15:50:39]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:50:39]Read from MH i2c: E2 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 03 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:50:39]RAPDU: 90 00 [15:50:39]wFMCommunicate OK [15:50:39]wFMCommunicate request_size=13 [15:50:39]MH_SAM_APDU [15:50:39]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:50:39]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:50:39]Read from MH i2c: E2 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 03 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:50:39]RAPDU: 90 00 [15:50:39]wFMCommunicate OK [15:50:39]wFMCommunicate request_size=4 [15:50:39]MH_SAM_APDU [15:50:39]CAPDU: 80 11 00 00 [15:50:39]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:39]Read from MH i2c: E2 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 17 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [15:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:50:39]wFMCommunicate OK [15:50:39]DocumentArchiveInit [15:50:39]Start Httpd... [15:50:39]Httpd thread 3067247972 created [15:50:39]Write to MH i2c: 01 00 00 0F 00 0F [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: 01 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: 01 07 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:50:39]MH Int Process started [15:50:39]Allocated Socket 6 [15:50:39]Bind OK [15:50:39]Listen OK [15:50:39]httpd running on port 8080 [15:50:39]Waiting for new connection... [15:50:39]OFD Sender: Processing packet 7737 [packets to send 51, broken 50] [15:50:39]ProducePacketName [15:50:39]name=ofd_packets/00007737 [15:50:39]OFD Sender: To server: pG, [15:50:39]CommunicateWithHost lk.salyk.kg:30040 [15:50:39]ConnectInit lk.salyk.kg [15:50:41]accept exits with 7 [15:50:41]New connection [15:50:41]New thread 3066961252 created [15:50:41]Waiting for new connection... [15:50:41] Sock 7.Parse request [15:50:41]Sock 7.Check first char [15:50:41]Sock 7.First char is OK [15:50:41]request: POST /json_proto HTTP/1.0 [15:50:41]Method: POST [15:50:41]URL: /json_proto [15:50:41]Method is POST - this is cgi request [15:50:41]url: /json_proto [15:50:41]query_string will be loaded in cgi processing [15:50:41]execute_cgi json_proto POST (null) [15:50:41]execute_cgi path=json_proto method=POST [15:50:41]POST find Content-Length [15:50:41]Host: 172.17.47.195:8080 [15:50:41]Content-Length: 215 [15:50:41]Content-Type: application/json [15:50:41] [15:50:41]POST finish read [15:50:41]Found Content-Length = 215 [15:50:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:41]execute_script... [15:50:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:41]POST & json_proto [15:50:41]process_json_proto [15:50:41]json parsed OK: [15:50:41]protocol is kg_v1.0 [15:50:41]action value=get_value [15:50:41]process_action get_value [15:50:41]cmd_get_value [15:50:41]process_action get_value done [15:50:41]requested_data is exist [15:50:41]produce_requested_data [15:50:41]requested_item kkm.sn is exist - process it [15:50:41]requested_item kkm.ver is exist - process it [15:50:41]requested_item fm.sn is exist - process it [15:50:41]wFMCommunicate request_size=4 [15:50:41]MH_SAM_APDU [15:50:41]CAPDU: 80 11 00 00 [15:50:41]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:50:41]Write i2c OK [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: E2 [15:50:41]MH_I2C_Read... [15:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:41]Read from MH i2c: E2 17 00 [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [15:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:50:41]wFMCommunicate OK [15:50:41]requested_item fd.num is exist - process it [15:50:41]SAM_PROTO_GetFieldsCounters [15:50:41]wFMCommunicate request_size=4 [15:50:41]MH_SAM_APDU [15:50:41]CAPDU: 80 13 00 00 [15:50:41]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:50:41]Write i2c OK [15:50:41]MH_I2C_Read... [15:50:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:41]Read from MH i2c: E2 [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: E2 62 00 [15:50:41]MH_I2C_Read... [15:50:41]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 39 1E 00 00 0E 04 04 00 46 00 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 DD [15:50:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 39 1E 00 00 0E 04 04 00 46 00 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 [15:50:41]wFMCommunicate OK [15:50:41]SAM_PROTO_GetFieldsCounters done [15:50:41]requested_item shift.num is exist - process it [15:50:41]requested_item shift.opened is exist - process it [15:50:41]req_shift_opened [15:50:41]FM_GetShiftState [15:50:41]SAM_PROTO_GetShiftState [15:50:41]wFMCommunicate request_size=4 [15:50:41]MH_SAM_APDU [15:50:41]CAPDU: 80 13 01 00 [15:50:41]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:50:41]Write i2c OK [15:50:41]MH_I2C_Read... [15:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:41]Read from MH i2c: E2 [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: E2 0E 00 [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [15:50:41]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:50:41]wFMCommunicate OK [15:50:41]SAM_PROTO_GetShiftState done [15:50:41]FM_GetShiftState done [15:50:41]req_shift_opened done [15:50:41]requested_item shift.open_date is exist - process it [15:50:41]req_shift_open_date [15:50:41]req_shift_open_date done [15:50:41]produce_requested_data done [15:50:41]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7737,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [15:50:41]process_action_free get_value [15:50:41]json_value_free [15:50:41]json_value_free done [15:50:41]process_json_proto returns [15:50:41]Send response to host [15:50:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7737,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [15:50:41]free response buf [15:50:41]execute_script done [15:50:41]execute_script returns [15:50:41]free content buf [15:50:41]Sock 7.Close socket [15:50:41]Sock 7.Thread stoped [15:50:41]accept exits with 11 [15:50:41]New connection [15:50:41]New thread 3066817892 created [15:50:41]Thread 3066961252 joined [15:50:41]Waiting for new connection... [15:50:41] Sock 11.Parse request [15:50:41]Sock 11.Check first char [15:50:41]Sock 11.First char is OK [15:50:41]request: POST /json_proto HTTP/1.0 [15:50:41]Method: POST [15:50:41]URL: /json_proto [15:50:41]Method is POST - this is cgi request [15:50:44]CAPDU: 80 17 00 00 [15:50:44]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:50:44]Write i2c OK [15:50:44]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 D4 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [15:50:45]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:50:45]wFMCommunicate OK [15:50:45]SAM_PROTO_GetShiftData done [15:50:45]requested_item shift.sale.total_cash is exist - process it [15:50:45]requested_item shift.sale_refund.total is exist - process it [15:50:45]requested_item shift.sale_refund.total_cash is exist - process it [15:50:45]requested_item shift.buy.total is exist - process it [15:50:45]requested_item shift.buy.total_cash is exist - process it [15:50:45]produce_requested_data done [15:50:45]produce_requested_data return {"fm.sale.total":8249545.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":138927.51,"shift.sale.total_cash":130375.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:50:45]process_action_free get_value [15:50:45]json_value_free [15:50:45]json_value_free done [15:50:45]process_json_proto returns [15:50:45]Send response to host [15:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8249545.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":138927.51,"shift.sale.total_cash":130375.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:50:45]free response buf [15:50:45]execute_script done [15:50:45]execute_script returns [15:50:45]free content buf [15:50:45]Sock 11.Close socket [15:50:45]Sock 11.Thread stoped [15:50:45]accept exits with 7 [15:50:45]New connection [15:50:45]New thread 3066961252 created [15:50:45]Thread 3066817892 joined [15:50:45]Waiting for new connection... [15:50:45] Sock 7.Parse request [15:50:45]Sock 7.Check first char [15:50:45]Sock 7.First char is OK [15:50:45]request: POST /json_proto HTTP/1.0 [15:50:45]Method: POST [15:50:45]URL: /json_proto [15:50:45]Method is POST - this is cgi request [15:50:45]url: /json_proto [15:50:45]query_string will be loaded in cgi processing [15:50:45]execute_cgi json_proto POST (null) [15:50:45]execute_cgi path=json_proto method=POST [15:50:45]POST find Content-Length [15:50:45]Host: 172.17.47.195:8080 [15:50:45]Content-Length: 144 [15:50:45]Content-Type: application/json [15:50:45] [15:50:45]POST finish read [15:50:45]Found Content-Length = 144 [15:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [15:50:45]execute_script... [15:50:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [15:50:45]POST & json_proto [15:50:45]process_json_proto [15:50:45]json parsed OK: [15:50:45]protocol is kg_v1.0 [15:50:45]action value=print_doc [15:50:45]process_action print_doc [15:50:45]ExternCall_PrintAddStr [15:50:45]wPrintStart [15:50:45]Write to MH i2c: 01 00 00 1D 00 1D [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 07 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [15:50:45]RasterBufferAndPrint [15:50:45]line Счет N : (1)871849 [15:50:45]line ИНН: 02508201610067 [15:50:45]line Контрольно-Кассовый Чек [15:50:45]line ПРОДАЖА [15:50:45]line ТРК (МРК, ГНК) : 33 [15:50:45]line Товар: 2710124130 [15:50:45]line Аи-92-К-5 [15:50:45]line 4.430 * 67.80 [15:50:45]line = 300.35 [15:50:45]line НДС 12% НСП 1% [15:50:45]line > о реализуемом товаре [15:50:45]line ОКРУГЛЕНИЕ: -0.35 [15:50:45]line ИТОГО: 300.00 [15:50:45]line Внесено: 300.00 [15:50:45]line СДАЧА: 0.00 [15:50:45]line НСП 1% : 2.66 [15:50:45]line НДС 12% : 31.90 [15:50:45]line Наличными: 300.00 [15:50:45]line Безнал.: 0.00 [15:50:45]line Место: АЗС № 137 "Партнер Нефть" [15:50:45]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [15:50:45]line СНО: Общий режим [15:50:45]line Чек 135 22.09.2024 15:47 [15:50:45]line Смена: 70 ФФД: 1.0 [15:50:45]line ЗНМ: 0300000041 [15:50:45]line РНМ: 0000000000190446 [15:50:45]line Версия ККМ: v1.0 [15:50:45]line ФМ: 0000000002094258 [15:50:45]line ФД: 7737 [15:50:45]line ФПД: 211577897891094 [15:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154739&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7737&fm=211577897891094&tin=02508201610067®Number=0000000000190446&sum=30000 [15:50:45]written 0, free lines is 4095 [15:50:45]Write to MH i2c: 01 00 00 48 00 48 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 07 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 EF 0C 4A [15:50:45]RasterBufferAndPrint [15:50:45]line [15:50:45]line [15:50:45]line [15:50:45]line [15:50:45]line [15:50:45]written 0, free lines is 3329 [15:50:45]MH_Cut [15:50:45]Write to MH i2c: D1 01 00 4F 00 01 21 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: D1 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: D1 01 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: D1 01 00 4F 00 00 20 [15:50:45]Write to MH i2c: 01 00 00 50 00 50 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:46]*** Cut start [15:50:46]*** Purtial cut [15:50:46]*** Stage 1: CUTSNS_PIN = 1 [15:50:46]Read from MH i2c: 01 [15:50:46]MH_I2C_Read... [15:50:46]*** Stop cut motor [15:50:46]*** Cut end [15:50:46]Read from MH i2c: 01 07 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [15:50:46]process_action print_doc done [15:50:46]requested_data is exist [15:50:46]produce_requested_data [15:50:46]produce_requested_data return (null) [15:50:46]process_action_free print_doc [15:50:46]json_value_free [15:50:46]json_value_free done [15:50:46]process_json_proto returns [15:50:46]Send response to host [15:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [15:50:46]free response buf [15:50:46]execute_script done [15:50:46]execute_script returns [15:50:46]free content buf [15:50:46]Sock 7.Close socket [15:50:46]Sock 7.Thread stoped [15:50:49]OFD Sender: Processing packet 7737 [packets to send 51, broken 50] [15:50:49]ProducePacketName [15:50:49]name=ofd_packets/00007737 [15:50:49]OFD Sender: To server: pG, [15:50:49]CommunicateWithHost lk.salyk.kg:30040 [15:50:49]ConnectInit lk.salyk.kg [15:50:56]recv_with_timeout no data received [15:51:12]Connected sock=9 [15:51:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 52 CD 07 01 8B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 1B 3C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 39 1E 00 00 35 04 06 00 C0 6D D1 72 35 16 8D CB 18 59 6A C5 75 EE [15:51:17]recv_with_timeout no data received [15:51:17]CommunicateWithHost answer receiving error [15:51:17]CommunicateWithHost err = -3 [15:51:17]OFD Sender: Server communicate error [15:51:19]recv_with_timeout no data received [15:51:22]OFD Sender: Processing packet 7737 [packets to send 51, broken 50] [15:51:22]ProducePacketName [15:51:22]name=ofd_packets/00007737 [15:51:22]OFD Sender: To server: pG, [15:51:22]CommunicateWithHost lk.salyk.kg:30040 [15:51:22]ConnectInit lk.salyk.kg [15:51:27]ConnectInit Can't take IP for lk.salyk.kg [15:51:27]CommunicateWithHost connect error [15:51:27]CommunicateWithHost err = -1 [15:51:27]OFD Sender: Server communicate error [15:51:32]OFD Sender: Processing packet 7737 [packets to send 51, broken 50] [15:51:32]ProducePacketName [15:51:32]name=ofd_packets/00007737 [15:51:32]OFD Sender: To server: pG, [15:51:32]CommunicateWithHost lk.salyk.kg:30040 [15:51:32]ConnectInit lk.salyk.kg [15:51:37]ConnectInit Can't take IP for lk.salyk.kg [15:51:37]CommunicateWithHost connect error [15:51:37]CommunicateWithHost err = -1 [15:51:37]OFD Sender: Server communicate error [15:51:42]OFD Sender: Processing packet 7737 [packets to send 51, broken 50] [15:51:42]ProducePacketName [15:51:42]name=ofd_packets/00007737 [15:51:42]OFD Sender: To server: pG, [15:51:42]CommunicateWithHost lk.salyk.kg:30040 [15:51:42]ConnectInit lk.salyk.kg [15:51:47]ConnectInit Can't take IP for lk.salyk.kg [15:51:47]CommunicateWithHost connect error [15:51:47]CommunicateWithHost err = -1 [15:51:47]OFD Sender: Server communicate error [15:51:52]OFD Sender: Processing packet 7737 [packets to send 51, broken 50] [15:51:52]ProducePacketName [15:51:52]name=ofd_packets/00007737 [15:51:52]OFD Sender: To server: pG, [15:51:52]CommunicateWithHost lk.salyk.kg:30040 [15:51:52]ConnectInit lk.salyk.kg [15:51:56]ConnectInit Can't connect to host [15:51:57]ConnectInit Can't take IP for lk.salyk.kg [15:51:57]CommunicateWithHost connect error [15:51:57]CommunicateWithHost err = -1 [15:51:57]OFD Sender: Server communicate error [15:52:01]ConnectInit Can't connect to host [15:52:02]OFD Sender: Processing packet 7737 [packets to send 51, broken 50] [15:52:02]ProducePacketName [15:52:02]name=ofd_packets/00007737 [15:52:02]OFD Sender: To server: pG, [15:52:02]CommunicateWithHost lk.salyk.kg:30040 [15:52:02]ConnectInit lk.salyk.kg [15:52:07]ConnectInit Can't take IP for lk.salyk.kg [15:52:07]CommunicateWithHost connect error [15:52:07]CommunicateWithHost err = -1 [15:52:07]OFD Sender: Server communicate error [15:52:12]OFD Sender: Processing packet 7737 [packets to send 51, broken 50] [15:52:12]ProducePacketName [15:52:12]name=ofd_packets/00007737 [15:52:12]OFD Sender: To server: pG, [15:52:12]CommunicateWithHost lk.salyk.kg:30040 [15:52:12]ConnectInit lk.salyk.kg [15:52:13]recv_with_timeout no data received [15:52:19]Connected sock=9 [15:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 52 CD 07 01 8B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 1B 3C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 39 1E 00 00 35 04 06 00 C0 6D D1 72 35 16 8D CB 18 59 6A C5 75 EE [15:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 9A 6F 47 00 34 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 32 30 39 34 32 35 38 10 04 04 00 39 1E 00 00 F4 03 04 00 EF E7 EF 66 B6 04 01 00 00 FC CC DD 52 57 B5 88 D1 [15:52:20]CommunicateWithHost err = 0 [15:52:20]CheckOFDResponse [15:52:20]1017 (14) - 77093643461234 [15:52:20]1041 (16) - 0000000002094258 [15:52:20]1040 (4) - 7737 [15:52:20]1012 (4) - 22.09.2024 09:48 [15:52:20]1206 (1) - 0 [15:52:20]OFD Sender: Remove packet 7737 [15:52:20]ProducePacketName [15:52:20]name=ofd_packets/00007737 [15:52:20]NVStorageDeleteData [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:41]accept exits with 8 [15:52:41]New connection [15:52:41]New thread 3066817892 created [15:52:41]Thread 3066961252 joined [15:52:41]Waiting for new connection... [15:52:41] Sock 8.Parse request [15:52:41]Sock 8.Check first char [15:52:41]Sock 8.First char is OK [15:52:41]request: POST /json_proto HTTP/1.0 [15:52:41]Method: POST [15:52:41]URL: /json_proto [15:52:41]Method is POST - this is cgi request [15:52:41]url: /json_proto [15:52:41]query_string will be loaded in cgi processing [15:52:41]execute_cgi json_proto POST (null) [15:52:41]execute_cgi path=json_proto method=POST [15:52:41]POST find Content-Length [15:52:41]Host: 172.17.47.195:8080 [15:52:41]Content-Length: 759 [15:52:41]Content-Type: application/json [15:52:41] [15:52:41]POST finish read [15:52:41]Found Content-Length = 759 [15:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30116596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:41]execute_script... [15:52:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30116596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:41]POST & json_proto [15:52:41]process_json_proto [15:52:41]json parsed OK: [15:52:41]protocol is kg_v1.0 [15:52:41]action value=close_receipt [15:52:41]process_action close_receipt [15:52:41]cmd_close_receipt [15:52:41]MH_GetDate [15:52:41]Write to MH i2c: F0 00 00 51 00 40 [15:52:41]Write i2c OK [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: F0 [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: F0 09 00 [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: F0 09 00 51 00 00 49 3D F0 66 96 2E 95 66 E4 [15:52:41]GetLastDocTimeStamp 1727020059 [15:52:41]current date 1727020361 [15:52:41]FM_GetShiftState [15:52:41]SAM_PROTO_GetShiftState [15:52:41]wFMCommunicate request_size=4 [15:52:41]MH_SAM_APDU [15:52:41]CAPDU: 80 13 01 00 [15:52:41]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [15:52:41]Write i2c OK [15:52:41]MH_I2C_Read... [15:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:41]Read from MH i2c: E2 [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: E2 0E 00 [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 92 [15:52:41]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [15:52:41]wFMCommunicate OK [15:52:41]SAM_PROTO_GetShiftState done [15:52:41]FM_GetShiftState done [15:52:41]opened in 1726964224 [15:52:41]opened+sec_in_day 1727050624 [15:52:41]quantity*price = 0 [15:52:41]sum+1 = 1 [15:52:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 136 22.09.2024 15:52 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30116596 ФМ: 0000000002094258 ФД: 7738 ФПД: 255168993095553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T155241&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7738&fm=255168993095553&tin=02508201610067®Number=0000000000190446&sum=0 [15:52:42]StoreToDocumentArchive [15:52:42]shift 70 fd 7738 [15:52:42]save to /storage/0070/doc_00007738 [15:52:42]save last doc name /storage/0070/doc_00007738 to /storage/kkm_last_doc_name [15:52:42]save OK [15:52:42]Clear old archive folders... [15:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:52:42]tlvbuf is 00678A10 [15:52:42]SAM_PROTO_ClearQueue [15:52:42]wFMCommunicate request_size=4 [15:52:42]MH_SAM_APDU [15:52:42]CAPDU: 80 09 00 00 [15:52:42]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [15:52:42]Write i2c OK [15:52:42]MH_I2C_Read... [15:52:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:42]Read from MH i2c: E2 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 03 00 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [15:52:42]RAPDU: 90 00 [15:52:42]wFMCommunicate OK [15:52:42]SAM_PROTO_ClearQueue done [15:52:42]KKMCreateOFDPacket [15:52:42]OFDProtocolAddRootSTLVToBuf [15:52:42]FM_MakeSignedData [15:52:42]FM_MakeSignedData [15:52:42]SAM_PROTO_SignData [15:52:42]wFMCommunicate request_size=4 [15:52:42]MH_SAM_APDU [15:52:42]CAPDU: 80 0D 01 02 [15:52:42]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [15:52:42]Write i2c OK [15:52:42]MH_I2C_Read... [15:52:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:42]Read from MH i2c: E2 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 03 00 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [15:52:42]RAPDU: 90 00 [15:52:42]wFMCommunicate OK [15:52:42]wFMCommunicate request_size=255 [15:52:42]MH_SAM_APDU [15:52:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 88 00 00 00 F4 03 04 00 49 3D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3A 1E 00 00 35 04 06 00 [15:52:42]Write to MH i2c: E2 02 01 61 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 34 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 88 00 00 00 F4 03 04 00 49 3D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3A 1E 00 00 35 04 06 00 00 00 99 [15:52:42]Write i2c OK [15:52:42]MH_I2C_Read... [15:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:43]Read from MH i2c: E2 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: E2 03 00 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [15:52:43]RAPDU: 90 00 [15:52:43]wFMCommunicate OK [15:52:43]wFMCommunicate request_size=11 [15:52:43]MH_SAM_APDU [15:52:43]CAPDU: 80 0D 02 02 06 E8 13 29 30 EF 81 [15:52:43]Write to MH i2c: E2 0E 00 62 00 80 0D 02 02 06 00 E8 13 29 30 EF 81 00 00 AC [15:52:43]Write i2c OK [15:52:43]MH_I2C_Read... [15:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:43]Read from MH i2c: E2 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: E2 03 00 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [15:52:43]RAPDU: 90 00 [15:52:43]wFMCommunicate OK [15:52:43]wFMCommunicate request_size=4 [15:52:43]MH_SAM_APDU [15:52:43]CAPDU: 80 0D 03 02 [15:52:43]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [15:52:43]Write i2c OK [15:52:43]MH_I2C_Read... [15:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:43]Read from MH i2c: E2 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: E2 0B 00 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: E2 0B 00 63 00 00 60 26 F9 2D DD 71 D1 A4 90 00 4E [15:52:43]RAPDU: 60 26 F9 2D DD 71 D1 A4 90 00 [15:52:43]wFMCommunicate OK [15:52:43]SAM_PROTO_SignData done [15:52:43]FM_MakeSignedData done [15:52:43]CreateOFDProtocolMessage [15:52:43]wFMCommunicate request_size=4 [15:52:43]MH_SAM_APDU [15:52:43]CAPDU: 80 11 00 00 [15:52:43]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [15:52:43]Write i2c OK [15:52:43]MH_I2C_Read... [15:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:43]Read from MH i2c: E2 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: E2 17 00 [15:52:43]MH_I2C_Read... [15:52:43]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 2F [15:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:52:43]wFMCommunicate OK [15:52:43]CreateOFDProtocolMessage done [15:52:43]OFDSenderStorePacket 7738 [15:52:43]StoreOFDPacket docnum=7738 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]*** Waiting for read because exit forced [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005724E0 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** 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: 5967922+1721052822=1727020744 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 C8 3E F0 66 96 2E 95 66 1A [15:59:04]Current date/time: 22.09.2024 15:59 [15:59:04]FM_Init [15:59:04]wFMConnect [15:59:04]MH_SAM_On [15:59:04]Write to MH i2c: E0 00 00 08 00 E7 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_init finished! [15:59:04]*** atr: [15:59:04]*** 0F 3B D5 18 FF 81 91 FE [15:59:04]*** 1F C3 80 73 C8 21 10 0A [15:59:04]*** 00 00 00 00 00 00 00 00 [15:59:04]*** 00 00 00 00 00 00 00 00 [15:59:04]*** 00 00 00 00 00 00 00 00 [15:59:04]*** 00 00 00 00 00 00 00 00 [15:59:04]*** 00 00 00 00 00 00 00 00 [15:59:04]*** 00 00 00 00 00 00 00 00 [15:59:04]Read from MH i2c: E0 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E0 10 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [15:59:04]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:59:04]wFMCommunicate request_size=10 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:59:04]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:59:04]RAPDU: 90 00 [15:59:04]wFMCommunicate OK [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 11 00 00 [15:59:04]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [15:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:59:04]wFMCommunicate OK [15:59:04]Detected FM SN is 0000000002094258 [15:59:04]Stored FM SN is 0000000002094258 [15:59:04]wFMCommunicate request_size=9 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 16 00 00 04 BC C2 00 00 [15:59:04]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:59:04]RAPDU: 90 00 [15:59:04]wFMCommunicate OK [15:59:04]FM PIN OK [15:59:04]wFMCommunicate request_size=8 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 14 04 00 03 02 00 01 [15:59:04]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:59:04]RAPDU: 90 00 [15:59:04]wFMCommunicate OK [15:59:04]wFMCommunicate request_size=13 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:59:04]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:59:04]RAPDU: 90 00 [15:59:04]wFMCommunicate OK [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 11 00 00 [15:59:04]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [15:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [15:59:04]wFMCommunicate OK [15:59:04]DocumentArchiveInit [15:59:04]Start Httpd... [15:59:04]Httpd thread 3067903332 created [15:59:04]Write to MH i2c: 01 00 00 0F 00 0F [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:59:04]MH Int Process started [15:59:04]Allocated Socket 7 [15:59:04]Bind OK [15:59:04]Listen OK [15:59:04]httpd running on port 8080 [15:59:04]Waiting for new connection... [15:59:04]OFD Sender: Processing packet 7738 [packets to send 51, broken 50] [15:59:04]ProducePacketName [15:59:04]name=ofd_packets/00007738 [15:59:04]OFD Sender: To server: pG, [15:59:04]CommunicateWithHost lk.salyk.kg:30040 [15:59:04]ConnectInit lk.salyk.kg [15:59:09]ConnectInit Can't take IP for lk.salyk.kg [15:59:09]CommunicateWithHost connect error [15:59:09]CommunicateWithHost err = -1 [15:59:09]OFD Sender: Server communicate error [15:59:14]OFD Sender: Processing packet 7738 [packets to send 51, broken 50] [15:59:14]ProducePacketName [15:59:14]name=ofd_packets/00007738 [15:59:14]OFD Sender: To server: pG, [15:59:14]CommunicateWithHost lk.salyk.kg:30040 [15:59:14]ConnectInit lk.salyk.kg [15:59:18]recv_with_timeout no data received [15:59:19]ConnectInit Can't take IP for lk.salyk.kg [15:59:19]CommunicateWithHost connect error [15:59:19]CommunicateWithHost err = -1 [15:59:19]OFD Sender: Server communicate error [15:59:24]OFD Sender: Processing packet 7738 [packets to send 51, broken 50] [15:59:24]ProducePacketName [15:59:24]name=ofd_packets/00007738 [15:59:24]OFD Sender: To server: pG, [15:59:24]CommunicateWithHost lk.salyk.kg:30040 [15:59:24]ConnectInit lk.salyk.kg [15:59:24]Connected sock=10 [15:59:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 A8 F6 08 01 57 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 49 3D F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3A 1E 00 00 35 04 06 00 E8 13 29 30 EF 81 60 26 F9 2D DD 71 D1 A4 [15:59:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 30 FF 47 00 2F 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 32 30 39 34 32 35 38 10 04 04 00 3A 1E 00 00 F4 03 04 00 9A E9 EF 66 B6 04 01 00 00 DC 64 5D E8 33 8C 73 5B [15:59:25]CommunicateWithHost err = 0 [15:59:25]CheckOFDResponse [15:59:25]1017 (14) - 77093643461234 [15:59:25]1041 (16) - 0000000002094258 [15:59:25]1040 (4) - 7738 [15:59:25]1012 (4) - 22.09.2024 09:55 [15:59:25]1206 (1) - 0 [15:59:25]OFD Sender: Remove packet 7738 [15:59:25]ProducePacketName [15:59:25]name=ofd_packets/00007738 [15:59:25]NVStorageDeleteData [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:20]recv_with_timeout no data received [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02: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:09]accept exits with 8 [16:03:09]New connection [16:03:09]New thread 3067616612 created [16:03:09]Waiting for new connection... [16:03:09] Sock 8.Parse request [16:03:09]Sock 8.Check first char [16:03:09]Sock 8.First char is OK [16:03:09]request: POST /json_proto HTTP/1.0 [16:03:09]Method: POST [16:03:09]URL: /json_proto [16:03:09]Method is POST - this is cgi request [16:03:09]url: /json_proto [16:03:09]query_string will be loaded in cgi processing [16:03:09]execute_cgi json_proto POST (null) [16:03:09]execute_cgi path=json_proto method=POST [16:03:09]POST find Content-Length [16:03:09]Host: 172.17.47.195:8080 [16:03:09]Content-Length: 215 [16:03:09]Content-Type: application/json [16:03:09] [16:03:09]POST finish read [16:03:09]Found Content-Length = 215 [16:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:09]execute_script... [16:03:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:09]POST & json_proto [16:03:09]process_json_proto [16:03:09]json parsed OK: [16:03:09]protocol is kg_v1.0 [16:03:09]action value=get_value [16:03:09]process_action get_value [16:03:09]cmd_get_value [16:03:09]process_action get_value done [16:03:09]requested_data is exist [16:03:09]produce_requested_data [16:03:09]requested_item kkm.sn is exist - process it [16:03:09]requested_item kkm.ver is exist - process it [16:03:09]requested_item fm.sn is exist - process it [16:03:09]wFMCommunicate request_size=4 [16:03:09]MH_SAM_APDU [16:03:09]CAPDU: 80 11 00 00 [16:03:09]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:09]Read from MH i2c: E2 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 17 00 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [16:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:03:09]wFMCommunicate OK [16:03:09]requested_item fd.num is exist - process it [16:03:09]SAM_PROTO_GetFieldsCounters [16:03:09]wFMCommunicate request_size=4 [16:03:09]MH_SAM_APDU [16:03:09]CAPDU: 80 13 00 00 [16:03:09]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:09]Read from MH i2c: E2 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 62 00 [16:03:09]MH_I2C_Read... [16:03:09]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 3A 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [16:03:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 3A 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:09]wFMCommunicate OK [16:03:09]SAM_PROTO_GetFieldsCounters done [16:03:09]requested_item shift.num is exist - process it [16:03:09]requested_item shift.opened is exist - process it [16:03:09]req_shift_opened [16:03:09]FM_GetShiftState [16:03:09]SAM_PROTO_GetShiftState [16:03:09]wFMCommunicate request_size=4 [16:03:09]MH_SAM_APDU [16:03:09]CAPDU: 80 13 01 00 [16:03:09]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:09]Read from MH i2c: E2 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 0E 00 [16:03:09]MH_I2C_Read... [16:03:09]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [16:03:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:03:09]wFMCommunicate OK [16:03:09]SAM_PROTO_GetShiftState done [16:03:09]FM_GetShiftState done [16:03:09]req_shift_opened done [16:03:09]requested_item shift.open_date is exist - process it [16:03:09]req_shift_open_date [16:03:09]req_shift_open_date done [16:03:09]produce_requested_data done [16:03:09]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7738,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [16:03:09]process_action_free get_value [16:03:09]json_value_free [16:03:09]json_value_free done [16:03:09]process_json_proto returns [16:03:09]Send response to host [16:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7738,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [16:03:09]free response buf [16:03:09]execute_script done [16:03:09]execute_script returns [16:03:09]free content buf [16:03:09]Sock 8.Close socket [16:03:09]Sock 8.Thread stoped [16:03:09]accept exits with 10 [16:03:09]New connection [16:03:09]New thread 3067473252 created [16:03:09]Thread 3067616612 joined [16:03:09]Waiting for new connection... [16:03:09] Sock 10.Parse request [16:03:09]Sock 10.Check first char [16:03:09]Sock 10.First char is OK [16:03:09]request: POST /json_proto HTTP/1.0 [16:03:09]Method: POST [16:03:09]URL: /json_proto [16:03:09]Method is POST - this is cgi request [16:03:09]url: /json_proto [16:03:09]query_string will be loaded in cgi processing [16:03:09]execute_cgi json_proto POST (null) [16:03:09]execute_cgi path=json_proto method=POST [16:03:09]POST find Content-Length [16:03:09]Host: 172.17.47.195:8080 [16:03:09]Content-Length: 331 [16:03:09]Content-Type: application/json [16:03:09] [16:03:09]POST finish read [16:03:09]Found Content-Length = 331 [16:03:09]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" ] } } [16:03:09]execute_script... [16:03:09]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" ] } } [16:03:09]POST & json_proto [16:03:09]process_json_proto [16:03:09]json parsed OK: [16:03:09]protocol is kg_v1.0 [16:03:09]action value=get_value [16:03:09]process_action get_value [16:03:09]cmd_get_value [16:03:09]process_action get_value done [16:03:09]requested_data is exist [16:03:09]produce_requested_data [16:03:09]requested_item fm.sale.total is exist - process it [16:03:09]SAM_PROTO_GetFMData [16:03:09]wFMCommunicate request_size=4 [16:03:09]MH_SAM_APDU [16:03:09]CAPDU: 80 13 03 00 [16:03:09]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:03:09]Write i2c OK [16:03:09]MH_I2C_Read... [16:03:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:03:10]Read from MH i2c: E2 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: E2 FD 00 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 AE 1D 00 00 69 04 A0 00 6F 04 04 00 81 1D 00 00 B1 04 04 00 8B CE 2B 31 70 04 04 00 2C F1 40 29 72 04 04 00 5F DD EA 07 00 04 7C 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 21 0F 39 05 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 74 6B 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 2A [16:03:10]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 AE 1D 00 00 69 04 A0 00 6F 04 04 00 81 1D 00 00 B1 04 04 00 8B CE 2B 31 70 04 04 00 2C F1 40 29 72 04 04 00 5F DD EA 07 00 04 7C 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 21 0F 39 05 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 74 6B 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [16:03:10]wFMCommunicate OK [16:03:10]wFMCommunicate request_size=4 [16:03:10]MH_SAM_APDU [16:03:10]CAPDU: 80 17 00 00 [16:03:10]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:03:10]Write i2c OK [16:03:10]MH_I2C_Read... [16:03:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:03:10]Read from MH i2c: E2 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: E2 FD 00 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [16:03:10]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [16:03:10]wFMCommunicate OK [16:03:10]wFMCommunicate request_size=4 [16:03:10]MH_SAM_APDU [16:03:10]CAPDU: 80 17 00 00 [16:03:10]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:03:10]Write i2c OK [16:03:10]MH_I2C_Read... [16:03:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:03:10]Read from MH i2c: E2 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: E2 FD 00 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [16:03:10]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:03:10]wFMCommunicate OK [16:03:10]wFMCommunicate request_size=4 [16:03:10]MH_SAM_APDU [16:03:10]CAPDU: 80 17 00 00 [16:03:10]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:03:10]Write i2c OK [16:03:10]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 FD 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [16:03:11]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:03:11]wFMCommunicate OK [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 17 00 00 [16:03:11]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 DE 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [16:03:11]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:03:11]wFMCommunicate OK [16:03:11]SAM_PROTO_GetFMData done [16:03:11]requested_item fm.sale_refund.total is exist - process it [16:03:11]requested_item fm.buy.total is exist - process it [16:03:11]requested_item shift.sale.total is exist - process it [16:03:11]SAM_PROTO_GetShiftData [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 13 02 00 [16:03:11]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]OFD Sender: No OFD packet to send [16:03:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 FD 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 88 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 8F FC D3 70 04 03 00 BC EF C6 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 84 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5E E0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 1B [16:03:11]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 88 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 8F FC D3 70 04 03 00 BC EF C6 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 84 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5E E0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [16:03:11]wFMCommunicate OK [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 17 00 00 [16:03:11]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:03:12]Read from MH i2c: E2 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 FD 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [16:03:12]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [16:03:12]wFMCommunicate OK [16:03:12]wFMCommunicate request_size=4 [16:03:12]MH_SAM_APDU [16:03:12]CAPDU: 80 17 00 00 [16:03:12]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:03:12]Read from MH i2c: E2 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 FD 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [16:03:12]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:03:12]wFMCommunicate OK [16:03:12]wFMCommunicate request_size=4 [16:03:12]MH_SAM_APDU [16:03:12]CAPDU: 80 17 00 00 [16:03:12]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:03:12]Read from MH i2c: E2 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 FD 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [16:03:12]RAPDU: 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 90 00 [16:03:12]wFMCommunicate OK [16:03:12]wFMCommunicate request_size=4 [16:03:12]MH_SAM_APDU [16:03:12]CAPDU: 80 17 00 00 [16:03:12]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [16:03:12]Read from MH i2c: E2 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 D4 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [16:03:12]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:03:12]wFMCommunicate OK [16:03:12]SAM_PROTO_GetShiftData done [16:03:12]requested_item shift.sale.total_cash is exist - process it [16:03:12]requested_item shift.sale_refund.total is exist - process it [16:03:12]requested_item shift.sale_refund.total_cash is exist - process it [16:03:12]requested_item shift.buy.total is exist - process it [16:03:12]requested_item shift.buy.total_cash is exist - process it [16:03:12]produce_requested_data done [16:03:12]produce_requested_data return {"fm.sale.total":8249545.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":138927.51,"shift.sale.total_cash":130375.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:03:12]process_action_free get_value [16:03:12]json_value_free [16:03:12]json_value_free done [16:03:12]process_json_proto returns [16:03:12]Send response to host [16:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8249545.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":138927.51,"shift.sale.total_cash":130375.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:03:12]free response buf [16:03:12]execute_script done [16:03:12]execute_script returns [16:03:12]free content buf [16:03:12]Sock 10.Close socket [16:03:12]Sock 10.Thread stoped [16:03:13]accept exits with 8 [16:03:13]New connection [16:03:13]New thread 3067616612 created [16:03:13]Thread 3067473252 joined [16:03:13]Waiting for new connection... [16:03:13] Sock 8.Parse request [16:03:13]Sock 8.Check first char [16:03:13]Sock 8.First char is OK [16:03:13]request: POST /json_proto HTTP/1.0 [16:03:13]Method: POST [16:03:13]URL: /json_proto [16:03:13]Method is POST - this is cgi request [16:03:13]url: /json_proto [16:03:13]query_string will be loaded in cgi processing [16:03:13]execute_cgi json_proto POST (null) [16:03:13]execute_cgi path=json_proto method=POST [16:03:13]POST find Content-Length [16:03:13]Host: 172.17.47.195:8080 [16:03:13]Content-Length: 759 [16:03:13]Content-Type: application/json [16:03:13] [16:03:13]POST finish read [16:03:13]Found Content-Length = 759 [16:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:13]execute_script... [16:03: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)871861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:13]POST & json_proto [16:03:13]process_json_proto [16:03:13]json parsed OK: [16:03:13]protocol is kg_v1.0 [16:03:13]action value=close_receipt [16:03:13]process_action close_receipt [16:03:13]cmd_close_receipt [16:03:13]MH_GetDate [16:03:13]Write to MH i2c: F0 00 00 1D 00 0C [16:03:13]Write i2c OK [16:03:13]MH_I2C_Read... [16:03:13]Read from MH i2c: F0 [16:03:13]MH_I2C_Read... [16:03:13]Read from MH i2c: F0 09 00 [16:03:13]MH_I2C_Read... [16:03:13]Read from MH i2c: F0 09 00 1D 00 00 C2 3F F0 66 96 2E 95 66 2B [16:03:13]GetLastDocTimeStamp 1727020361 [16:03:13]current date 1727020994 [16:03:13]FM_GetShiftState [16:03:13]SAM_PROTO_GetShiftState [16:03:13]wFMCommunicate request_size=4 [16:03:13]MH_SAM_APDU [16:03:13]CAPDU: 80 13 01 00 [16:03:13]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:03:13]Write i2c OK [16:03:13]MH_I2C_Read... [16:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:13]Read from MH i2c: E2 [16:03:13]MH_I2C_Read... [16:03:13]Read from MH i2c: E2 0E 00 [16:03:13]MH_I2C_Read... [16:03:13]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [16:03:13]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:03:13]wFMCommunicate OK [16:03:13]SAM_PROTO_GetShiftState done [16:03:13]FM_GetShiftState done [16:03:13]opened in 1726964224 [16:03:13]opened+sec_in_day 1727050624 [16:03:13]quantity*price = 0 [16:03:13]sum+1 = 1 [16:03:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 137 22.09.2024 16:03 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30116596 ФМ: 0000000002094258 ФД: 7739 ФПД: 59866999292360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T160314&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7739&fm=59866999292360&tin=02508201610067®Number=0000000000190446&sum=0 [16:03:14]StoreToDocumentArchive [16:03:14]shift 70 fd 7739 [16:03:14]save to /storage/0070/doc_00007739 [16:03:14]save last doc name /storage/0070/doc_00007739 to /storage/kkm_last_doc_name [16:03:14]save OK [16:03:14]Clear old archive folders... [16:03:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:03:14]tlvbuf is 017F6150 [16:03:14]SAM_PROTO_ClearQueue [16:03:14]wFMCommunicate request_size=4 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 09 00 00 [16:03:14]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:14]Read from MH i2c: E2 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 03 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:03:14]RAPDU: 90 00 [16:03:14]wFMCommunicate OK [16:03:14]SAM_PROTO_ClearQueue done [16:03:14]KKMCreateOFDPacket [16:03:14]OFDProtocolAddRootSTLVToBuf [16:03:14]FM_MakeSignedData [16:03:14]FM_MakeSignedData [16:03:14]SAM_PROTO_SignData [16:03:14]wFMCommunicate request_size=4 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 0D 01 02 [16:03:14]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:14]Read from MH i2c: E2 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 03 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:03:14]RAPDU: 90 00 [16:03:14]wFMCommunicate OK [16:03:14]wFMCommunicate request_size=255 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C2 3F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3B 1E 00 00 35 04 06 00 [16:03:14]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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C2 3F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3B 1E 00 00 35 04 06 00 00 00 55 [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]wFMCommunicate request_size=11 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 0D 02 02 06 36 72 DF 3A 01 C8 [16:03:15]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 36 72 DF 3A 01 C8 00 00 3E [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 0D 03 02 [16:03:15]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 0B 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 0B 00 2F 00 00 1D DC 27 57 1D 06 1B BD 90 00 1D [16:03:15]RAPDU: 1D DC 27 57 1D 06 1B BD 90 00 [16:03:15]wFMCommunicate OK [16:03:15]SAM_PROTO_SignData done [16:03:15]FM_MakeSignedData done [16:03:15]CreateOFDProtocolMessage [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 11 00 00 [16:03:15]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 17 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [16:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:03:15]wFMCommunicate OK [16:03:15]CreateOFDProtocolMessage done [16:03:15]OFDSenderStorePacket 7739 [16:03:15]StoreOFDPacket docnum=7739 [16:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 E8 10 08 01 57 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C2 3F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3B 1E 00 00 35 04 06 00 36 72 DF 3A 01 C8 1D DC 27 57 1D 06 1B BD [16:03:15]CheckFolder [16:03:15]dirname=/storage/ofd_packets [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: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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 4 (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: 5968320+1721052822=1727021142 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 56 40 F0 66 96 2E 95 66 AA [16:05:42]Current date/time: 22.09.2024 16:05 [16:05:42]FM_Init [16:05:42]wFMConnect [16:05:42]MH_SAM_On [16:05:42]Write to MH i2c: E0 00 00 08 00 E7 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_init finished! [16:05:42]*** atr: [16:05:42]*** 0F 3B D5 18 FF 81 91 FE [16:05:42]*** 1F C3 80 73 C8 21 10 0A [16:05:42]*** 00 00 00 00 00 00 00 00 [16:05:42]*** 00 00 00 00 00 00 00 00 [16:05:42]*** 00 00 00 00 00 00 00 00 [16:05:42]*** 00 00 00 00 00 00 00 00 [16:05:42]*** 00 00 00 00 00 00 00 00 [16:05:42]*** 00 00 00 00 00 00 00 00 [16:05:42]Read from MH i2c: E0 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E0 10 00 [16:05:42]MH_I2C_Read... [16:05:42]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 [16:05:42]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:05:42]wFMCommunicate request_size=10 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:05:42]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 11 00 00 [16:05:42]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 17 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [16:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:05:42]wFMCommunicate OK [16:05:42]Detected FM SN is 0000000002094258 [16:05:42]Stored FM SN is 0000000002094258 [16:05:42]wFMCommunicate request_size=9 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 16 00 00 04 BC C2 00 00 [16:05:42]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]FM PIN OK [16:05:42]wFMCommunicate request_size=8 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 14 04 00 03 02 00 01 [16:05:42]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]wFMCommunicate request_size=13 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:05:42]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 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 11 00 00 [16:05:42]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 17 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [16:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:05:42]wFMCommunicate OK [16:05:42]DocumentArchiveInit [16:05:42]Start Httpd... [16:05:42]Httpd thread 3066928484 created [16:05:42]Write to MH i2c: 01 00 00 0F 00 0F [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: 01 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: 01 07 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:05:42]MH Int Process started [16:05:42]Allocated Socket 8 [16:05:42]Bind OK [16:05:42]Listen OK [16:05:42]httpd running on port 8080 [16:05:42]Waiting for new connection... [16:05:42]OFD Sender: Processing packet 7739 [packets to send 54, broken 50] [16:05:42]ProducePacketName [16:05:42]name=ofd_packets/00007739 [16:05:42]OFD Sender: To server: pG, [16:05:42]CommunicateWithHost lk.salyk.kg:30040 [16:05:42]ConnectInit lk.salyk.kg [16:05:43]Connected sock=6 [16:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 E8 10 08 01 57 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C2 3F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3B 1E 00 00 35 04 06 00 36 72 DF 3A 01 C8 1D DC 27 57 1D 06 1B BD [16:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 CD EA 47 00 E3 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3B 1E 00 00 F4 03 04 00 14 EB EF 66 B6 04 01 00 00 B4 B5 3D 8D A3 58 91 F1 [16:05:44]CommunicateWithHost err = 0 [16:05:44]CheckOFDResponse [16:05:44]1017 (14) - 77093643461234 [16:05:44]1041 (16) - 0000000002094258 [16:05:44]1040 (4) - 7739 [16:05:44]1012 (4) - 22.09.2024 10:01 [16:05:44]1206 (1) - 0 [16:05:44]OFD Sender: Remove packet 7739 [16:05:44]ProducePacketName [16:05:44]name=ofd_packets/00007739 [16:05:44]NVStorageDeleteData [16:05:45]OFD Sender: Processing packet 7740 [packets to send 53, broken 50] [16:05:45]ProducePacketName [16:05:45]name=ofd_packets/00007740 [16:05:45]OFD Sender: To server: pG, [16:05:45]CommunicateWithHost lk.salyk.kg:30040 [16:05:45]ConnectInit lk.salyk.kg [16:05:45]accept exits with 9 [16:05:45]New connection [16:05:45]New thread 3066641764 created [16:05:45]Waiting for new connection... [16:05:45] Sock 9.Parse request [16:05:45]Sock 9.Check first char [16:05:45]Sock 9.First char is OK [16:05:45]request: POST /json_proto HTTP/1.0 [16:05:45]Method: POST [16:05:45]URL: /json_proto [16:05:45]Method is POST - this is cgi request [16:05:45]url: /json_proto [16:05:45]query_string will be loaded in cgi processing [16:05:45]execute_cgi json_proto POST (null) [16:05:45]execute_cgi path=json_proto method=POST [16:05:45]POST find Content-Length [16:05:45]Host: 172.17.47.195:8080 [16:05:45]Content-Length: 215 [16:05:45]Content-Type: application/json [16:05:45] [16:05:45]POST finish read [16:05:45]Found Content-Length = 215 [16:05:45]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" ] } } [16:05:45]execute_script... [16:05:45]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" ] } } [16:05:45]POST & json_proto [16:05:45]process_json_proto [16:05:45]json parsed OK: [16:05:45]protocol is kg_v1.0 [16:05:45]action value=get_value [16:05:45]process_action get_value [16:05:45]cmd_get_value [16:05:45]process_action get_value done [16:05:45]requested_data is exist [16:05:45]produce_requested_data [16:05:45]requested_item kkm.sn is exist - process it [16:05:45]requested_item kkm.ver is exist - process it [16:05:45]requested_item fm.sn is exist - process it [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 11 00 00 [16:05:45]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [16:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:05:45]wFMCommunicate OK [16:05:45]requested_item fd.num is exist - process it [16:05:45]SAM_PROTO_GetFieldsCounters [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 00 00 [16:05:45]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 62 00 [16:05:45]MH_I2C_Read... [16:05:45]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 3E 1E 00 00 0E 04 04 00 46 00 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 F1 [16:05:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 3E 1E 00 00 0E 04 04 00 46 00 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 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetFieldsCounters done [16:05:45]requested_item shift.num is exist - process it [16:05:45]requested_item shift.opened is exist - process it [16:05:45]req_shift_opened [16:05:45]FM_GetShiftState [16:05:45]SAM_PROTO_GetShiftState [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 01 00 [16:05:45]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0E 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [16:05:45]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetShiftState done [16:05:45]FM_GetShiftState done [16:05:45]req_shift_opened done [16:05:45]requested_item shift.open_date is exist - process it [16:05:45]req_shift_open_date [16:05:45]req_shift_open_date done [16:05:45]produce_requested_data done [16:05:45]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7742,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [16:05:45]process_action_free get_value [16:05:45]json_value_free [16:05:45]json_value_free done [16:05:45]process_json_proto returns [16:05:45]Send response to host [16:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7742,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [16:05:45]free response buf [16:05:45]execute_script done [16:05:45]execute_script returns [16:05:45]free content buf [16:05:45]Sock 9.Close socket [16:05:45]Sock 9.Thread stoped [16:05:45]accept exits with 11 [16:05:45]New connection [16:05:45]New thread 3066498404 created [16:05:45]Thread 3066641764 joined [16:05:45]Waiting for new connection... [16:05:45] Sock 11.Parse request [16:05:45]Sock 11.Check first char [16:05:45]Sock 11.First char is OK [16:05:45]request: POST /json_proto HTTP/1.0 [16:05:45]Method: POST [16:05:45]URL: /json_proto [16:05:45]Method is POST - this is cgi request [16:05:45]url: /json_proto [16:05:45]query_string will be loaded in cgi processing [16:05:45]execute_cgi json_proto POST (null) [16:05:45]execute_cgi path=json_proto method=POST [16:05:45]POST find Content-Length [16:05:45]Host: 172.17.47.195:8080 [16:05:45]Content-Length: 331 [16:05:45]Content-Type: application/json [16:05:45] [16:05:45]POST finish read [16:05:45]Found Content-Length = 331 [16:05:45]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" ] } } [16:05:45]execute_script... [16:05:45]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" ] } } [16:05:45]POST & json_proto [16:05:45]process_json_proto [16:05:45]json parsed OK: [16:05:45]protocol is kg_v1.0 [16:05:45]action value=get_value [16:05:45]process_action get_value [16:05:45]cmd_get_value [16:05:45]process_action get_value done [16:05:45]requested_data is exist [16:05:45]produce_requested_data [16:05:45]requested_item fm.sale.total is exist - process it [16:05:45]SAM_PROTO_GetFMData [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 03 00 [16:05:45]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 FD 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 B2 1D 00 00 69 04 A0 00 6F 04 04 00 85 1D 00 00 B1 04 04 00 7B 18 2E 31 70 04 04 00 1C 3B 43 29 72 04 04 00 5F DD EA 07 00 04 7C 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 60 4D 39 05 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 A4 70 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 5E [16:05:45]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 B2 1D 00 00 69 04 A0 00 6F 04 04 00 85 1D 00 00 B1 04 04 00 7B 18 2E 31 70 04 04 00 1C 3B 43 29 72 04 04 00 5F DD EA 07 00 04 7C 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 60 4D 39 05 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 A4 70 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [16:05:45]wFMCommunicate OK [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 17 00 00 [16:05:45]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [16:05:46]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [16:05:46]wFMCommunicate OK [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 17 00 00 [16:05:46]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [16:05:46]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:05:46]wFMCommunicate OK [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 17 00 00 [16:05:46]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [16:05:46]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:05:46]wFMCommunicate OK [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 17 00 00 [16:05:46]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 DE 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [16:05:46]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:05:46]wFMCommunicate OK [16:05:47]SAM_PROTO_GetFMData done [16:05:47]requested_item fm.sale_refund.total is exist - process it [16:05:47]requested_item fm.buy.total is exist - process it [16:05:47]requested_item shift.sale.total is exist - process it [16:05:47]SAM_PROTO_GetShiftData [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 13 02 00 [16:05:47]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]Connected sock=6 [16:05:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 9E 4D 08 01 A7 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 C6 3F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3C 1E 00 00 35 04 06 00 49 41 9A F3 95 9D DD BA 34 28 89 05 BA 01 [16:05:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 FD 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 8C 00 00 00 69 04 9C 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 7F 46 D6 70 04 03 00 AC 39 C9 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 27 C3 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E E5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 50 [16:05:47]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 8C 00 00 00 69 04 9C 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 7F 46 D6 70 04 03 00 AC 39 C9 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 27 C3 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E E5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [16:05:47]wFMCommunicate OK [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 17 00 00 [16:05:47]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 FD 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [16:05:47]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [16:05:47]wFMCommunicate OK [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 17 00 00 [16:05:47]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 FD 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [16:05:48]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:05:48]wFMCommunicate OK [16:05:48]wFMCommunicate request_size=4 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 80 17 00 00 [16:05:48]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 FD 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [16:05:48]RAPDU: 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 90 00 [16:05:48]wFMCommunicate OK [16:05:48]wFMCommunicate request_size=4 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 80 17 00 00 [16:05:48]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 D4 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [16:05:48]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:05:48]wFMCommunicate OK [16:05:48]SAM_PROTO_GetShiftData done [16:05:48]requested_item shift.sale.total_cash is exist - process it [16:05:48]requested_item shift.sale_refund.total is exist - process it [16:05:48]requested_item shift.sale_refund.total_cash is exist - process it [16:05:48]requested_item shift.buy.total is exist - process it [16:05:48]requested_item shift.buy.total_cash is exist - process it [16:05:48]produce_requested_data done [16:05:48]produce_requested_data return {"fm.sale.total":8251045.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":140427.51,"shift.sale.total_cash":131875.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:05:48]process_action_free get_value [16:05:48]json_value_free [16:05:48]json_value_free done [16:05:48]process_json_proto returns [16:05:48]Send response to host [16:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8251045.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":140427.51,"shift.sale.total_cash":131875.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:05:48]free response buf [16:05:48]execute_script done [16:05:48]execute_script returns [16:05:48]free content buf [16:05:48]Sock 11.Close socket [16:05:48]Sock 11.Thread stoped [16:05:49]accept exits with 9 [16:05:49]New connection [16:05:49]New thread 3066641764 created [16:05:49]Thread 3066498404 joined [16:05:49]Waiting for new connection... [16:05:49] Sock 9.Parse request [16:05:49]Sock 9.Check first char [16:05:49]Sock 9.First char is OK [16:05:49]request: POST /json_proto HTTP/1.0 [16:05:49]Method: POST [16:05:49]URL: /json_proto [16:05:49]Method is POST - this is cgi request [16:05:49]url: /json_proto [16:05:49]query_string will be loaded in cgi processing [16:05:49]execute_cgi json_proto POST (null) [16:05:49]execute_cgi path=json_proto method=POST [16:05:49]POST find Content-Length [16:05:49]Host: 172.17.47.195:8080 [16:05:49]Content-Length: 677 [16:05:49]Content-Type: application/json [16:05:49] [16:05:49]POST finish read [16:05:49]Found Content-Length = 677 [16:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871872", "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" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:49]execute_script... [16:05: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)871872", "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" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:49]POST & json_proto [16:05:49]process_json_proto [16:05:49]json parsed OK: [16:05:49]protocol is kg_v1.0 [16:05:49]action value=close_receipt [16:05:49]process_action close_receipt [16:05:49]cmd_close_receipt [16:05:49]MH_GetDate [16:05:49]Write to MH i2c: F0 00 00 1D 00 0C [16:05:49]Write i2c OK [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: F0 [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: F0 09 00 [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: F0 09 00 1D 00 00 5E 40 F0 66 96 2E 95 66 C8 [16:05:49]GetLastDocTimeStamp 1727021007 [16:05:49]current date 1727021150 [16:05:49]FM_GetShiftState [16:05:49]SAM_PROTO_GetShiftState [16:05:49]wFMCommunicate request_size=4 [16:05:49]MH_SAM_APDU [16:05:49]CAPDU: 80 13 01 00 [16:05:49]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:05:49]Write i2c OK [16:05:49]MH_I2C_Read... [16:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:49]Read from MH i2c: E2 [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: E2 0E 00 [16:05:49]MH_I2C_Read... [16:05:49]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [16:05:49]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:05:49]wFMCommunicate OK [16:05:49]SAM_PROTO_GetShiftState done [16:05:49]FM_GetShiftState done [16:05:49]opened in 1726964224 [16:05:49]opened+sec_in_day 1727050624 [16:05:49]quantity*price = 20001 [16:05:49]sum+1 = 20002 [16:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 141 22.09.2024 16:05 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7743 ФПД: 89891517900752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T160550&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7743&fm=89891517900752&tin=02508201610067®Number=0000000000190446&sum=20000 [16:05:50]StoreToDocumentArchive [16:05:50]shift 70 fd 7743 [16:05:50]save to /storage/0070/doc_00007743 [16:05:50]save last doc name /storage/0070/doc_00007743 to /storage/kkm_last_doc_name [16:05:50]save OK [16:05:50]Clear old archive folders... [16:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:50]tlvbuf is 00655190 [16:05:50]SAM_PROTO_ClearQueue [16:05:50]wFMCommunicate request_size=4 [16:05:50]MH_SAM_APDU [16:05:50]CAPDU: 80 09 00 00 [16:05:50]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:05:50]Write i2c OK [16:05:50]MH_I2C_Read... [16:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:50]Read from MH i2c: E2 [16:05:50]MH_I2C_Read... [16:05:50]Read from MH i2c: E2 03 00 [16:05:50]MH_I2C_Read... [16:05:50]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:05:50]RAPDU: 90 00 [16:05:50]wFMCommunicate OK [16:05:50]SAM_PROTO_ClearQueue done [16:05:50]KKMCreateOFDPacket [16:05:50]OFDProtocolAddRootSTLVToBuf [16:05:50]FM_MakeSignedData [16:05:50]FM_MakeSignedData [16:05:50]SAM_PROTO_SignData [16:05:50]wFMCommunicate request_size=4 [16:05:50]MH_SAM_APDU [16:05:50]CAPDU: 80 0D 01 02 [16:05:50]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:05:50]Write i2c OK [16:05:50]MH_I2C_Read... [16:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:50]Read from MH i2c: E2 [16:05:50]MH_I2C_Read... [16:05:50]Read from MH i2c: E2 03 00 [16:05:50]MH_I2C_Read... [16:05:50]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:05:50]RAPDU: 90 00 [16:05:50]wFMCommunicate OK [16:05:50]wFMCommunicate request_size=255 [16:05:50]MH_SAM_APDU [16:05:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8D 00 00 00 F4 03 04 00 5E 40 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3F 1E 00 00 35 04 06 00 51 [16:05:50]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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 5E 40 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3F 1E 00 00 35 04 06 00 51 00 00 98 [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:51]Read from MH i2c: E2 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 03 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:05:51]RAPDU: 90 00 [16:05:51]wFMCommunicate OK [16:05:51]wFMCommunicate request_size=10 [16:05:51]MH_SAM_APDU [16:05:51]CAPDU: 80 0D 02 02 05 C1 7F FE 27 D0 [16:05:51]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 C1 7F FE 27 D0 00 00 E7 [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:51]Read from MH i2c: E2 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 03 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:05:51]RAPDU: 90 00 [16:05:51]wFMCommunicate OK [16:05:51]wFMCommunicate request_size=4 [16:05:51]MH_SAM_APDU [16:05:51]CAPDU: 80 0D 03 02 [16:05:51]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:51]Read from MH i2c: E2 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 0B 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 0B 00 2F 00 00 90 15 25 93 0D A0 BD 69 90 00 DB [16:05:51]RAPDU: 90 15 25 93 0D A0 BD 69 90 00 [16:05:51]wFMCommunicate OK [16:05:51]SAM_PROTO_SignData done [16:05:51]FM_MakeSignedData done [16:05:51]CreateOFDProtocolMessage [16:05:51]wFMCommunicate request_size=4 [16:05:51]MH_SAM_APDU [16:05:51]CAPDU: 80 11 00 00 [16:05:51]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:51]Read from MH i2c: E2 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 17 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [16:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:05:51]wFMCommunicate OK [16:05:51]CreateOFDProtocolMessage done [16:05:51]OFDSenderStorePacket 7743 [16:05:51]StoreOFDPacket docnum=7743 [16:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 30 84 07 01 71 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 5E 40 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3F 1E 00 00 35 04 06 00 51 C1 7F FE 27 D0 90 15 25 93 0D A0 BD 69 [16:05:51]CheckFolder [16:05:51]dirname=/storage/ofd_packets [16:05:51]CheckFolder done [16:05:51]ProducePacketName [16:05:51]name=ofd_packets/00007743 [16:05:51]NVStorageSaveData ofd_packets/00007743 [16:05:51]File name is /storage/ofd_packets/00007743 [16:05:51]Write 301 bytes [16:05:51]NVStorageSaveData done [16:05:51]OFDSenderStorePacket done [16:05:51]KKMCreateOFDPacket done [16:05:51]NVStorageSaveData kkm_last_timestamp [16:05:51]File name is /storage/kkm_last_timestamp [16:05:51]Write 4 bytes [16:05:51]NVStorageSaveData done [16:05:51]ExternCall_PrintAddStr [16:05:51]wPrintStart [16:05:51]Write to MH i2c: 01 00 00 31 00 31 [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: 01 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: 01 07 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:05:51]RasterBufferAndPrint [16:05:51]line Счет N : (1)871872 [16:05:51]line ИНН: 02508201610067 [16:05:51]line Контрольно-Кассовый Чек [16:05:51]line ПРОДАЖА [16:05:51]line ТРК (МРК, ГНК) : 53 [16:05:51]line Товар: 2710124130 [16:05:51]line Аи-92-К-5 [16:05:51]line 2.950 * 67.80 [16:05:51]line = 200.01 [16:05:51]line НДС 12% НСП 1% [16:05:51]line > о реализуемом товаре [16:05:51]line ОКРУГЛЕНИЕ: -0.01 [16:05:51]line ИТОГО: 200.00 [16:05:51]line Внесено: 200.00 [16:05:51]line СДАЧА: 0.00 [16:05:51]line НСП 1% : 1.77 [16:05:51]line НДС 12% : 21.24 [16:05:51]line Наличными: 200.00 [16:05:51]line Безнал.: 0.00 [16:05:51]line Место: АЗС № 137 "Партнер Нефть" [16:05:51]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [16:05:51]line СНО: Общий режим [16:05:51]line Чек 141 22.09.2024 16:05 [16:05:51]line Смена: 70 ФФД: 1.0 [16:05:51]line ЗНМ: 0300000041 [16:05:51]line РНМ: 0000000000190446 [16:05:51]line Версия ККМ: v1.0 [16:05:51]line ФМ: 0000000002094258 [16:05:51]line ФД: 7743 [16:05:51]line ФПД: 89891517900752 [16:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T160550&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7743&fm=89891517900752&tin=02508201610067®Number=0000000000190446&sum=20000 [16:05:51]written 0, free lines is 4095 [16:05:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 7D 2B 47 00 77 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 32 30 39 34 32 35 38 10 04 04 00 3C 1E 00 00 F4 03 04 00 1C EB EF 66 B6 04 01 00 00 EE 75 BF 0C 04 33 FF 78 [16:05:51]CommunicateWithHost err = 0 [16:05:51]CheckOFDResponse [16:05:51]1017 (14) - 77093643461234 [16:05:51]1041 (16) - 0000000002094258 [16:05:51]1040 (4) - 7740 [16:05:51]1012 (4) - 22.09.2024 10:02 [16:05:51]1206 (1) - 0 [16:05:51]OFD Sender: Remove packet 7740 [16:05:51]ProducePacketName [16:05:51]name=ofd_packets/00007740 [16:05:51]NVStorageDeleteData [16:05:52]Write to MH i2c: 01 00 00 5C 00 5C [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: 01 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: 01 07 00 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F9 0C 68 [16:05:52]RasterBufferAndPrint [16:05:52]line [16:05:52]line [16:05:52]line [16:05:52]line [16:05:52]line [16:05:52]written 0, free lines is 3348 [16:05:52]MH_Cut [16:05:52]Write to MH i2c: D1 01 00 63 00 01 35 [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: D1 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: D1 01 00 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: D1 01 00 63 00 00 34 [16:05:52]Write to MH i2c: 01 00 00 64 00 64 [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:52]OFD Sender: Processing packet 7741 [packets to send 53, broken 50] [16:05:52]ProducePacketName [16:05:52]name=ofd_packets/00007741 [16:05:52]OFD Sender: To server: pG, [16:05:52]CommunicateWithHost lk.salyk.kg:30040 [16:05:52]ConnectInit lk.salyk.kg [16:05:52]*** Cut start [16:05:52]*** Purtial cut [16:05:52]*** Stage 1: CUTSNS_PIN = 1 [16:05:52]Read from MH i2c: 01 [16:05:52]MH_I2C_Read... [16:05:52]*** Stop cut motor [16:05:52]*** Cut end [16:05:52]Read from MH i2c: 01 07 00 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [16:05:52]process_action close_receipt done [16:05:52]requested_data is exist [16:05:52]produce_requested_data [16:05:52]requested_item fm.sn is exist - process it [16:05:52]wFMCommunicate request_size=4 [16:05:52]MH_SAM_APDU [16:05:52]CAPDU: 80 11 00 00 [16:05:52]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 17 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [16:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:05:53]wFMCommunicate OK [16:05:53]requested_item fd.num is exist - process it [16:05:53]SAM_PROTO_GetFieldsCounters [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 13 00 00 [16:05:53]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 62 00 [16:05:53]MH_I2C_Read... [16:05:53]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 3F 1E 00 00 0E 04 04 00 46 00 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 4A [16:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 3F 1E 00 00 0E 04 04 00 46 00 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 [16:05:53]wFMCommunicate OK [16:05:53]SAM_PROTO_GetFieldsCounters done [16:05:53]requested_item shift.num is exist - process it [16:05:53]requested_item shift.opened is exist - process it [16:05:53]req_shift_opened [16:05:53]FM_GetShiftState [16:05:53]SAM_PROTO_GetShiftState [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 13 01 00 [16:05:53]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0E 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [16:05:53]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:05:53]wFMCommunicate OK [16:05:53]SAM_PROTO_GetShiftState done [16:05:53]FM_GetShiftState done [16:05:53]req_shift_opened done [16:05:53]requested_item shift.open_date is exist - process it [16:05:53]req_shift_open_date [16:05:53]req_shift_open_date done [16:05:53]produce_requested_data done [16:05:53]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7743,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [16:05:53]process_action_free close_receipt [16:05:53]json_value_free [16:05:53]json_value_free done [16:05:53]process_json_proto returns [16:05:53]Send response to host [16:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7743,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [16:05:53]free response buf [16:05:53]execute_script done [16:05:53]execute_script returns [16:05:53]free content buf [16:05:53]Sock 9.Close socket [16:05:53]Sock 9.Thread stoped [16:05:54]Connected sock=6 [16:05:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 39 18 07 01 57 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CA 3F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3D 1E 00 00 35 04 06 00 9B E2 CF DE 7D EF EB BE 33 27 03 43 A4 B9 [16:05:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 3D 45 47 00 24 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 32 30 39 34 32 35 38 10 04 04 00 3D 1E 00 00 F4 03 04 00 1F EB EF 66 B6 04 01 00 00 D6 CC CE BF 05 07 6E 5E [16:05:55]CommunicateWithHost err = 0 [16:05:55]CheckOFDResponse [16:05:55]1017 (14) - 77093643461234 [16:05:55]1041 (16) - 0000000002094258 [16:05:55]1040 (4) - 7741 [16:05:55]1012 (4) - 22.09.2024 10:02 [16:05:55]1206 (1) - 0 [16:05:55]OFD Sender: Remove packet 7741 [16:05:55]ProducePacketName [16:05:55]name=ofd_packets/00007741 [16:05:55]NVStorageDeleteData [16:05:55]OFD Sender: Processing packet 7742 [packets to send 52, broken 50] [16:05:55]ProducePacketName [16:05:55]name=ofd_packets/00007742 [16:05:55]OFD Sender: To server: pG, [16:05:55]CommunicateWithHost lk.salyk.kg:30040 [16:05:55]ConnectInit lk.salyk.kg [16:05:56]Connected sock=6 [16:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 3B AB 07 01 AB 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 CF 3F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3E 1E 00 00 35 04 06 00 FC 50 BB 79 18 32 70 2B 7E 8B 42 E9 C7 57 [16:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 A0 93 47 00 32 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3E 1E 00 00 F4 03 04 00 21 EB EF 66 B6 04 01 00 00 9E 83 B2 ED 1C 07 11 D5 [16:05:57]CommunicateWithHost err = 0 [16:05:57]CheckOFDResponse [16:05:57]1017 (14) - 77093643461234 [16:05:57]1041 (16) - 0000000002094258 [16:05:57]1040 (4) - 7742 [16:05:57]1012 (4) - 22.09.2024 10:02 [16:05:57]1206 (1) - 0 [16:05:57]OFD Sender: Remove packet 7742 [16:05:57]ProducePacketName [16:05:57]name=ofd_packets/00007742 [16:05:57]NVStorageDeleteData [16:05:57]OFD Sender: Processing packet 7743 [packets to send 51, broken 50] [16:05:57]ProducePacketName [16:05:57]name=ofd_packets/00007743 [16:05:57]OFD Sender: To server: pG, [16:05:57]CommunicateWithHost lk.salyk.kg:30040 [16:05:57]ConnectInit lk.salyk.kg [16:06:01]Connected sock=7 [16:06:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 30 84 07 01 71 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 5E 40 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3F 1E 00 00 35 04 06 00 51 C1 7F FE 27 D0 90 15 25 93 0D A0 BD 69 [16:06:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 D2 30 47 00 00 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 3F 1E 00 00 F4 03 04 00 26 EB EF 66 B6 04 01 00 00 C1 A8 79 CA DE 2D 03 43 [16:06:02]CommunicateWithHost err = 0 [16:06:02]CheckOFDResponse [16:06:02]1017 (14) - 77093643461234 [16:06:02]1041 (16) - 0000000002094258 [16:06:02]1040 (4) - 7743 [16:06:02]1012 (4) - 22.09.2024 10:02 [16:06:02]1206 (1) - 0 [16:06:02]OFD Sender: Remove packet 7743 [16:06:02]ProducePacketName [16:06:02]name=ofd_packets/00007743 [16:06:02]NVStorageDeleteData [16:06:03]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:22]recv_with_timeout no data received [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:35]recv_with_timeout no data received [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:51]recv_with_timeout no data received [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:11]recv_with_timeout no data received [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:26]recv_with_timeout no data received [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:54]recv_with_timeout no data received [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:12]int [16:12:12]Write to MH i2c: 01 00 00 68 00 68 [16:12:12]*** FLAG_PRN_PAP1 set [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 68 00 00 01 00 00 00 FF 0F 7E [16:12:12]state=0 [16:12:12]No paper [16:12:12]int [16:12:12]Write to MH i2c: 01 00 00 69 00 69 [16:12:12]*** FLAG_PRN_PAP2 set [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 69 00 00 03 00 00 00 FF 0F 81 [16:12:12]state=0 [16:12:12]No paper [16:12:12]Cover opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5968732+1721052822=1727021554 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 F3 41 F0 66 96 2E 95 66 48 [16:12:35]Current date/time: 22.09.2024 16:12 [16:12:35]FM_Init [16:12:35]wFMConnect [16:12:35]MH_SAM_On [16:12:35]Write to MH i2c: E0 00 00 08 00 E7 [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_init finished! [16:12:35]*** atr: [16:12:35]*** 0F 3B D5 18 FF 81 91 FE [16:12:35]*** 1F C3 80 73 C8 21 10 0A [16:12:35]*** 00 00 00 00 00 00 00 00 [16:12:35]*** 00 00 00 00 00 00 00 00 [16:12:35]*** 00 00 00 00 00 00 00 00 [16:12:35]*** 00 00 00 00 00 00 00 00 [16:12:35]*** 00 00 00 00 00 00 00 00 [16:12:35]*** 00 00 00 00 00 00 00 00 [16:12:35]Read from MH i2c: E0 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E0 10 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:12:35]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:12:35]wFMCommunicate request_size=10 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:12:35]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:12:35]RAPDU: 90 00 [16:12:35]wFMCommunicate OK [16:12:35]wFMCommunicate request_size=4 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 11 00 00 [16:12:35]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 17 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [16:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:12:35]wFMCommunicate OK [16:12:35]Detected FM SN is 0000000002094258 [16:12:35]Stored FM SN is 0000000002094258 [16:12:35]wFMCommunicate request_size=9 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 16 00 00 04 BC C2 00 00 [16:12:35]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:12:35]RAPDU: 90 00 [16:12:35]wFMCommunicate OK [16:12:35]FM PIN OK [16:12:35]wFMCommunicate request_size=8 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 14 04 00 03 02 00 01 [16:12:35]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:12:35]RAPDU: 90 00 [16:12:35]wFMCommunicate OK [16:12:35]wFMCommunicate request_size=13 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:12:35]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:12:35]RAPDU: 90 00 [16:12:35]wFMCommunicate OK [16:12:35]wFMCommunicate request_size=4 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 11 00 00 [16:12:35]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 17 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [16:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:12:35]wFMCommunicate OK [16:12:35]DocumentArchiveInit [16:12:35]Start Httpd... [16:12:35]Httpd thread 3067178340 created [16:12:35]Write to MH i2c: 01 00 00 0F 00 0F [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: 01 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: 01 07 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:12:35]MH Int Process started [16:12:35]Allocated Socket 8 [16:12:35]Bind OK [16:12:35]Listen OK [16:12:35]httpd running on port 8080 [16:12:35]Waiting for new connection... [16:12:35]OFD Sender: No OFD packet to send [16:12:38]accept exits with 9 [16:12:38]New connection [16:12:38]New thread 3066891620 created [16:12:38]Waiting for new connection... [16:12:38] Sock 9.Parse request [16:12:38]Sock 9.Check first char [16:12:38]Sock 9.First char is OK [16:12:38]request: POST /json_proto HTTP/1.0 [16:12:38]Method: POST [16:12:38]URL: /json_proto [16:12:38]Method is POST - this is cgi request [16:12:38]url: /json_proto [16:12:38]query_string will be loaded in cgi processing [16:12:38]execute_cgi json_proto POST (null) [16:12:38]execute_cgi path=json_proto method=POST [16:12:38]POST find Content-Length [16:12:38]Host: 172.17.47.195:8080 [16:12:38]Content-Length: 215 [16:12:38]Content-Type: application/json [16:12:38] [16:12:38]POST finish read [16:12:38]Found Content-Length = 215 [16:12:38]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" ] } } [16:12:38]execute_script... [16:12:38]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" ] } } [16:12:38]POST & json_proto [16:12:38]process_json_proto [16:12:38]json parsed OK: [16:12:38]protocol is kg_v1.0 [16:12:38]action value=get_value [16:12:38]process_action get_value [16:12:38]cmd_get_value [16:12:38]process_action get_value done [16:12:38]requested_data is exist [16:12:38]produce_requested_data [16:12:38]requested_item kkm.sn is exist - process it [16:12:38]requested_item kkm.ver is exist - process it [16:12:38]requested_item fm.sn is exist - process it [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 11 00 00 [16:12:38]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 17 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [16:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:12:38]wFMCommunicate OK [16:12:38]requested_item fd.num is exist - process it [16:12:38]SAM_PROTO_GetFieldsCounters [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 13 00 00 [16:12:38]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 62 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 3F 1E 00 00 0E 04 04 00 46 00 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 F5 [16:12:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 3F 1E 00 00 0E 04 04 00 46 00 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 [16:12:38]wFMCommunicate OK [16:12:38]SAM_PROTO_GetFieldsCounters done [16:12:38]requested_item shift.num is exist - process it [16:12:38]requested_item shift.opened is exist - process it [16:12:38]req_shift_opened [16:12:38]FM_GetShiftState [16:12:38]SAM_PROTO_GetShiftState [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 13 01 00 [16:12:38]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:39]Read from MH i2c: E2 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 0E 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [16:12:39]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:12:39]wFMCommunicate OK [16:12:39]SAM_PROTO_GetShiftState done [16:12:39]FM_GetShiftState done [16:12:39]req_shift_opened done [16:12:39]requested_item shift.open_date is exist - process it [16:12:39]req_shift_open_date [16:12:39]req_shift_open_date done [16:12:39]produce_requested_data done [16:12:39]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7743,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [16:12:39]process_action_free get_value [16:12:39]json_value_free [16:12:39]json_value_free done [16:12:39]process_json_proto returns [16:12:39]Send response to host [16:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7743,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [16:12:39]free response buf [16:12:39]execute_script done [16:12:39]execute_script returns [16:12:39]free content buf [16:12:39]Sock 9.Close socket [16:12:39]Sock 9.Thread stoped [16:12:39]accept exits with 6 [16:12:39]New connection [16:12:39]New thread 3066748260 created [16:12:39]Thread 3066891620 joined [16:12:39]Waiting for new connection... [16:12:39] Sock 6.Parse request [16:12:39]Sock 6.Check first char [16:12:39]Sock 6.First char is OK [16:12:39]request: POST /json_proto HTTP/1.0 [16:12:39]Method: POST [16:12:39]URL: /json_proto [16:12:39]Method is POST - this is cgi request [16:12:39]url: /json_proto [16:12:39]query_string will be loaded in cgi processing [16:12:39]execute_cgi json_proto POST (null) [16:12:39]execute_cgi path=json_proto method=POST [16:12:39]POST find Content-Length [16:12:39]Host: 172.17.47.195:8080 [16:12:39]Content-Length: 331 [16:12:39]Content-Type: application/json [16:12:39] [16:12:39]POST finish read [16:12:39]Found Content-Length = 331 [16:12:39]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" ] } } [16:12:39]execute_script... [16:12:39]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" ] } } [16:12:39]POST & json_proto [16:12:39]process_json_proto [16:12:39]json parsed OK: [16:12:39]protocol is kg_v1.0 [16:12:39]action value=get_value [16:12:39]process_action get_value [16:12:39]cmd_get_value [16:12:39]process_action get_value done [16:12:39]requested_data is exist [16:12:39]produce_requested_data [16:12:39]requested_item fm.sale.total is exist - process it [16:12:39]SAM_PROTO_GetFMData [16:12:39]wFMCommunicate request_size=4 [16:12:39]MH_SAM_APDU [16:12:39]CAPDU: 80 13 03 00 [16:12:39]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:12:39]Read from MH i2c: E2 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 FD 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 B3 1D 00 00 69 04 A0 00 6F 04 04 00 86 1D 00 00 B1 04 04 00 9B 66 2E 31 70 04 04 00 3C 89 43 29 72 04 04 00 5F DD EA 07 00 04 7C 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 AC 55 39 05 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 55 71 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 42 [16:12:39]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 B3 1D 00 00 69 04 A0 00 6F 04 04 00 86 1D 00 00 B1 04 04 00 9B 66 2E 31 70 04 04 00 3C 89 43 29 72 04 04 00 5F DD EA 07 00 04 7C 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 AC 55 39 05 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 55 71 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [16:12:39]wFMCommunicate OK [16:12:39]wFMCommunicate request_size=4 [16:12:39]MH_SAM_APDU [16:12:39]CAPDU: 80 17 00 00 [16:12:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:40]Read from MH i2c: E2 [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: E2 FD 00 [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [16:12:40]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [16:12:40]wFMCommunicate OK [16:12:40]wFMCommunicate request_size=4 [16:12:40]MH_SAM_APDU [16:12:40]CAPDU: 80 17 00 00 [16:12:40]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:12:40]Write i2c OK [16:12:40]MH_I2C_Read... [16:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:40]Read from MH i2c: E2 [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: E2 FD 00 [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [16:12:40]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:12:40]wFMCommunicate OK [16:12:40]wFMCommunicate request_size=4 [16:12:40]MH_SAM_APDU [16:12:40]CAPDU: 80 17 00 00 [16:12:40]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:12:40]Write i2c OK [16:12:40]MH_I2C_Read... [16:12:40]OFD Sender: No OFD packet to send [16:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:40]Read from MH i2c: E2 [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: E2 FD 00 [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [16:12:40]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:12:40]wFMCommunicate OK [16:12:40]wFMCommunicate request_size=4 [16:12:40]MH_SAM_APDU [16:12:40]CAPDU: 80 17 00 00 [16:12:40]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:12:40]Write i2c OK [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [16:12:40]E2 [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: E2 DE 00 [16:12:40]MH_I2C_Read... [16:12:40]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [16:12:40]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:12:40]wFMCommunicate OK [16:12:40]SAM_PROTO_GetFMData done [16:12:40]requested_item fm.sale_refund.total is exist - process it [16:12:40]requested_item fm.buy.total is exist - process it [16:12:40]requested_item shift.sale.total is exist - process it [16:12:40]SAM_PROTO_GetShiftData [16:12:40]wFMCommunicate request_size=4 [16:12:40]MH_SAM_APDU [16:12:40]CAPDU: 80 13 02 00 [16:12:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:12:40]Write i2c OK [16:12:40]MH_I2C_Read... [16:12:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:12:41]Read from MH i2c: E2 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 FD 00 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 8D 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 9F 94 D6 70 04 03 00 CC 87 C9 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 73 CB 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3F E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 34 [16:12:41]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 8D 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 9F 94 D6 70 04 03 00 CC 87 C9 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 73 CB 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3F E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [16:12:41]wFMCommunicate OK [16:12:41]wFMCommunicate request_size=4 [16:12:41]MH_SAM_APDU [16:12:41]CAPDU: 80 17 00 00 [16:12:41]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:12:41]Write i2c OK [16:12:41]MH_I2C_Read... [16:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:41]Read from MH i2c: E2 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 FD 00 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [16:12:41]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [16:12:41]wFMCommunicate OK [16:12:41]wFMCommunicate request_size=4 [16:12:41]MH_SAM_APDU [16:12:41]CAPDU: 80 17 00 00 [16:12:41]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:12:41]Write i2c OK [16:12:41]MH_I2C_Read... [16:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:41]Read from MH i2c: E2 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 FD 00 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [16:12:41]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:12:41]wFMCommunicate OK [16:12:41]wFMCommunicate request_size=4 [16:12:41]MH_SAM_APDU [16:12:41]CAPDU: 80 17 00 00 [16:12:41]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:12:41]Write i2c OK [16:12:41]MH_I2C_Read... [16:12:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:42]Read from MH i2c: E2 [16:12:42]MH_I2C_Read... [16:12:42]Read from MH i2c: E2 FD 00 [16:12:42]MH_I2C_Read... [16:12:42]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [16:12:42]RAPDU: 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 90 00 [16:12:42]wFMCommunicate OK [16:12:42]wFMCommunicate request_size=4 [16:12:42]MH_SAM_APDU [16:12:42]CAPDU: 80 17 00 00 [16:12:42]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:12:42]Write i2c OK [16:12:42]MH_I2C_Read... [16:12:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [16:12:42]Read from MH i2c: E2 [16:12:42]MH_I2C_Read... [16:12:42]Read from MH i2c: E2 D4 00 [16:12:42]MH_I2C_Read... [16:12:42]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [16:12:42]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:12:42]wFMCommunicate OK [16:12:42]SAM_PROTO_GetShiftData done [16:12:42]requested_item shift.sale.total_cash is exist - process it [16:12:42]requested_item shift.sale_refund.total is exist - process it [16:12:42]requested_item shift.sale_refund.total_cash is exist - process it [16:12:42]requested_item shift.buy.total is exist - process it [16:12:42]requested_item shift.buy.total_cash is exist - process it [16:12:42]produce_requested_data done [16:12:42]produce_requested_data return {"fm.sale.total":8251245.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":140627.51,"shift.sale.total_cash":132075.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:12:42]process_action_free get_value [16:12:42]json_value_free [16:12:42]json_value_free done [16:12:42]process_json_proto returns [16:12:42]Send response to host [16:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8251245.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":140627.51,"shift.sale.total_cash":132075.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:12:42]free response buf [16:12:42]execute_script done [16:12:42]execute_script returns [16:12:42]free content buf [16:12:42]Sock 6.Close socket [16:12:42]Sock 6.Thread stoped [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]recv_with_timeout no data received [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:22]recv_with_timeout no data received [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:38]accept exits with 9 [16:15:38]New connection [16:15:38]New thread 3066891620 created [16:15:38]Thread 3066748260 joined [16:15:38]Waiting for new connection... [16:15:38] Sock 9.Parse request [16:15:38]Sock 9.Check first char [16:15:38]Sock 9.First char is OK [16:15:38]request: POST /json_proto HTTP/1.0 [16:15:38]Method: POST [16:15:38]URL: /json_proto [16:15:38]Method is POST - this is cgi request [16:15:38]url: /json_proto [16:15:38]query_string will be loaded in cgi processing [16:15:38]execute_cgi json_proto POST (null) [16:15:38]execute_cgi path=json_proto method=POST [16:15:38]POST find Content-Length [16:15:38]Host: 172.17.47.195:8080 [16:15:38]Content-Length: 687 [16:15:38]Content-Type: application/json [16:15:38] [16:15:38]POST finish read [16:15:38]Found Content-Length = 687 [16:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:38]execute_script... [16:15:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:38]POST & json_proto [16:15:38]process_json_proto [16:15:38]json parsed OK: [16:15:38]protocol is kg_v1.0 [16:15:38]action value=close_receipt [16:15:38]process_action close_receipt [16:15:38]cmd_close_receipt [16:15:38]MH_GetDate [16:15:38]Write to MH i2c: F0 00 00 1D 00 0C [16:15:38]Write i2c OK [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: F0 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: F0 09 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: F0 09 00 1D 00 00 AA 42 F0 66 96 2E 95 66 16 [16:15:38]GetLastDocTimeStamp 1727021150 [16:15:38]current date 1727021738 [16:15:38]FM_GetShiftState [16:15:38]SAM_PROTO_GetShiftState [16:15:38]wFMCommunicate request_size=4 [16:15:38]MH_SAM_APDU [16:15:38]CAPDU: 80 13 01 00 [16:15:38]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:15:38]Write i2c OK [16:15:38]MH_I2C_Read... [16:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:38]Read from MH i2c: E2 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 0E 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [16:15:38]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:15:38]wFMCommunicate OK [16:15:38]SAM_PROTO_GetShiftState done [16:15:38]FM_GetShiftState done [16:15:38]opened in 1726964224 [16:15:38]opened+sec_in_day 1727050624 [16:15:38]quantity*price = 200025 [16:15:38]sum+1 = 200026 [16:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 142 22.09.2024 16:15 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7744 ФПД: 215898539155954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T161538&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7744&fm=215898539155954&tin=02508201610067®Number=0000000000190446&sum=200000 [16:15:39]StoreToDocumentArchive [16:15:39]shift 70 fd 7744 [16:15:39]save to /storage/0070/doc_00007744 [16:15:39]save last doc name /storage/0070/doc_00007744 to /storage/kkm_last_doc_name [16:15:39]save OK [16:15:39]Clear old archive folders... [16:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:15:39]tlvbuf is 01A5BB00 [16:15:39]SAM_PROTO_ClearQueue [16:15:39]wFMCommunicate request_size=4 [16:15:39]MH_SAM_APDU [16:15:39]CAPDU: 80 09 00 00 [16:15:39]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:15:39]Write i2c OK [16:15:39]MH_I2C_Read... [16:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:39]Read from MH i2c: E2 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 03 00 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:15:39]RAPDU: 90 00 [16:15:39]wFMCommunicate OK [16:15:39]SAM_PROTO_ClearQueue done [16:15:39]KKMCreateOFDPacket [16:15:39]OFDProtocolAddRootSTLVToBuf [16:15:39]FM_MakeSignedData [16:15:39]FM_MakeSignedData [16:15:39]SAM_PROTO_SignData [16:15:39]wFMCommunicate request_size=4 [16:15:39]MH_SAM_APDU [16:15:39]CAPDU: 80 0D 01 02 [16:15:39]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:15:39]Write i2c OK [16:15:39]MH_I2C_Read... [16:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:39]Read from MH i2c: E2 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 03 00 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:15:39]RAPDU: 90 00 [16:15:39]wFMCommunicate OK [16:15:39]wFMCommunicate request_size=255 [16:15:39]MH_SAM_APDU [16:15:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 AA 42 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 40 1E 00 00 35 04 06 00 [16:15:39]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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 AA 42 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 40 1E 00 00 35 04 06 00 00 00 70 [16:15:39]Write i2c OK [16:15:39]MH_I2C_Read... [16:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:40]Read from MH i2c: E2 [16:15:40]MH_I2C_Read... [16:15:40]Read from MH i2c: E2 03 00 [16:15:40]MH_I2C_Read... [16:15:40]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:15:40]RAPDU: 90 00 [16:15:40]wFMCommunicate OK [16:15:40]wFMCommunicate request_size=11 [16:15:40]MH_SAM_APDU [16:15:40]CAPDU: 80 0D 02 02 06 C4 5B CB BB E1 F2 [16:15:40]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 C4 5B CB BB E1 F2 00 00 2C [16:15:40]Write i2c OK [16:15:40]MH_I2C_Read... [16:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:40]Read from MH i2c: E2 [16:15:40]MH_I2C_Read... [16:15:40]Read from MH i2c: E2 03 00 [16:15:40]MH_I2C_Read... [16:15:40]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:15:40]RAPDU: 90 00 [16:15:40]wFMCommunicate OK [16:15:40]wFMCommunicate request_size=4 [16:15:40]MH_SAM_APDU [16:15:40]CAPDU: 80 0D 03 02 [16:15:40]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:15:40]Write i2c OK [16:15:40]MH_I2C_Read... [16:15:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:40]Read from MH i2c: E2 [16:15:40]MH_I2C_Read... [16:15:40]Read from MH i2c: E2 0B 00 [16:15:40]MH_I2C_Read... [16:15:40]Read from MH i2c: E2 0B 00 2F 00 00 18 FB 34 33 88 3F F8 6F 90 00 53 [16:15:40]RAPDU: 18 FB 34 33 88 3F F8 6F 90 00 [16:15:40]wFMCommunicate OK [16:15:40]SAM_PROTO_SignData done [16:15:40]FM_MakeSignedData done [16:15:40]CreateOFDProtocolMessage [16:15:40]wFMCommunicate request_size=4 [16:15:40]MH_SAM_APDU [16:15:40]CAPDU: 80 11 00 00 [16:15:40]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:15:40]Write i2c OK [16:15:40]MH_I2C_Read... [16:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:40]Read from MH i2c: E2 [16:15:40]MH_I2C_Read... [16:15:40]Read from MH i2c: E2 17 00 [16:15:40]MH_I2C_Read... [16:15:40]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [16:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:15:40]wFMCommunicate OK [16:15:40]CreateOFDProtocolMessage done [16:15:40]OFDSenderStorePacket 7744 [16:15:40]StoreOFDPacket docnum=7744 [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:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5969058+1721052822=1727021880 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 38 43 F0 66 96 2E 95 66 8F [16:18:00]Current date/time: 22.09.2024 16:18 [16:18:00]FM_Init [16:18:00]wFMConnect [16:18:00]MH_SAM_On [16:18:00]Write to MH i2c: E0 00 00 08 00 E7 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_init finished! [16:18:00]*** atr: [16:18:00]*** 0F 3B D5 18 FF 81 91 FE [16:18:00]*** 1F C3 80 73 C8 21 10 0A [16:18:00]*** 00 00 00 00 00 00 00 00 [16:18:00]*** 00 00 00 00 00 00 00 00 [16:18:00]*** 00 00 00 00 00 00 00 00 [16:18:00]*** 00 00 00 00 00 00 00 00 [16:18:00]*** 00 00 00 00 00 00 00 00 [16:18:00]*** 00 00 00 00 00 00 00 00 [16:18:00]Read from MH i2c: E0 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E0 10 00 [16:18:00]MH_I2C_Read... [16:18:00]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 [16:18:00]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:18:00]wFMCommunicate request_size=10 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:18:00]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:18:00]RAPDU: 90 00 [16:18:00]wFMCommunicate OK [16:18:00]wFMCommunicate request_size=4 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 11 00 00 [16:18:00]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 17 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [16:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:18:00]wFMCommunicate OK [16:18:00]Detected FM SN is 0000000002094258 [16:18:00]Stored FM SN is 0000000002094258 [16:18:00]wFMCommunicate request_size=9 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 16 00 00 04 BC C2 00 00 [16:18:00]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:18:00]RAPDU: 90 00 [16:18:00]wFMCommunicate OK [16:18:00]FM PIN OK [16:18:00]wFMCommunicate request_size=8 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 14 04 00 03 02 00 01 [16:18:00]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:18:00]RAPDU: 90 00 [16:18:00]wFMCommunicate OK [16:18:00]wFMCommunicate request_size=13 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:18:00]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 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:18:00]RAPDU: 90 00 [16:18:00]wFMCommunicate OK [16:18:00]wFMCommunicate request_size=4 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 11 00 00 [16:18:00]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 17 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [16:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:18:00]wFMCommunicate OK [16:18:00]DocumentArchiveInit [16:18:00]Start Httpd... [16:18:00]Httpd thread 3067452772 created [16:18:00]Write to MH i2c: 01 00 00 0F 00 0F [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: 01 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: 01 07 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:18:00]MH Int Process started [16:18:00]Allocated Socket 8 [16:18:00]Bind OK [16:18:00]Listen OK [16:18:00]httpd running on port 8080 [16:18:00]Waiting for new connection... [16:18:00]OFD Sender: Processing packet 7744 [packets to send 51, broken 50] [16:18:00]ProducePacketName [16:18:00]name=ofd_packets/00007744 [16:18:00]OFD Sender: To server: pG, [16:18:00]CommunicateWithHost lk.salyk.kg:30040 [16:18:00]ConnectInit lk.salyk.kg [16:18:01]Connected sock=6 [16:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 B7 89 08 01 1E 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 AA 42 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 40 1E 00 00 35 04 06 00 C4 5B CB BB E1 F2 18 FB 34 33 88 3F F8 6F [16:18:01]accept exits with 9 [16:18:01]New connection [16:18:01]New thread 3067166052 created [16:18:01]Waiting for new connection... [16:18:01] Sock 9.Parse request [16:18:01]Sock 9.Check first char [16:18:01]Sock 9.First char is OK [16:18:01]request: POST /json_proto HTTP/1.0 [16:18:01]Method: POST [16:18:01]URL: /json_proto [16:18:01]Method is POST - this is cgi request [16:18:01]url: /json_proto [16:18:01]query_string will be loaded in cgi processing [16:18:01]execute_cgi json_proto POST (null) [16:18:01]execute_cgi path=json_proto method=POST [16:18:01]POST find Content-Length [16:18:01]Host: 172.17.47.195:8080 [16:18:01]Content-Length: 215 [16:18:01]Content-Type: application/json [16:18:01] [16:18:01]POST finish read [16:18:01]Found Content-Length = 215 [16:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:01]execute_script... [16:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:01]POST & json_proto [16:18:01]process_json_proto [16:18:01]json parsed OK: [16:18:01]protocol is kg_v1.0 [16:18:01]action value=get_value [16:18:01]process_action get_value [16:18:01]cmd_get_value [16:18:01]process_action get_value done [16:18:01]requested_data is exist [16:18:01]produce_requested_data [16:18:01]requested_item kkm.sn is exist - process it [16:18:01]requested_item kkm.ver is exist - process it [16:18:01]requested_item fm.sn is exist - process it [16:18:01]wFMCommunicate request_size=4 [16:18:01]MH_SAM_APDU [16:18:01]CAPDU: 80 11 00 00 [16:18:01]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:18:01]Write i2c OK [16:18:01]MH_I2C_Read... [16:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:01]Read from MH i2c: E2 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: E2 17 00 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [16:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:18:01]wFMCommunicate OK [16:18:01]requested_item fd.num is exist - process it [16:18:01]SAM_PROTO_GetFieldsCounters [16:18:01]wFMCommunicate request_size=4 [16:18:01]MH_SAM_APDU [16:18:01]CAPDU: 80 13 00 00 [16:18:01]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:18:01]Write i2c OK [16:18:01]MH_I2C_Read... [16:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:01]Read from MH i2c: E2 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: E2 62 00 [16:18:01]MH_I2C_Read... [16:18:01]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 40 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [16:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 40 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:01]wFMCommunicate OK [16:18:01]SAM_PROTO_GetFieldsCounters done [16:18:01]requested_item shift.num is exist - process it [16:18:01]requested_item shift.opened is exist - process it [16:18:01]req_shift_opened [16:18:01]FM_GetShiftState [16:18:01]SAM_PROTO_GetShiftState [16:18:01]wFMCommunicate request_size=4 [16:18:01]MH_SAM_APDU [16:18:01]CAPDU: 80 13 01 00 [16:18:01]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:18:01]Write i2c OK [16:18:01]MH_I2C_Read... [16:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:01]Read from MH i2c: E2 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: E2 0E 00 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [16:18:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:18:01]wFMCommunicate OK [16:18:01]SAM_PROTO_GetShiftState done [16:18:01]FM_GetShiftState done [16:18:01]req_shift_opened done [16:18:01]requested_item shift.open_date is exist - process it [16:18:01]req_shift_open_date [16:18:01]req_shift_open_date done [16:18:01]produce_requested_data done [16:18:01]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7744,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [16:18:01]process_action_free get_value [16:18:01]json_value_free [16:18:01]json_value_free done [16:18:01]process_json_proto returns [16:18:01]Send response to host [16:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7744,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [16:18:01]free response buf [16:18:01]execute_script done [16:18:01]execute_script returns [16:18:01]free content buf [16:18:01]Sock 9.Close socket [16:18:01]Sock 9.Thread stoped [16:18:01]accept exits with 10 [16:18:01]New connection [16:18:01]New thread 3067022692 created [16:18:01]Thread 3067166052 joined [16:18:01]Waiting for new connection... [16:18:01] Sock 10.Parse request [16:18:01]Sock 10.Check first char [16:18:01]Sock 10.First char is OK [16:18:01]request: POST /json_proto HTTP/1.0 [16:18:01]Method: POST [16:18:01]URL: /json_proto [16:18:01]Method is POST - this is cgi request [16:18:01]url: /json_proto [16:18:01]query_string will be loaded in cgi processing [16:18:01]execute_cgi json_proto POST (null) [16:18:01]execute_cgi path=json_proto method=POST [16:18:01]POST find Content-Length [16:18:01]Host: 172.17.47.195:8080 [16:18:01]Content-Length: 331 [16:18:01]Content-Type: application/json [16:18:01] [16:18:01]POST finish read [16:18:01]Found Content-Length = 331 [16:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:18:01]execute_script... [16:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:18:01]POST & json_proto [16:18:01]process_json_proto [16:18:01]json parsed OK: [16:18:01]protocol is kg_v1.0 [16:18:01]action value=get_value [16:18:01]process_action get_value [16:18:01]cmd_get_value [16:18:01]process_action get_value done [16:18:01]requested_data is exist [16:18:02]produce_requested_data [16:18:02]requested_item fm.sale.total is exist - process it [16:18:02]SAM_PROTO_GetFMData [16:18:02]wFMCommunicate request_size=4 [16:18:02]MH_SAM_APDU [16:18:02]CAPDU: 80 13 03 00 [16:18:02]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:18:02]Write i2c OK [16:18:02]MH_I2C_Read... [16:18:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:18:02]Read from MH i2c: E2 [16:18:02]MH_I2C_Read... [16:18:02]Read from MH i2c: E2 FD 00 [16:18:02]MH_I2C_Read... [16:18:02]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 B4 1D 00 00 69 04 A0 00 6F 04 04 00 87 1D 00 00 B1 04 04 00 DB 73 31 31 70 04 04 00 7C 96 46 29 72 04 04 00 5F DD EA 07 00 04 7C 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 A6 A8 39 05 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 3F 78 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 22 [16:18:02]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 B4 1D 00 00 69 04 A0 00 6F 04 04 00 87 1D 00 00 B1 04 04 00 DB 73 31 31 70 04 04 00 7C 96 46 29 72 04 04 00 5F DD EA 07 00 04 7C 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 A6 A8 39 05 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 3F 78 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [16:18:02]wFMCommunicate OK [16:18:02]wFMCommunicate request_size=4 [16:18:02]MH_SAM_APDU [16:18:02]CAPDU: 80 17 00 00 [16:18:02]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:18:02]Write i2c OK [16:18:02]MH_I2C_Read... [16:18:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:18:03]Read from MH i2c: E2 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 FD 00 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [16:18:03]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [16:18:03]wFMCommunicate OK [16:18:03]wFMCommunicate request_size=4 [16:18:03]MH_SAM_APDU [16:18:03]CAPDU: 80 17 00 00 [16:18:03]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:18:03]Write i2c OK [16:18:03]MH_I2C_Read... [16:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 7E 99 47 00 1B 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 40 1E 00 00 F4 03 04 00 F6 ED EF 66 B6 04 01 00 00 AA B0 C3 00 28 25 77 08 [16:18:03]CommunicateWithHost err = 0 [16:18:03]CheckOFDResponse [16:18:03]1017 (14) - 77093643461234 [16:18:03]1041 (16) - 0000000002094258 [16:18:03]1040 (4) - 7744 [16:18:03]1012 (4) - 22.09.2024 10:14 [16:18:03]1206 (1) - 0 [16:18:03]OFD Sender: Remove packet 7744 [16:18:03]ProducePacketName [16:18:03]name=ofd_packets/00007744 [16:18:03]NVStorageDeleteData [16:18:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:18:03]Read from MH i2c: E2 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 FD 00 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [16:18:03]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:18:03]wFMCommunicate OK [16:18:03]wFMCommunicate request_size=4 [16:18:03]MH_SAM_APDU [16:18:03]CAPDU: 80 17 00 00 [16:18:03]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:18:03]Write i2c OK [16:18:03]MH_I2C_Read... [16:18:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:18:03]Read from MH i2c: E2 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 FD 00 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [16:18:03]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:18:03]wFMCommunicate OK [16:18:03]wFMCommunicate request_size=4 [16:18:03]MH_SAM_APDU [16:18:03]CAPDU: 80 17 00 00 [16:18:03]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:18:03]OFD Sender: No OFD packet to send [16:18:03]Write i2c OK [16:18:03]MH_I2C_Read... [16:18:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [16:18:03]Read from MH i2c: E2 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 DE 00 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [16:18:03]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:18:03]wFMCommunicate OK [16:18:03]SAM_PROTO_GetFMData done [16:18:03]requested_item fm.sale_refund.total is exist - process it [16:18:03]requested_item fm.buy.total is exist - process it [16:18:03]requested_item shift.sale.total is exist - process it [16:18:03]SAM_PROTO_GetShiftData [16:18:03]wFMCommunicate request_size=4 [16:18:03]MH_SAM_APDU [16:18:03]CAPDU: 80 13 02 00 [16:18:03]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:18:03]Write i2c OK [16:18:03]MH_I2C_Read... [16:18:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:18:04]Read from MH i2c: E2 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: E2 FD 00 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 8E 00 00 00 69 04 9C 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 DF A1 D9 70 04 03 00 0C 95 CC 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6D 1E 17 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 29 ED 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 16 [16:18:04]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 8E 00 00 00 69 04 9C 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 DF A1 D9 70 04 03 00 0C 95 CC 72 04 03 00 D3 0C 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6D 1E 17 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 29 ED 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [16:18:04]wFMCommunicate OK [16:18:04]wFMCommunicate request_size=4 [16:18:04]MH_SAM_APDU [16:18:04]CAPDU: 80 17 00 00 [16:18:04]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:18:04]Write i2c OK [16:18:04]MH_I2C_Read... [16:18:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:18:04]Read from MH i2c: E2 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: E2 FD 00 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [16:18:04]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [16:18:04]wFMCommunicate OK [16:18:04]wFMCommunicate request_size=4 [16:18:04]MH_SAM_APDU [16:18:04]CAPDU: 80 17 00 00 [16:18:04]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:18:04]Write i2c OK [16:18:04]MH_I2C_Read... [16:18:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:18:04]Read from MH i2c: E2 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: E2 FD 00 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [16:18:05]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:18:05]wFMCommunicate OK [16:18:05]wFMCommunicate request_size=4 [16:18:05]MH_SAM_APDU [16:18:05]CAPDU: 80 17 00 00 [16:18:05]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:18:05]Write i2c OK [16:18:05]MH_I2C_Read... [16:18:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:18:05]Read from MH i2c: E2 [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: E2 FD 00 [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [16:18:05]RAPDU: 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 90 00 [16:18:05]wFMCommunicate OK [16:18:05]wFMCommunicate request_size=4 [16:18:05]MH_SAM_APDU [16:18:05]CAPDU: 80 17 00 00 [16:18:05]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:18:05]Write i2c OK [16:18:05]MH_I2C_Read... [16:18:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [16:18:05]Read from MH i2c: E2 [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: E2 D4 00 [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [16:18:05]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:18:05]wFMCommunicate OK [16:18:05]SAM_PROTO_GetShiftData done [16:18:05]requested_item shift.sale.total_cash is exist - process it [16:18:05]requested_item shift.sale_refund.total is exist - process it [16:18:05]requested_item shift.sale_refund.total_cash is exist - process it [16:18:05]requested_item shift.buy.total is exist - process it [16:18:05]requested_item shift.buy.total_cash is exist - process it [16:18:05]produce_requested_data done [16:18:05]produce_requested_data return {"fm.sale.total":8253245.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":142627.51,"shift.sale.total_cash":134075.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:18:05]process_action_free get_value [16:18:05]json_value_free [16:18:05]json_value_free done [16:18:05]process_json_proto returns [16:18:05]Send response to host [16:18:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8253245.07,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":142627.51,"shift.sale.total_cash":134075.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:18:05]free response buf [16:18:05]execute_script done [16:18:05]execute_script returns [16:18:05]free content buf [16:18:05]Sock 10.Close socket [16:18:05]Sock 10.Thread stoped [16:18:06]accept exits with 9 [16:18:06]New connection [16:18:06]New thread 3067166052 created [16:18:06]Thread 3067022692 joined [16:18:06]Waiting for new connection... [16:18:06] Sock 9.Parse request [16:18:06]Sock 9.Check first char [16:18:06]Sock 9.First char is OK [16:18:06]request: POST /json_proto HTTP/1.0 [16:18:06]Method: POST [16:18:06]URL: /json_proto [16:18:06]Method is POST - this is cgi request [16:18:06]url: /json_proto [16:18:06]query_string will be loaded in cgi processing [16:18:06]execute_cgi json_proto POST (null) [16:18:06]execute_cgi path=json_proto method=POST [16:18:06]POST find Content-Length [16:18:06]Host: 172.17.47.195:8080 [16:18:06]Content-Length: 687 [16:18:06]Content-Type: application/json [16:18:06] [16:18:06]POST finish read [16:18:06]Found Content-Length = 687 [16:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:06]execute_script... [16:18:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:06]POST & json_proto [16:18:06]process_json_proto [16:18:06]json parsed OK: [16:18:06]protocol is kg_v1.0 [16:18:06]action value=close_receipt [16:18:06]process_action close_receipt [16:18:06]cmd_close_receipt [16:18:06]MH_GetDate [16:18:06]Write to MH i2c: F0 00 00 1D 00 0C [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: F0 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: F0 09 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: F0 09 00 1D 00 00 3E 43 F0 66 96 2E 95 66 AB [16:18:06]GetLastDocTimeStamp 1727021738 [16:18:06]current date 1727021886 [16:18:06]FM_GetShiftState [16:18:06]SAM_PROTO_GetShiftState [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 13 01 00 [16:18:06]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 0E 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [16:18:06]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:18:06]wFMCommunicate OK [16:18:06]SAM_PROTO_GetShiftState done [16:18:06]FM_GetShiftState done [16:18:06]opened in 1726964224 [16:18:06]opened+sec_in_day 1727050624 [16:18:06]quantity*price = 100050 [16:18:06]sum+1 = 100052 [16:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 143 22.09.2024 16:18 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7745 ФПД: 126989079618356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T161807&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7745&fm=126989079618356&tin=02508201610067®Number=0000000000190446&sum=100000 [16:18:07]StoreToDocumentArchive [16:18:07]shift 70 fd 7745 [16:18:07]save to /storage/0070/doc_00007745 [16:18:07]save last doc name /storage/0070/doc_00007745 to /storage/kkm_last_doc_name [16:18:07]save OK [16:18:07]Clear old archive folders... [16:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:18:07]tlvbuf is 016AB030 [16:18:07]SAM_PROTO_ClearQueue [16:18:07]wFMCommunicate request_size=4 [16:18:07]MH_SAM_APDU [16:18:07]CAPDU: 80 09 00 00 [16:18:07]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:07]Read from MH i2c: E2 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: E2 03 00 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:18:07]RAPDU: 90 00 [16:18:07]wFMCommunicate OK [16:18:07]SAM_PROTO_ClearQueue done [16:18:07]KKMCreateOFDPacket [16:18:07]OFDProtocolAddRootSTLVToBuf [16:18:07]FM_MakeSignedData [16:18:07]FM_MakeSignedData [16:18:07]SAM_PROTO_SignData [16:18:07]wFMCommunicate request_size=4 [16:18:07]MH_SAM_APDU [16:18:07]CAPDU: 80 0D 01 02 [16:18:07]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:07]Read from MH i2c: E2 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: E2 03 00 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:18:07]RAPDU: 90 00 [16:18:07]wFMCommunicate OK [16:18:07]wFMCommunicate request_size=255 [16:18:07]MH_SAM_APDU [16:18:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8F 00 00 00 F4 03 04 00 3F 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 41 1E 00 00 35 04 06 00 [16:18:07]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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3F 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 41 1E 00 00 35 04 06 00 00 00 1A [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:08]Read from MH i2c: E2 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 03 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:18:08]RAPDU: 90 00 [16:18:08]wFMCommunicate OK [16:18:08]wFMCommunicate request_size=11 [16:18:08]MH_SAM_APDU [16:18:08]CAPDU: 80 0D 02 02 06 73 7E F2 FB 23 34 [16:18:08]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 73 7E F2 FB 23 34 00 00 E9 [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:08]Read from MH i2c: E2 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 03 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:18:08]RAPDU: 90 00 [16:18:08]wFMCommunicate OK [16:18:08]wFMCommunicate request_size=4 [16:18:08]MH_SAM_APDU [16:18:08]CAPDU: 80 0D 03 02 [16:18:08]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:08]Read from MH i2c: E2 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 0B 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 0B 00 2F 00 00 98 56 31 44 65 2B 5B AC 90 00 A5 [16:18:08]RAPDU: 98 56 31 44 65 2B 5B AC 90 00 [16:18:08]wFMCommunicate OK [16:18:08]SAM_PROTO_SignData done [16:18:08]FM_MakeSignedData done [16:18:08]CreateOFDProtocolMessage [16:18:08]wFMCommunicate request_size=4 [16:18:08]MH_SAM_APDU [16:18:08]CAPDU: 80 11 00 00 [16:18:08]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:08]Read from MH i2c: E2 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 17 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [16:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:18:08]wFMCommunicate OK [16:18:08]CreateOFDProtocolMessage done [16:18:08]OFDSenderStorePacket 7745 [16:18:08]StoreOFDPacket docnum=7745 [16:18:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 2C 2B 08 01 AA 91 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3F 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 41 1E 00 00 35 04 06 00 73 7E F2 FB 23 34 98 56 31 44 65 2B 5B AC [16:18:08]CheckFolder [16:18:08]dirname=/storage/ofd_packets [16:18:08]CheckFolder done [16:18:08]ProducePacketName [16:18:08]name=ofd_packets/00007745 [16:18:08]NVStorageSaveData ofd_packets/00007745 [16:18:08]File name is /storage/ofd_packets/00007745 [16:18:08]Write 302 bytes [16:18:08]NVStorageSaveData done [16:18:08]OFDSenderStorePacket done [16:18:08]KKMCreateOFDPacket done [16:18:08]NVStorageSaveData kkm_last_timestamp [16:18:08]File name is /storage/kkm_last_timestamp [16:18:08]Write 4 bytes [16:18:08]NVStorageSaveData done [16:18:08]ExternCall_PrintAddStr [16:18:08]wPrintStart [16:18:08]Write to MH i2c: 01 00 00 31 00 31 [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: 01 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: 01 07 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:18:08]RasterBufferAndPrint [16:18:08]line Счет N : (1)871888 [16:18:08]line ИНН: 02508201610067 [16:18:08]line Контрольно-Кассовый Чек [16:18:08]line ПРОДАЖА [16:18:08]line ТРК (МРК, ГНК) : 11 [16:18:08]line Товар: 2710194210 [16:18:08]line ДТ(л)-К-4 [16:18:08]line 13.130 * 76.20 [16:18:08]line = 1000.51 [16:18:08]line НДС 12% НСП 1% [16:18:08]line > о реализуемом товаре [16:18:08]line ОКРУГЛЕНИЕ: -0.51 [16:18:08]line ИТОГО: 1000.00 [16:18:08]line Внесено: 1000.00 [16:18:08]line СДАЧА: 0.00 [16:18:08]line НСП 1% : 8.85 [16:18:08]line НДС 12% : 106.25 [16:18:08]line Наличными: 1000.00 [16:18:08]line Безнал.: 0.00 [16:18:08]line Место: АЗС № 137 "Партнер Нефть" [16:18:08]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [16:18:08]line СНО: Общий режим [16:18:08]line Чек 143 22.09.2024 16:18 [16:18:08]line Смена: 70 ФФД: 1.0 [16:18:08]line ЗНМ: 0300000041 [16:18:08]line РНМ: 0000000000190446 [16:18:08]line Версия ККМ: v1.0 [16:18:08]line ФМ: 0000000002094258 [16:18:08]line ФД: 7745 [16:18:08]line ФПД: 126989079618356 [16:18:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T161807&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7745&fm=126989079618356&tin=02508201610067®Number=0000000000190446&sum=100000 [16:18:08]OFD Sender: Processing packet 7745 [packets to send 51, broken 50] [16:18:08]ProducePacketName [16:18:08]name=ofd_packets/00007745 [16:18:08]OFD Sender: To server: pG, [16:18:08]CommunicateWithHost lk.salyk.kg:30040 [16:18:08]ConnectInit lk.salyk.kg [16:18:08]written 0, free lines is 4095 [16:18:08]Write to MH i2c: 01 00 00 5C 00 5C [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: 01 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: 01 07 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F3 0C 62 [16:18:08]RasterBufferAndPrint [16:18:08]line [16:18:08]line [16:18:08]line [16:18:08]line [16:18:08]line [16:18:08]written 0, free lines is 3339 [16:18:08]MH_Cut [16:18:08]Write to MH i2c: D1 01 00 63 00 01 35 [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: D1 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: D1 01 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: D1 01 00 63 00 00 34 [16:18:08]Write to MH i2c: 01 00 00 64 00 64 [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:09]*** Cut start [16:18:09]*** Purtial cut [16:18:09]*** Stage 1: CUTSNS_PIN = 1 [16:18:09]Read from MH i2c: 01 [16:18:09]MH_I2C_Read... [16:18:09]*** Stop cut motor [16:18:09]*** Cut end [16:18:09]Read from MH i2c: 01 07 00 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [16:18:09]process_action close_receipt done [16:18:09]requested_data is exist [16:18:09]produce_requested_data [16:18:09]requested_item fm.sn is exist - process it [16:18:09]wFMCommunicate request_size=4 [16:18:09]MH_SAM_APDU [16:18:09]CAPDU: 80 11 00 00 [16:18:09]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [16:18:09]Write i2c OK [16:18:09]MH_I2C_Read... [16:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:09]Read from MH i2c: E2 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 17 00 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [16:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:18:09]wFMCommunicate OK [16:18:09]requested_item fd.num is exist - process it [16:18:09]SAM_PROTO_GetFieldsCounters [16:18:09]wFMCommunicate request_size=4 [16:18:09]MH_SAM_APDU [16:18:09]CAPDU: 80 13 00 00 [16:18:09]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [16:18:09]Write i2c OK [16:18:09]MH_I2C_Read... [16:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:09]Read from MH i2c: E2 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 62 00 [16:18:09]MH_I2C_Read... [16:18:09]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 41 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [16:18:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 41 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:10]wFMCommunicate OK [16:18:10]SAM_PROTO_GetFieldsCounters done [16:18:10]requested_item shift.num is exist - process it [16:18:10]requested_item shift.opened is exist - process it [16:18:10]req_shift_opened [16:18:10]FM_GetShiftState [16:18:10]SAM_PROTO_GetShiftState [16:18:10]wFMCommunicate request_size=4 [16:18:10]MH_SAM_APDU [16:18:10]CAPDU: 80 13 01 00 [16:18:10]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [16:18:10]Write i2c OK [16:18:10]MH_I2C_Read... [16:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:10]Read from MH i2c: E2 [16:18:10]MH_I2C_Read... [16:18:10]Read from MH i2c: E2 0E 00 [16:18:10]MH_I2C_Read... [16:18:10]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [16:18:10]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:18:10]wFMCommunicate OK [16:18:10]SAM_PROTO_GetShiftState done [16:18:10]FM_GetShiftState done [16:18:10]req_shift_opened done [16:18:10]requested_item shift.open_date is exist - process it [16:18:10]req_shift_open_date [16:18:10]req_shift_open_date done [16:18:10]produce_requested_data done [16:18:10]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7745,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [16:18:10]process_action_free close_receipt [16:18:10]json_value_free [16:18:10]json_value_free done [16:18:10]process_json_proto returns [16:18:10]Send response to host [16:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7745,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [16:18:10]free response buf [16:18:10]execute_script done [16:18:10]execute_script returns [16:18:10]free content buf [16:18:10]Sock 9.Close socket [16:18:10]Sock 9.Thread stoped [16:18:12]recv_with_timeout no data received [16:18:13]ConnectInit Can't take IP for lk.salyk.kg [16:18:13]CommunicateWithHost connect error [16:18:13]CommunicateWithHost err = -1 [16:18:13]OFD Sender: Server communicate error [16:18:18]OFD Sender: Processing packet 7745 [packets to send 51, broken 50] [16:18:18]ProducePacketName [16:18:18]name=ofd_packets/00007745 [16:18:18]OFD Sender: To server: pG, [16:18:18]CommunicateWithHost lk.salyk.kg:30040 [16:18:18]ConnectInit lk.salyk.kg [16:18:23]recv_with_timeout no data received [16:18:23]Connected sock=9 [16:18:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 2C 2B 08 01 AA 91 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3F 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 41 1E 00 00 35 04 06 00 73 7E F2 FB 23 34 98 56 31 44 65 2B 5B AC [16:18:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 65 F6 47 00 04 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 41 1E 00 00 F4 03 04 00 0D EE EF 66 B6 04 01 00 00 0F 4A 9A D4 FD 4C 75 5F [16:18:24]CommunicateWithHost err = 0 [16:18:24]CheckOFDResponse [16:18:24]1017 (14) - 77093643461234 [16:18:24]1041 (16) - 0000000002094258 [16:18:24]1040 (4) - 7745 [16:18:24]1012 (4) - 22.09.2024 10:14 [16:18:24]1206 (1) - 0 [16:18:24]OFD Sender: Remove packet 7745 [16:18:24]ProducePacketName [16:18:24]name=ofd_packets/00007745 [16:18:24]NVStorageDeleteData [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]recv_with_timeout no data received [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:15]recv_with_timeout no data received [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:30]accept exits with 10 [16:19:30]New connection [16:19:30]New thread 3067022692 created [16:19:30]Thread 3067166052 joined [16:19:30]Waiting for new connection... [16:19:30] Sock 10.Parse request [16:19:30]Sock 10.Check first char [16:19:30]Sock 10.First char is OK [16:19:30]request: POST /json_proto HTTP/1.0 [16:19:30]Method: POST [16:19:30]URL: /json_proto [16:19:30]Method is POST - this is cgi request [16:19:30]url: /json_proto [16:19:30]query_string will be loaded in cgi processing [16:19:30]execute_cgi json_proto POST (null) [16:19:30]execute_cgi path=json_proto method=POST [16:19:30]POST find Content-Length [16:19:30]Host: 172.17.47.195:8080 [16:19:30]Content-Length: 682 [16:19:30]Content-Type: application/json [16:19:30] [16:19:30]POST finish read [16:19:30]Found Content-Length = 682 [16:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:30]execute_script... [16:19: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)871891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:30]POST & json_proto [16:19:30]process_json_proto [16:19:30]json parsed OK: [16:19:30]protocol is kg_v1.0 [16:19:30]action value=close_receipt [16:19:30]process_action close_receipt [16:19:30]cmd_close_receipt [16:19:30]MH_GetDate [16:19:30]Write to MH i2c: F0 00 00 68 00 57 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: F0 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: F0 09 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: F0 09 00 68 00 00 93 43 F0 66 96 2E 95 66 4B [16:19:30]GetLastDocTimeStamp 1727021887 [16:19:30]current date 1727021971 [16:19:30]FM_GetShiftState [16:19:30]SAM_PROTO_GetShiftState [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 01 00 [16:19:30]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [16:19:30]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetShiftState done [16:19:30]FM_GetShiftState done [16:19:30]opened in 1726964224 [16:19:30]opened+sec_in_day 1727050624 [16:19:30]quantity*price = 50063 [16:19:30]sum+1 = 50064 [16:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 144 22.09.2024 16:19 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7746 ФПД: 247632667924649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T161931&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7746&fm=247632667924649&tin=02508201610067®Number=0000000000190446&sum=50000 [16:19:31]StoreToDocumentArchive [16:19:31]shift 70 fd 7746 [16:19:31]save to /storage/0070/doc_00007746 [16:19:31]save last doc name /storage/0070/doc_00007746 to /storage/kkm_last_doc_name [16:19:31]save OK [16:19:31]Clear old archive folders... [16:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:19:31]tlvbuf is 0169E500 [16:19:31]SAM_PROTO_ClearQueue [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 09 00 00 [16:19:31]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 03 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:19:31]RAPDU: 90 00 [16:19:31]wFMCommunicate OK [16:19:31]SAM_PROTO_ClearQueue done [16:19:31]KKMCreateOFDPacket [16:19:31]OFDProtocolAddRootSTLVToBuf [16:19:31]FM_MakeSignedData [16:19:31]FM_MakeSignedData [16:19:31]SAM_PROTO_SignData [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 0D 01 02 [16:19:31]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 03 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:19:31]RAPDU: 90 00 [16:19:31]wFMCommunicate OK [16:19:31]wFMCommunicate request_size=255 [16:19:31]MH_SAM_APDU [16:19: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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 93 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 42 1E 00 00 35 04 06 00 [16:19:31]Write to MH i2c: E2 02 01 78 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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 93 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 42 1E 00 00 35 04 06 00 00 00 43 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 03 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:19:31]RAPDU: 90 00 [16:19:31]wFMCommunicate OK [16:19:31]wFMCommunicate request_size=11 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 0D 02 02 06 E1 38 79 34 D8 A9 [16:19:31]Write to MH i2c: E2 0E 00 79 00 80 0D 02 02 06 00 E1 38 79 34 D8 A9 00 00 46 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 03 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [16:19:31]RAPDU: 90 00 [16:19:31]wFMCommunicate OK [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 0D 03 02 [16:19:31]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0B 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0B 00 7A 00 00 2D 6C BF 9E C3 81 7E B0 90 00 5E [16:19:31]RAPDU: 2D 6C BF 9E C3 81 7E B0 90 00 [16:19:31]wFMCommunicate OK [16:19:31]SAM_PROTO_SignData done [16:19:31]FM_MakeSignedData done [16:19:31]CreateOFDProtocolMessage [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 11 00 00 [16:19:31]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 17 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [16:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:19:31]wFMCommunicate OK [16:19:31]CreateOFDProtocolMessage done [16:19:31]OFDSenderStorePacket 7746 [16:19:31]StoreOFDPacket docnum=7746 [16:19:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D2 51 08 01 A0 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 93 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 42 1E 00 00 35 04 06 00 E1 38 79 34 D8 A9 2D 6C BF 9E C3 81 7E B0 [16:19:31]CheckFolder [16:19:31]dirname=/storage/ofd_packets [16:19:31]CheckFolder done [16:19:31]ProducePacketName [16:19:31]name=ofd_packets/00007746 [16:19:31]NVStorageSaveData ofd_packets/00007746 [16:19:31]File name is /storage/ofd_packets/00007746 [16:19:31]Write 302 bytes [16:19:31]NVStorageSaveData done [16:19:31]OFDSenderStorePacket done [16:19:31]KKMCreateOFDPacket done [16:19:31]NVStorageSaveData kkm_last_timestamp [16:19:31]File name is /storage/kkm_last_timestamp [16:19:31]Write 4 bytes [16:19:31]NVStorageSaveData done [16:19:31]ExternCall_PrintAddStr [16:19:31]wPrintStart [16:19:31]Write to MH i2c: 01 00 00 7C 00 7C [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: 01 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: 01 07 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [16:19:31]RasterBufferAndPrint [16:19:31]line Счет N : (1)871891 [16:19:31]line ИНН: 02508201610067 [16:19:31]line Контрольно-Кассовый Чек [16:19:31]line ПРОДАЖА [16:19:31]line ТРК (МРК, ГНК) : 11 [16:19:31]line Товар: 2710194210 [16:19:31]line ДТ(л)-К-4 [16:19:31]line 6.570 * 76.20 [16:19:31]line = 500.63 [16:19:31]line НДС 12% НСП 1% [16:19:31]line > о реализуемом товаре [16:19:31]line ОКРУГЛЕНИЕ: -0.63 [16:19:31]line ИТОГО: 500.00 [16:19:31]line Внесено: 500.00 [16:19:31]line СДАЧА: 0.00 [16:19:31]line НСП 1% : 4.43 [16:19:31]line НДС 12% : 53.16 [16:19:31]line Наличными: 500.00 [16:19:31]line Безнал.: 0.00 [16:19:31]line Место: АЗС № 137 "Партнер Нефть" [16:19:31]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [16:19:31]line СНО: Общий режим [16:19:31]line Чек 144 22.09.2024 16:19 [16:19:31]line Смена: 70 ФФД: 1.0 [16:19:31]line ЗНМ: 0300000041 [16:19:31]line РНМ: 0000000000190446 [16:19:31]line Версия ККМ: v1.0 [16:19:31]line ФМ: 0000000002094258 [16:19:31]line ФД: 7746 [16:19:31]line ФПД: 247632667924649 [16:19:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T161931&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7746&fm=247632667924649&tin=02508201610067®Number=0000000000190446&sum=50000 [16:19:32]OFD Sender: Processing packet 7746 [packets to send 51, broken 50] [16:19:32]ProducePacketName [16:19:32]name=ofd_packets/00007746 [16:19:32]OFD Sender: To server: pG, [16:19:32]CommunicateWithHost lk.salyk.kg:30040 [16:19:32]ConnectInit lk.salyk.kg [16:19:32]written 0, free lines is 4095 [16:19:32]Write to MH i2c: 01 00 00 A7 00 A7 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 07 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 EA 0C A4 [16:19:32]RasterBufferAndPrint [16:19:32]line [16:19:32]line [16:19:32]line [16:19:32]line [16:19:32]line [16:19:32]written 0, free lines is 3312 [16:19:32]MH_Cut [16:19:32]Write to MH i2c: D1 01 00 AE 00 01 80 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: D1 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: D1 01 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: D1 01 00 AE 00 00 7F [16:19:32]Write to MH i2c: 01 00 00 AF 00 AF [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:33]*** Cut start [16:19:33]*** Purtial cut [16:19:33]*** Stage 1: CUTSNS_PIN = 1 [16:19:33]Read from MH i2c: 01 [16:19:33]MH_I2C_Read... [16:19:33]*** Stop cut motor [16:19:33]*** Cut end [16:19:33]Read from MH i2c: 01 07 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [16:19:33]process_action close_receipt done [16:19:33]requested_data is exist [16:19:33]produce_requested_data [16:19:33]requested_item fm.sn is exist - process it [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 11 00 00 [16:19:33]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 17 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [16:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:19:33]wFMCommunicate OK [16:19:33]requested_item fd.num is exist - process it [16:19:33]SAM_PROTO_GetFieldsCounters [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 13 00 00 [16:19:33]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 62 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 42 1E 00 00 0E 04 04 00 46 00 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 A1 [16:19:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 42 1E 00 00 0E 04 04 00 46 00 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 [16:19:33]wFMCommunicate OK [16:19:33]SAM_PROTO_GetFieldsCounters done [16:19:33]requested_item shift.num is exist - process it [16:19:33]requested_item shift.opened is exist - process it [16:19:33]req_shift_opened [16:19:33]FM_GetShiftState [16:19:33]SAM_PROTO_GetShiftState [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 13 01 00 [16:19:33]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0E 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F2 [16:19:33]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:19:33]wFMCommunicate OK [16:19:33]SAM_PROTO_GetShiftState done [16:19:33]FM_GetShiftState done [16:19:33]req_shift_opened done [16:19:33]requested_item shift.open_date is exist - process it [16:19:33]req_shift_open_date [16:19:33]req_shift_open_date done [16:19:33]produce_requested_data done [16:19:33]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7746,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [16:19:33]process_action_free close_receipt [16:19:33]json_value_free [16:19:33]json_value_free done [16:19:33]process_json_proto returns [16:19:33]Send response to host [16:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7746,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [16:19:33]free response buf [16:19:33]execute_script done [16:19:33]execute_script returns [16:19:33]free content buf [16:19:33]Sock 10.Close socket [16:19:33]Sock 10.Thread stoped [16:19:35]Connected sock=9 [16:19:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D2 51 08 01 A0 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 93 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 42 1E 00 00 35 04 06 00 E1 38 79 34 D8 A9 2D 6C BF 9E C3 81 7E B0 [16:19:40]recv_with_timeout no data received [16:19:40]CommunicateWithHost answer receiving error [16:19:40]CommunicateWithHost err = -3 [16:19:40]OFD Sender: Server communicate error [16:19:40]recv_with_timeout no data received [16:19:45]OFD Sender: Processing packet 7746 [packets to send 51, broken 50] [16:19:45]ProducePacketName [16:19:45]name=ofd_packets/00007746 [16:19:45]OFD Sender: To server: pG, [16:19:45]CommunicateWithHost lk.salyk.kg:30040 [16:19:45]ConnectInit lk.salyk.kg [16:19:50]ConnectInit Can't take IP for lk.salyk.kg [16:19:50]CommunicateWithHost connect error [16:19:50]CommunicateWithHost err = -1 [16:19:50]OFD Sender: Server communicate error [16:19:55]OFD Sender: Processing packet 7746 [packets to send 51, broken 50] [16:19:55]ProducePacketName [16:19:55]name=ofd_packets/00007746 [16:19:55]OFD Sender: To server: pG, [16:19:55]CommunicateWithHost lk.salyk.kg:30040 [16:19:55]ConnectInit lk.salyk.kg [16:19:55]recv_with_timeout no data received [16:20:00]ConnectInit Can't take IP for lk.salyk.kg [16:20:00]CommunicateWithHost connect error [16:20:00]CommunicateWithHost err = -1 [16:20:00]OFD Sender: Server communicate error [16:20:05]OFD Sender: Processing packet 7746 [packets to send 51, broken 50] [16:20:05]ProducePacketName [16:20:05]name=ofd_packets/00007746 [16:20:05]OFD Sender: To server: pG, [16:20:05]CommunicateWithHost lk.salyk.kg:30040 [16:20:05]ConnectInit lk.salyk.kg [16:20:10]ConnectInit Can't take IP for lk.salyk.kg [16:20:10]CommunicateWithHost connect error [16:20:10]CommunicateWithHost err = -1 [16:20:10]OFD Sender: Server communicate error [16:20:15]OFD Sender: Processing packet 7746 [packets to send 51, broken 50] [16:20:15]ProducePacketName [16:20:15]name=ofd_packets/00007746 [16:20:15]OFD Sender: To server: pG, [16:20:15]CommunicateWithHost lk.salyk.kg:30040 [16:20:15]ConnectInit lk.salyk.kg [16:20:15]recv_with_timeout no data received [16:20:20]ConnectInit Can't take IP for lk.salyk.kg [16:20:20]CommunicateWithHost connect error [16:20:20]CommunicateWithHost err = -1 [16:20:20]OFD Sender: Server communicate error [16:20:25]OFD Sender: Processing packet 7746 [packets to send 51, broken 50] [16:20:25]ProducePacketName [16:20:25]name=ofd_packets/00007746 [16:20:25]OFD Sender: To server: pG, [16:20:25]CommunicateWithHost lk.salyk.kg:30040 [16:20:25]ConnectInit lk.salyk.kg [16:20:32]Connected sock=10 [16:20:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D2 51 08 01 A0 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 93 43 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 42 1E 00 00 35 04 06 00 E1 38 79 34 D8 A9 2D 6C BF 9E C3 81 7E B0 [16:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 52 7A 47 00 4A C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 42 1E 00 00 F4 03 04 00 8F EE EF 66 B6 04 01 00 00 A7 65 1D 78 18 03 3E 21 [16:20:35]CommunicateWithHost err = 0 [16:20:35]CheckOFDResponse [16:20:35]1017 (14) - 77093643461234 [16:20:35]1041 (16) - 0000000002094258 [16:20:35]1040 (4) - 7746 [16:20:35]1012 (4) - 22.09.2024 10:16 [16:20:35]1206 (1) - 0 [16:20:35]OFD Sender: Remove packet 7746 [16:20:35]ProducePacketName [16:20:35]name=ofd_packets/00007746 [16:20:35]NVStorageDeleteData [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:11]recv_with_timeout no data received [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [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: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: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:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [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: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:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:35]recv_with_timeout no data received [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:09]recv_with_timeout no data received [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:08]recv_with_timeout no data received [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:30]recv_with_timeout no data received [16:33:31]OFD Sender: No OFD packet to send [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:48]recv_with_timeout no data received [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:19]recv_with_timeout no data received [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:23]recv_with_timeout no data received [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:27]recv_with_timeout no data received [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:44]recv_with_timeout no data received [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:00]recv_with_timeout no data received [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:17]recv_with_timeout no data received [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:39]recv_with_timeout no data received [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]recv_with_timeout no data received [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:15]recv_with_timeout no data received [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:29]recv_with_timeout no data received [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:05]recv_with_timeout no data received [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:43]recv_with_timeout no data received [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:26]recv_with_timeout no data received [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:51:58]recv_with_timeout no data received [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:22]recv_with_timeout no data received [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:39]recv_with_timeout no data received [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:08]recv_with_timeout no data received [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:29]accept exits with 7 [16:59:29]New connection [16:59:29]New thread 3067166052 created [16:59:29]Thread 3067022692 joined [16:59:29]Waiting for new connection... [16:59:29] Sock 7.Parse request [16:59:29]Sock 7.Check first char [16:59:29]Sock 7.First char is OK [16:59:29]request: POST /json_proto HTTP/1.0 [16:59:29]Method: POST [16:59:29]URL: /json_proto [16:59:29]Method is POST - this is cgi request [16:59:29]url: /json_proto [16:59:29]query_string will be loaded in cgi processing [16:59:29]execute_cgi json_proto POST (null) [16:59:29]execute_cgi path=json_proto method=POST [16:59:29]POST find Content-Length [16:59:29]Host: 172.17.47.195:8080 [16:59:29]Content-Length: 687 [16:59:29]Content-Type: application/json [16:59:29] [16:59:29]POST finish read [16:59:29]Found Content-Length = 687 [16:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:29]execute_script... [16:59: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)871912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:29]POST & json_proto [16:59:29]process_json_proto [16:59:29]json parsed OK: [16:59:29]protocol is kg_v1.0 [16:59:29]action value=close_receipt [16:59:29]process_action close_receipt [16:59:29]cmd_close_receipt [16:59:29]MH_GetDate [16:59:29]Write to MH i2c: F0 00 00 B3 00 A2 [16:59:29]Write i2c OK [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: F0 [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: F0 09 00 [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: F0 09 00 B3 00 00 F2 4C F0 66 96 2E 95 66 FE [16:59:29]GetLastDocTimeStamp 1727021971 [16:59:29]current date 1727024370 [16:59:29]FM_GetShiftState [16:59:29]SAM_PROTO_GetShiftState [16:59:29]wFMCommunicate request_size=4 [16:59:29]MH_SAM_APDU [16:59:29]CAPDU: 80 13 01 00 [16:59:29]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [16:59:29]Write i2c OK [16:59:29]MH_I2C_Read... [16:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:29]Read from MH i2c: E2 [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: E2 0E 00 [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F4 [16:59:29]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:59:29]wFMCommunicate OK [16:59:29]SAM_PROTO_GetShiftState done [16:59:29]FM_GetShiftState done [16:59:29]opened in 1726964224 [16:59:29]opened+sec_in_day 1727050624 [16:59:29]quantity*price = 200025 [16:59:29]sum+1 = 200026 [16:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 145 22.09.2024 16:59 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7747 ФПД: 7390681186725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165930&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7747&fm=7390681186725&tin=02508201610067®Number=0000000000190446&sum=200000 [16:59:30]StoreToDocumentArchive [16:59:30]shift 70 fd 7747 [16:59:30]save to /storage/0070/doc_00007747 [16:59:30]save last doc name /storage/0070/doc_00007747 to /storage/kkm_last_doc_name [16:59:30]save OK [16:59:30]Clear old archive folders... [16:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:59:30]tlvbuf is 0169F8C0 [16:59:30]SAM_PROTO_ClearQueue [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 09 00 00 [16:59:30]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [16:59:30]RAPDU: 90 00 [16:59:30]wFMCommunicate OK [16:59:30]SAM_PROTO_ClearQueue done [16:59:30]KKMCreateOFDPacket [16:59:30]OFDProtocolAddRootSTLVToBuf [16:59:30]FM_MakeSignedData [16:59:30]FM_MakeSignedData [16:59:30]SAM_PROTO_SignData [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 0D 01 02 [16:59:30]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [16:59:30]RAPDU: 90 00 [16:59:30]wFMCommunicate OK [16:59:30]wFMCommunicate request_size=255 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F2 4C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 43 1E 00 00 35 04 06 00 [16:59:30]Write to MH i2c: E2 02 01 C3 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 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F2 4C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 43 1E 00 00 35 04 06 00 00 00 5E [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:31]Read from MH i2c: E2 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: E2 03 00 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [16:59:31]RAPDU: 90 00 [16:59:31]wFMCommunicate OK [16:59:31]wFMCommunicate request_size=11 [16:59:31]MH_SAM_APDU [16:59:31]CAPDU: 80 0D 02 02 06 06 B8 C6 ED 41 A5 [16:59:31]Write to MH i2c: E2 0E 00 C4 00 80 0D 02 02 06 00 06 B8 C6 ED 41 A5 00 00 A1 [16:59:31]Write i2c OK [16:59:31]MH_I2C_Read... [16:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:31]Read from MH i2c: E2 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: E2 03 00 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [16:59:31]RAPDU: 90 00 [16:59:31]wFMCommunicate OK [16:59:31]wFMCommunicate request_size=4 [16:59:31]MH_SAM_APDU [16:59:31]CAPDU: 80 0D 03 02 [16:59:31]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [16:59:31]Write i2c OK [16:59:31]MH_I2C_Read... [16:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:31]Read from MH i2c: E2 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: E2 0B 00 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: E2 0B 00 C5 00 00 90 22 4D 78 9B 24 D0 F1 90 00 38 [16:59:31]RAPDU: 90 22 4D 78 9B 24 D0 F1 90 00 [16:59:31]wFMCommunicate OK [16:59:31]SAM_PROTO_SignData done [16:59:31]FM_MakeSignedData done [16:59:31]CreateOFDProtocolMessage [16:59:31]wFMCommunicate request_size=4 [16:59:31]MH_SAM_APDU [16:59:31]CAPDU: 80 11 00 00 [16:59:31]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [16:59:31]Write i2c OK [16:59:31]MH_I2C_Read... [16:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:31]Read from MH i2c: E2 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: E2 17 00 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 91 [16:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:59:31]wFMCommunicate OK [16:59:31]CreateOFDProtocolMessage done [16:59:31]OFDSenderStorePacket 7747 [16:59:31]StoreOFDPacket docnum=7747 [16:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 DE 0D 08 01 80 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F2 4C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 43 1E 00 00 35 04 06 00 06 B8 C6 ED 41 A5 90 22 4D 78 9B 24 D0 F1 [16:59:31]CheckFolder [16:59:31]dirname=/storage/ofd_packets [16:59:31]CheckFolder done [16:59:31]ProducePacketName [16:59:31]name=ofd_packets/00007747 [16:59:31]NVStorageSaveData ofd_packets/00007747 [16:59:31]File name is /storage/ofd_packets/00007747 [16:59:31]Write 302 bytes [16:59:31]NVStorageSaveData done [16:59:31]OFDSenderStorePacket done [16:59:31]KKMCreateOFDPacket done [16:59:31]NVStorageSaveData kkm_last_timestamp [16:59:31]File name is /storage/kkm_last_timestamp [16:59:31]Write 4 bytes [16:59:31]NVStorageSaveData done [16:59:31]ExternCall_PrintAddStr [16:59:31]wPrintStart [16:59:31]Write to MH i2c: 01 00 00 C7 00 C7 [16:59:31]Write i2c OK [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: 01 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: 01 07 00 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [16:59:31]RasterBufferAndPrint [16:59:31]line Счет N : (1)871912 [16:59:31]line ИНН: 02508201610067 [16:59:31]line Контрольно-Кассовый Чек [16:59:31]line ПРОДАЖА [16:59:31]line ТРК (МРК, ГНК) : 54 [16:59:31]line Товар: 2710194210 [16:59:31]line ДТ(л)-К-4 [16:59:31]line 26.250 * 76.20 [16:59:31]line = 2000.25 [16:59:31]line НДС 12% НСП 1% [16:59:31]line > о реализуемом товаре [16:59:31]line ОКРУГЛЕНИЕ: -0.25 [16:59:31]line ИТОГО: 2000.00 [16:59:31]line Внесено: 2000.00 [16:59:31]line СДАЧА: 0.00 [16:59:31]line НСП 1% : 17.70 [16:59:31]line НДС 12% : 212.42 [16:59:31]line Наличными: 2000.00 [16:59:31]line Безнал.: 0.00 [16:59:31]line Место: АЗС № 137 "Партнер Нефть" [16:59:31]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [16:59:31]line СНО: Общий режим [16:59:31]line Чек 145 22.09.2024 16:59 [16:59:31]line Смена: 70 ФФД: 1.0 [16:59:31]line ЗНМ: 0300000041 [16:59:31]line РНМ: 0000000000190446 [16:59:31]line Версия ККМ: v1.0 [16:59:31]line ФМ: 0000000002094258 [16:59:31]line ФД: 7747 [16:59:31]line ФПД: 7390681186725 [16:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165930&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7747&fm=7390681186725&tin=02508201610067®Number=0000000000190446&sum=200000 [16:59:31]OFD Sender: Processing packet 7747 [packets to send 51, broken 50] [16:59:31]ProducePacketName [16:59:31]name=ofd_packets/00007747 [16:59:31]OFD Sender: To server: pG, [16:59:31]CommunicateWithHost lk.salyk.kg:30040 [16:59:31]ConnectInit lk.salyk.kg [16:59:31]written 0, free lines is 4095 [16:59:32]Write to MH i2c: 01 00 00 F2 00 F2 [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: 01 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: 01 07 00 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 ED 0C F2 [16:59:32]RasterBufferAndPrint [16:59:32]line [16:59:32]line [16:59:32]line [16:59:32]line [16:59:32]line [16:59:32]written 0, free lines is 3315 [16:59:32]MH_Cut [16:59:32]Write to MH i2c: D1 01 00 F9 00 01 CB [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: D1 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: D1 01 00 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: D1 01 00 F9 00 00 CA [16:59:32]Write to MH i2c: 01 00 00 FA 00 FA [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]*** Cut start [16:59:32]*** Purtial cut [16:59:32]*** Stage 1: CUTSNS_PIN = 1 [16:59:33]Read from MH i2c: 01 [16:59:33]MH_I2C_Read... [16:59:33]*** Stop cut motor [16:59:33]*** Cut end [16:59:33]Read from MH i2c: 01 07 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [16:59:33]process_action close_receipt done [16:59:33]requested_data is exist [16:59:33]produce_requested_data [16:59:33]requested_item fm.sn is exist - process it [16:59:33]wFMCommunicate request_size=4 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 11 00 00 [16:59:33]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 17 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C6 [16:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [16:59:33]wFMCommunicate OK [16:59:33]requested_item fd.num is exist - process it [16:59:33]SAM_PROTO_GetFieldsCounters [16:59:33]wFMCommunicate request_size=4 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 13 00 00 [16:59:33]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 62 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 43 1E 00 00 0E 04 04 00 46 00 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 F0 [16:59:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 43 1E 00 00 0E 04 04 00 46 00 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 [16:59:33]wFMCommunicate OK [16:59:33]SAM_PROTO_GetFieldsCounters done [16:59:33]requested_item shift.num is exist - process it [16:59:33]requested_item shift.opened is exist - process it [16:59:33]req_shift_opened [16:59:33]FM_GetShiftState [16:59:33]SAM_PROTO_GetShiftState [16:59:33]wFMCommunicate request_size=4 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 13 01 00 [16:59:33]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 0E 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3D [16:59:33]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [16:59:33]wFMCommunicate OK [16:59:33]SAM_PROTO_GetShiftState done [16:59:33]FM_GetShiftState done [16:59:33]req_shift_opened done [16:59:33]requested_item shift.open_date is exist - process it [16:59:33]req_shift_open_date [16:59:33]req_shift_open_date done [16:59:33]produce_requested_data done [16:59:33]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7747,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [16:59:33]process_action_free close_receipt [16:59:33]json_value_free [16:59:33]json_value_free done [16:59:33]process_json_proto returns [16:59:33]Send response to host [16:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7747,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [16:59:33]free response buf [16:59:33]execute_script done [16:59:33]execute_script returns [16:59:33]free content buf [16:59:33]Sock 7.Close socket [16:59:33]Sock 7.Thread stoped [16:59:34]Connected sock=10 [16:59:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 DE 0D 08 01 80 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F2 4C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 43 1E 00 00 35 04 06 00 06 B8 C6 ED 41 A5 90 22 4D 78 9B 24 D0 F1 [16:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E1 D7 47 00 FF 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 43 1E 00 00 F4 03 04 00 B5 F7 EF 66 B6 04 01 00 00 CE 33 99 C2 54 61 7C CB [16:59:37]CommunicateWithHost err = 0 [16:59:37]CheckOFDResponse [16:59:37]1017 (14) - 77093643461234 [16:59:37]1041 (16) - 0000000002094258 [16:59:37]1040 (4) - 7747 [16:59:37]1012 (4) - 22.09.2024 10:55 [16:59:37]1206 (1) - 0 [16:59:37]OFD Sender: Remove packet 7747 [16:59:37]ProducePacketName [16:59:37]name=ofd_packets/00007747 [16:59:37]NVStorageDeleteData [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:31]recv_with_timeout no data received [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:01]recv_with_timeout no data received [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:12]recv_with_timeout no data received [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:13]recv_with_timeout no data received [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:54]recv_with_timeout no data received [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:36]recv_with_timeout no data received [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:21]recv_with_timeout no data received [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:39]recv_with_timeout no data received [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:43]ConnectInit Can't connect to host [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:31]accept exits with 9 [17:15:31]New connection [17:15:31]New thread 3067022692 created [17:15:31]Thread 3067166052 joined [17:15:31]Waiting for new connection... [17:15:31] Sock 9.Parse request [17:15:31]Sock 9.Check first char [17:15:31]Sock 9.First char is OK [17:15:31]request: POST /json_proto HTTP/1.0 [17:15:31]Method: POST [17:15:31]URL: /json_proto [17:15:31]Method is POST - this is cgi request [17:15:31]url: /json_proto [17:15:31]query_string will be loaded in cgi processing [17:15:31]execute_cgi json_proto POST (null) [17:15:31]execute_cgi path=json_proto method=POST [17:15:31]POST find Content-Length [17:15:31]Host: 172.17.47.195:8080 [17:15:31]Content-Length: 687 [17:15:31]Content-Type: application/json [17:15:31] [17:15:31]POST finish read [17:15:31]Found Content-Length = 687 [17:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:31]execute_script... [17:15:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:31]POST & json_proto [17:15:31]process_json_proto [17:15:31]json parsed OK: [17:15:31]protocol is kg_v1.0 [17:15:31]action value=close_receipt [17:15:31]process_action close_receipt [17:15:31]cmd_close_receipt [17:15:31]MH_GetDate [17:15:31]Write to MH i2c: F0 00 00 FE 00 ED [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: F0 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: F0 09 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: F0 09 00 FE 00 00 B4 50 F0 66 96 2E 95 66 0F [17:15:31]GetLastDocTimeStamp 1727024370 [17:15:31]current date 1727025332 [17:15:31]FM_GetShiftState [17:15:31]SAM_PROTO_GetShiftState [17:15:31]wFMCommunicate request_size=4 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 13 01 00 [17:15:31]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 0E 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 3F [17:15:31]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:15:31]wFMCommunicate OK [17:15:31]SAM_PROTO_GetShiftState done [17:15:31]FM_GetShiftState done [17:15:31]opened in 1726964224 [17:15:31]opened+sec_in_day 1727050624 [17:15:31]quantity*price = 150037 [17:15:31]sum+1 = 150039 [17:15:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 146 22.09.2024 17:15 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7748 ФПД: 63339799001420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171532&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7748&fm=63339799001420&tin=02508201610067®Number=0000000000190446&sum=150000 [17:15:32]StoreToDocumentArchive [17:15:32]shift 70 fd 7748 [17:15:32]save to /storage/0070/doc_00007748 [17:15:32]save last doc name /storage/0070/doc_00007748 to /storage/kkm_last_doc_name [17:15:32]save OK [17:15:32]Clear old archive folders... [17:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:15:32]tlvbuf is 016A1210 [17:15:32]SAM_PROTO_ClearQueue [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 09 00 00 [17:15:32]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 03 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [17:15:32]RAPDU: 90 00 [17:15:32]wFMCommunicate OK [17:15:32]SAM_PROTO_ClearQueue done [17:15:32]KKMCreateOFDPacket [17:15:32]OFDProtocolAddRootSTLVToBuf [17:15:32]FM_MakeSignedData [17:15:32]FM_MakeSignedData [17:15:32]SAM_PROTO_SignData [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 0D 01 02 [17:15:32]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 03 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [17:15:32]RAPDU: 90 00 [17:15:32]wFMCommunicate OK [17:15:32]wFMCommunicate request_size=255 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 92 00 00 00 F4 03 04 00 B4 50 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 44 1E 00 00 35 04 06 00 [17:15:32]Write to MH i2c: E2 02 01 0E 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 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B4 50 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 44 1E 00 00 35 04 06 00 00 00 FB [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 03 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [17:15:32]RAPDU: 90 00 [17:15:32]wFMCommunicate OK [17:15:32]wFMCommunicate request_size=11 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 0D 02 02 06 39 9B 72 38 39 4C [17:15:32]Write to MH i2c: E2 0E 00 0F 01 80 0D 02 02 06 00 39 9B 72 38 39 4C 00 00 99 [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 03 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [17:15:32]RAPDU: 90 00 [17:15:32]wFMCommunicate OK [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 0D 03 02 [17:15:32]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 0B 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 0B 00 10 01 00 D5 EE 20 B0 AC 4A 84 EB 90 00 85 [17:15:32]RAPDU: D5 EE 20 B0 AC 4A 84 EB 90 00 [17:15:32]wFMCommunicate OK [17:15:32]SAM_PROTO_SignData done [17:15:32]FM_MakeSignedData done [17:15:32]CreateOFDProtocolMessage [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 11 00 00 [17:15:32]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 17 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DD [17:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:15:32]wFMCommunicate OK [17:15:32]CreateOFDProtocolMessage done [17:15:32]OFDSenderStorePacket 7748 [17:15:32]StoreOFDPacket docnum=7748 [17:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 C8 00 08 01 39 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B4 50 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 44 1E 00 00 35 04 06 00 39 9B 72 38 39 4C D5 EE 20 B0 AC 4A 84 EB [17:15:32]CheckFolder [17:15:32]dirname=/storage/ofd_packets [17:15:32]CheckFolder done [17:15:32]ProducePacketName [17:15:32]name=ofd_packets/00007748 [17:15:32]NVStorageSaveData ofd_packets/00007748 [17:15:32]File name is /storage/ofd_packets/00007748 [17:15:32]Write 302 bytes [17:15:32]NVStorageSaveData done [17:15:32]OFDSenderStorePacket done [17:15:32]KKMCreateOFDPacket done [17:15:32]NVStorageSaveData kkm_last_timestamp [17:15:32]File name is /storage/kkm_last_timestamp [17:15:32]Write 4 bytes [17:15:32]NVStorageSaveData done [17:15:32]ExternCall_PrintAddStr [17:15:32]wPrintStart [17:15:32]Write to MH i2c: 01 00 00 12 01 13 [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: 01 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: 01 07 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [17:15:32]RasterBufferAndPrint [17:15:32]line Счет N : (1)871925 [17:15:32]line ИНН: 02508201610067 [17:15:32]line Контрольно-Кассовый Чек [17:15:32]line ПРОДАЖА [17:15:32]line ТРК (МРК, ГНК) : 11 [17:15:32]line Товар: 2710194210 [17:15:32]line ДТ(л)-К-4 [17:15:32]line 19.690 * 76.20 [17:15:32]line = 1500.38 [17:15:32]line НДС 12% НСП 1% [17:15:32]line > о реализуемом товаре [17:15:32]line ОКРУГЛЕНИЕ: -0.38 [17:15:32]line ИТОГО: 1500.00 [17:15:32]line Внесено: 1500.00 [17:15:32]line СДАЧА: 0.00 [17:15:32]line НСП 1% : 13.28 [17:15:32]line НДС 12% : 159.33 [17:15:32]line Наличными: 1500.00 [17:15:32]line Безнал.: 0.00 [17:15:32]line Место: АЗС № 137 "Партнер Нефть" [17:15:32]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [17:15:32]line СНО: Общий режим [17:15:32]line Чек 146 22.09.2024 17:15 [17:15:32]line Смена: 70 ФФД: 1.0 [17:15:32]line ЗНМ: 0300000041 [17:15:32]line РНМ: 0000000000190446 [17:15:32]line Версия ККМ: v1.0 [17:15:32]line ФМ: 0000000002094258 [17:15:32]line ФД: 7748 [17:15:32]line ФПД: 63339799001420 [17:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171532&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7748&fm=63339799001420&tin=02508201610067®Number=0000000000190446&sum=150000 [17:15:33]OFD Sender: Processing packet 7748 [packets to send 51, broken 50] [17:15:33]ProducePacketName [17:15:33]name=ofd_packets/00007748 [17:15:33]OFD Sender: To server: pG, [17:15:33]CommunicateWithHost lk.salyk.kg:30040 [17:15:33]ConnectInit lk.salyk.kg [17:15:33]written 0, free lines is 4095 [17:15:33]Write to MH i2c: 01 00 00 3D 01 3E [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 07 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 E9 0C 3A [17:15:33]RasterBufferAndPrint [17:15:33]line [17:15:33]line [17:15:33]line [17:15:33]line [17:15:33]line [17:15:33]written 0, free lines is 3311 [17:15:33]MH_Cut [17:15:33]Write to MH i2c: D1 01 00 44 01 01 17 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: D1 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: D1 01 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: D1 01 00 44 01 00 16 [17:15:33]Write to MH i2c: 01 00 00 45 01 46 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:34]Connected sock=10 [17:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 C8 00 08 01 39 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B4 50 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 44 1E 00 00 35 04 06 00 39 9B 72 38 39 4C D5 EE 20 B0 AC 4A 84 EB [17:15:34]*** Cut start [17:15:34]*** Purtial cut [17:15:34]*** Stage 1: CUTSNS_PIN = 1 [17:15:34]Read from MH i2c: 01 [17:15:34]MH_I2C_Read... [17:15:34]*** Stop cut motor [17:15:34]*** Cut end [17:15:34]Read from MH i2c: 01 07 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [17:15:34]process_action close_receipt done [17:15:34]requested_data is exist [17:15:34]produce_requested_data [17:15:34]requested_item fm.sn is exist - process it [17:15:34]wFMCommunicate request_size=4 [17:15:34]MH_SAM_APDU [17:15:34]CAPDU: 80 11 00 00 [17:15:34]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:34]Read from MH i2c: E2 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 17 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 12 [17:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:15:34]wFMCommunicate OK [17:15:34]requested_item fd.num is exist - process it [17:15:34]SAM_PROTO_GetFieldsCounters [17:15:34]wFMCommunicate request_size=4 [17:15:34]MH_SAM_APDU [17:15:34]CAPDU: 80 13 00 00 [17:15:34]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:34]Read from MH i2c: E2 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 62 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 44 1E 00 00 0E 04 04 00 46 00 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 40 [17:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 44 1E 00 00 0E 04 04 00 46 00 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 [17:15:34]wFMCommunicate OK [17:15:34]SAM_PROTO_GetFieldsCounters done [17:15:34]requested_item shift.num is exist - process it [17:15:34]requested_item shift.opened is exist - process it [17:15:34]req_shift_opened [17:15:34]FM_GetShiftState [17:15:34]SAM_PROTO_GetShiftState [17:15:34]wFMCommunicate request_size=4 [17:15:34]MH_SAM_APDU [17:15:34]CAPDU: 80 13 01 00 [17:15:34]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:34]Read from MH i2c: E2 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 0E 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 89 [17:15:34]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:15:34]wFMCommunicate OK [17:15:34]SAM_PROTO_GetShiftState done [17:15:34]FM_GetShiftState done [17:15:34]req_shift_opened done [17:15:34]requested_item shift.open_date is exist - process it [17:15:34]req_shift_open_date [17:15:34]req_shift_open_date done [17:15:34]produce_requested_data done [17:15:34]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7748,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [17:15:34]process_action_free close_receipt [17:15:34]json_value_free [17:15:34]json_value_free done [17:15:34]process_json_proto returns [17:15:34]Send response to host [17:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7748,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [17:15:34]free response buf [17:15:34]execute_script done [17:15:34]execute_script returns [17:15:34]free content buf [17:15:34]Sock 9.Close socket [17:15:34]Sock 9.Thread stoped [17:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 0B 15 47 00 86 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 32 30 39 34 32 35 38 10 04 04 00 44 1E 00 00 F4 03 04 00 73 FB EF 66 B6 04 01 00 00 3C 0B 76 1D 92 EB 5F D1 [17:15:35]CommunicateWithHost err = 0 [17:15:35]CheckOFDResponse [17:15:35]1017 (14) - 77093643461234 [17:15:35]1041 (16) - 0000000002094258 [17:15:35]1040 (4) - 7748 [17:15:35]1012 (4) - 22.09.2024 11:11 [17:15:35]1206 (1) - 0 [17:15:35]OFD Sender: Remove packet 7748 [17:15:35]ProducePacketName [17:15:35]name=ofd_packets/00007748 [17:15:35]NVStorageDeleteData [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:17]recv_with_timeout no data received [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]recv_with_timeout no data received [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:09]recv_with_timeout no data received [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:37]recv_with_timeout no data received [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:52]recv_with_timeout no data received [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:21]recv_with_timeout no data received [17:21:25]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: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:32]recv_with_timeout no data received [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:24:57]recv_with_timeout no data received [17:25:01]OFD Sender: No OFD packet to send [17:25:04]accept exits with 7 [17:25:04]New connection [17:25:04]New thread 3067166052 created [17:25:04]Thread 3067022692 joined [17:25:04]Waiting for new connection... [17:25:04] Sock 7.Parse request [17:25:04]Sock 7.Check first char [17:25:04]Sock 7.First char is OK [17:25:04]request: POST /json_proto HTTP/1.0 [17:25:04]Method: POST [17:25:04]URL: /json_proto [17:25:04]Method is POST - this is cgi request [17:25:04]url: /json_proto [17:25:04]query_string will be loaded in cgi processing [17:25:04]execute_cgi json_proto POST (null) [17:25:04]execute_cgi path=json_proto method=POST [17:25:04]POST find Content-Length [17:25:04]Host: 172.17.47.195:8080 [17:25:04]Content-Length: 677 [17:25:04]Content-Type: application/json [17:25:04] [17:25:04]POST finish read [17:25:04]Found Content-Length = 677 [17:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:04]execute_script... [17:25: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)871933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:04]POST & json_proto [17:25:04]process_json_proto [17:25:04]json parsed OK: [17:25:04]protocol is kg_v1.0 [17:25:04]action value=close_receipt [17:25:04]process_action close_receipt [17:25:04]cmd_close_receipt [17:25:04]MH_GetDate [17:25:04]Write to MH i2c: F0 00 00 49 01 39 [17:25:04]Write i2c OK [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: F0 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: F0 09 00 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: F0 09 00 49 01 00 F1 52 F0 66 96 2E 95 66 9A [17:25:04]GetLastDocTimeStamp 1727025332 [17:25:04]current date 1727025905 [17:25:04]FM_GetShiftState [17:25:04]SAM_PROTO_GetShiftState [17:25:04]wFMCommunicate request_size=4 [17:25:04]MH_SAM_APDU [17:25:04]CAPDU: 80 13 01 00 [17:25:04]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [17:25:04]Write i2c OK [17:25:04]MH_I2C_Read... [17:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:04]Read from MH i2c: E2 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: E2 0E 00 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 8B [17:25:04]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:25:04]wFMCommunicate OK [17:25:04]SAM_PROTO_GetShiftState done [17:25:04]FM_GetShiftState done [17:25:04]opened in 1726964224 [17:25:04]opened+sec_in_day 1727050624 [17:25:04]quantity*price = 40002 [17:25:04]sum+1 = 40003 [17:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 147 22.09.2024 17:25 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7749 ФПД: 108659807033490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172505&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7749&fm=108659807033490&tin=02508201610067®Number=0000000000190446&sum=40000 [17:25:05]StoreToDocumentArchive [17:25:05]shift 70 fd 7749 [17:25:05]save to /storage/0070/doc_00007749 [17:25:05]save last doc name /storage/0070/doc_00007749 to /storage/kkm_last_doc_name [17:25:05]save OK [17:25:05]Clear old archive folders... [17:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:05]tlvbuf is 016A53D0 [17:25:05]SAM_PROTO_ClearQueue [17:25:05]wFMCommunicate request_size=4 [17:25:05]MH_SAM_APDU [17:25:05]CAPDU: 80 09 00 00 [17:25:05]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [17:25:05]Write i2c OK [17:25:05]MH_I2C_Read... [17:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:05]Read from MH i2c: E2 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 03 00 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [17:25:05]RAPDU: 90 00 [17:25:05]wFMCommunicate OK [17:25:05]SAM_PROTO_ClearQueue done [17:25:05]KKMCreateOFDPacket [17:25:05]OFDProtocolAddRootSTLVToBuf [17:25:05]FM_MakeSignedData [17:25:05]FM_MakeSignedData [17:25:05]SAM_PROTO_SignData [17:25:05]wFMCommunicate request_size=4 [17:25:05]MH_SAM_APDU [17:25:05]CAPDU: 80 0D 01 02 [17:25:05]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [17:25:05]Write i2c OK [17:25:05]MH_I2C_Read... [17:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:05]Read from MH i2c: E2 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 03 00 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [17:25:05]RAPDU: 90 00 [17:25:05]wFMCommunicate OK [17:25:05]wFMCommunicate request_size=255 [17:25:05]MH_SAM_APDU [17:25:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F1 52 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 45 1E 00 00 35 04 06 00 62 [17:25:05]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F1 52 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 45 1E 00 00 35 04 06 00 62 00 00 6A [17:25:05]Write i2c OK [17:25:05]MH_I2C_Read... [17:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:05]Read from MH i2c: E2 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 03 00 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [17:25:05]RAPDU: 90 00 [17:25:05]wFMCommunicate OK [17:25:05]wFMCommunicate request_size=10 [17:25:05]MH_SAM_APDU [17:25:05]CAPDU: 80 0D 02 02 05 D3 55 33 18 92 [17:25:05]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 D3 55 33 18 92 00 00 E4 [17:25:05]Write i2c OK [17:25:05]MH_I2C_Read... [17:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:05]Read from MH i2c: E2 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 03 00 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [17:25:05]RAPDU: 90 00 [17:25:05]wFMCommunicate OK [17:25:05]wFMCommunicate request_size=4 [17:25:05]MH_SAM_APDU [17:25:05]CAPDU: 80 0D 03 02 [17:25:05]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [17:25:05]Write i2c OK [17:25:05]MH_I2C_Read... [17:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:05]Read from MH i2c: E2 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 0B 00 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 0B 00 5B 01 00 53 C3 E7 CD 21 A2 63 3A 90 00 02 [17:25:05]RAPDU: 53 C3 E7 CD 21 A2 63 3A 90 00 [17:25:05]wFMCommunicate OK [17:25:05]SAM_PROTO_SignData done [17:25:05]FM_MakeSignedData done [17:25:05]CreateOFDProtocolMessage [17:25:05]wFMCommunicate request_size=4 [17:25:05]MH_SAM_APDU [17:25:05]CAPDU: 80 11 00 00 [17:25:05]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [17:25:05]Write i2c OK [17:25:05]MH_I2C_Read... [17:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:06]Read from MH i2c: E2 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 17 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 28 [17:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:25:06]wFMCommunicate OK [17:25:06]CreateOFDProtocolMessage done [17:25:06]OFDSenderStorePacket 7749 [17:25:06]StoreOFDPacket docnum=7749 [17:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 C4 6E 07 01 AA 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F1 52 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 45 1E 00 00 35 04 06 00 62 D3 55 33 18 92 53 C3 E7 CD 21 A2 63 3A [17:25:06]CheckFolder [17:25:06]dirname=/storage/ofd_packets [17:25:06]CheckFolder done [17:25:06]ProducePacketName [17:25:06]name=ofd_packets/00007749 [17:25:06]NVStorageSaveData ofd_packets/00007749 [17:25:06]File name is /storage/ofd_packets/00007749 [17:25:06]Write 301 bytes [17:25:06]NVStorageSaveData done [17:25:06]OFDSenderStorePacket done [17:25:06]KKMCreateOFDPacket done [17:25:06]NVStorageSaveData kkm_last_timestamp [17:25:06]File name is /storage/kkm_last_timestamp [17:25:06]Write 4 bytes [17:25:06]NVStorageSaveData done [17:25:06]ExternCall_PrintAddStr [17:25:06]wPrintStart [17:25:06]Write to MH i2c: 01 00 00 5D 01 5E [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: 01 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: 01 07 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [17:25:06]RasterBufferAndPrint [17:25:06]line Счет N : (1)871933 [17:25:06]line ИНН: 02508201610067 [17:25:06]line Контрольно-Кассовый Чек [17:25:06]line ПРОДАЖА [17:25:06]line ТРК (МРК, ГНК) : 43 [17:25:06]line Товар: 2710124130 [17:25:06]line Аи-92-К-5 [17:25:06]line 5.900 * 67.80 [17:25:06]line = 400.02 [17:25:06]line НДС 12% НСП 1% [17:25:06]line > о реализуемом товаре [17:25:06]line ОКРУГЛЕНИЕ: -0.02 [17:25:06]line ИТОГО: 400.00 [17:25:06]line Внесено: 400.00 [17:25:06]line СДАЧА: 0.00 [17:25:06]line НСП 1% : 3.54 [17:25:06]line НДС 12% : 42.48 [17:25:06]line Наличными: 400.00 [17:25:06]line Безнал.: 0.00 [17:25:06]line Место: АЗС № 137 "Партнер Нефть" [17:25:06]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [17:25:06]line СНО: Общий режим [17:25:06]line Чек 147 22.09.2024 17:25 [17:25:06]line Смена: 70 ФФД: 1.0 [17:25:06]line ЗНМ: 0300000041 [17:25:06]line РНМ: 0000000000190446 [17:25:06]line Версия ККМ: v1.0 [17:25:06]line ФМ: 0000000002094258 [17:25:06]line ФД: 7749 [17:25:06]line ФПД: 108659807033490 [17:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172505&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7749&fm=108659807033490&tin=02508201610067®Number=0000000000190446&sum=40000 [17:25:06]OFD Sender: Processing packet 7749 [packets to send 51, broken 50] [17:25:06]ProducePacketName [17:25:06]name=ofd_packets/00007749 [17:25:06]OFD Sender: To server: pG, [17:25:06]CommunicateWithHost lk.salyk.kg:30040 [17:25:06]ConnectInit lk.salyk.kg [17:25:06]written 0, free lines is 4095 [17:25:06]Write to MH i2c: 01 00 00 88 01 89 [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: 01 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: 01 07 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 F0 0C 8C [17:25:06]RasterBufferAndPrint [17:25:06]line [17:25:06]line [17:25:06]line [17:25:06]line [17:25:06]line [17:25:06]written 0, free lines is 3318 [17:25:06]MH_Cut [17:25:06]Write to MH i2c: D1 01 00 8F 01 01 62 [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: D1 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: D1 01 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: D1 01 00 8F 01 00 61 [17:25:06]Write to MH i2c: 01 00 00 90 01 91 [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:07]*** Cut start [17:25:07]*** Purtial cut [17:25:07]*** Stage 1: CUTSNS_PIN = 1 [17:25:07]Read from MH i2c: 01 [17:25:07]MH_I2C_Read... [17:25:07]*** Stop cut motor [17:25:07]*** Cut end [17:25:07]Read from MH i2c: 01 07 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [17:25:07]process_action close_receipt done [17:25:07]requested_data is exist [17:25:07]produce_requested_data [17:25:07]requested_item fm.sn is exist - process it [17:25:07]wFMCommunicate request_size=4 [17:25:07]MH_SAM_APDU [17:25:07]CAPDU: 80 11 00 00 [17:25:07]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:07]Read from MH i2c: E2 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 17 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5D [17:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:25:07]wFMCommunicate OK [17:25:07]requested_item fd.num is exist - process it [17:25:07]SAM_PROTO_GetFieldsCounters [17:25:07]wFMCommunicate request_size=4 [17:25:07]MH_SAM_APDU [17:25:07]CAPDU: 80 13 00 00 [17:25:07]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:07]Read from MH i2c: E2 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 62 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 45 1E 00 00 0E 04 04 00 46 00 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 8F [17:25:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 45 1E 00 00 0E 04 04 00 46 00 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 [17:25:08]wFMCommunicate OK [17:25:08]SAM_PROTO_GetFieldsCounters done [17:25:08]requested_item shift.num is exist - process it [17:25:08]requested_item shift.opened is exist - process it [17:25:08]req_shift_opened [17:25:08]FM_GetShiftState [17:25:08]SAM_PROTO_GetShiftState [17:25:08]wFMCommunicate request_size=4 [17:25:08]MH_SAM_APDU [17:25:08]CAPDU: 80 13 01 00 [17:25:08]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [17:25:08]Write i2c OK [17:25:08]MH_I2C_Read... [17:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:08]Read from MH i2c: E2 [17:25:08]MH_I2C_Read... [17:25:08]Read from MH i2c: E2 0E 00 [17:25:08]MH_I2C_Read... [17:25:08]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D4 [17:25:08]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:25:08]wFMCommunicate OK [17:25:08]SAM_PROTO_GetShiftState done [17:25:08]FM_GetShiftState done [17:25:08]req_shift_opened done [17:25:08]requested_item shift.open_date is exist - process it [17:25:08]req_shift_open_date [17:25:08]req_shift_open_date done [17:25:08]produce_requested_data done [17:25:08]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7749,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [17:25:08]process_action_free close_receipt [17:25:08]json_value_free [17:25:08]json_value_free done [17:25:08]process_json_proto returns [17:25:08]Send response to host [17:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7749,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [17:25:08]free response buf [17:25:08]execute_script done [17:25:08]execute_script returns [17:25:08]free content buf [17:25:08]Sock 7.Close socket [17:25:08]Sock 7.Thread stoped [17:25:13]Connected sock=11 [17:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 C4 6E 07 01 AA 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F1 52 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 45 1E 00 00 35 04 06 00 62 D3 55 33 18 92 53 C3 E7 CD 21 A2 63 3A [17:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 BB AF 47 00 08 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 32 30 39 34 32 35 38 10 04 04 00 45 1E 00 00 F4 03 04 00 B7 FD EF 66 B6 04 01 00 00 66 2F C6 1F F7 07 F1 E6 [17:25:16]CommunicateWithHost err = 0 [17:25:16]CheckOFDResponse [17:25:16]1017 (14) - 77093643461234 [17:25:16]1041 (16) - 0000000002094258 [17:25:16]1040 (4) - 7749 [17:25:16]1012 (4) - 22.09.2024 11:21 [17:25:16]1206 (1) - 0 [17:25:16]OFD Sender: Remove packet 7749 [17:25:16]ProducePacketName [17:25:16]name=ofd_packets/00007749 [17:25:16]NVStorageDeleteData [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:25]recv_with_timeout no data received [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:37]recv_with_timeout no data received [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:51]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:22]recv_with_timeout no data received [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:36]accept exits with 10 [17:26:36]New connection [17:26:36]New thread 3067022692 created [17:26:36]Thread 3067166052 joined [17:26:36]Waiting for new connection... [17:26:36] Sock 10.Parse request [17:26:36]Sock 10.Check first char [17:26:36]Sock 10.First char is OK [17:26:36]request: POST /json_proto HTTP/1.0 [17:26:36]Method: POST [17:26:36]URL: /json_proto [17:26:36]Method is POST - this is cgi request [17:26:36]url: /json_proto [17:26:36]query_string will be loaded in cgi processing [17:26:36]execute_cgi json_proto POST (null) [17:26:36]execute_cgi path=json_proto method=POST [17:26:36]POST find Content-Length [17:26:36]Host: 172.17.47.195:8080 [17:26:36]Content-Length: 803 [17:26:36]Content-Type: application/json [17:26:36] [17:26:36]POST finish read [17:26:36]Found Content-Length = 803 [17:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871935", "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" : 67.80, "quantity" : 20.000, "sum" : 1356.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" : 1356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:36]execute_script... [17:26: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)871935", "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" : 67.80, "quantity" : 20.000, "sum" : 1356.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" : 1356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:36]POST & json_proto [17:26:36]process_json_proto [17:26:36]json parsed OK: [17:26:36]protocol is kg_v1.0 [17:26:36]action value=close_receipt [17:26:36]process_action close_receipt [17:26:36]cmd_close_receipt [17:26:36]MH_GetDate [17:26:36]Write to MH i2c: F0 00 00 94 01 84 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: F0 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: F0 09 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: F0 09 00 94 01 00 4D 53 F0 66 96 2E 95 66 42 [17:26:36]GetLastDocTimeStamp 1727025905 [17:26:36]current date 1727025997 [17:26:36]FM_GetShiftState [17:26:36]SAM_PROTO_GetShiftState [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 13 01 00 [17:26:36]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0E 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 D6 [17:26:36]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_GetShiftState done [17:26:36]FM_GetShiftState done [17:26:36]opened in 1726964224 [17:26:36]opened+sec_in_day 1727050624 [17:26:36]quantity*price = 135600 [17:26:36]sum+1 = 135601 [17:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1356.00 НСП 1% : 12.00 НДС 12% : 144.00 Наличными: 0.00 Безнал.: 1356.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 148 22.09.2024 17:26 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7750 ФПД: 36549443986497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172637&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7750&fm=36549443986497&tin=02508201610067®Number=0000000000190446&sum=135600 [17:26:37]StoreToDocumentArchive [17:26:37]shift 70 fd 7750 [17:26:37]save to /storage/0070/doc_00007750 [17:26:37]save last doc name /storage/0070/doc_00007750 to /storage/kkm_last_doc_name [17:26:37]save OK [17:26:37]Clear old archive folders... [17:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:37]tlvbuf is 016DC9B0 [17:26:37]SAM_PROTO_ClearQueue [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 09 00 00 [17:26:37]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_ClearQueue done [17:26:37]KKMCreateOFDPacket [17:26:37]OFDProtocolAddRootSTLVToBuf [17:26:37]FM_MakeSignedData [17:26:37]FM_MakeSignedData [17:26:37]SAM_PROTO_SignData [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 01 02 [17:26:37]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=255 [17:26:37]MH_SAM_APDU [17:26: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 20 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B0 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 11 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 4D 53 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 46 1E 00 00 35 04 06 00 21 [17:26:37]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B0 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 11 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 4D 53 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 46 1E 00 00 35 04 06 00 21 00 00 F2 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=10 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 02 02 05 3D D4 A0 24 41 [17:26:37]Write to MH i2c: E2 0D 00 A5 01 80 0D 02 02 05 00 3D D4 A0 24 41 00 00 40 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 03 02 [17:26:37]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0B 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0B 00 A6 01 00 96 B5 43 EF 08 53 5A 26 90 00 7B [17:26:37]RAPDU: 96 B5 43 EF 08 53 5A 26 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_SignData done [17:26:37]FM_MakeSignedData done [17:26:37]CreateOFDProtocolMessage [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 11 00 00 [17:26:37]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 73 [17:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:26:37]wFMCommunicate OK [17:26:37]CreateOFDProtocolMessage done [17:26:37]OFDSenderStorePacket 7750 [17:26:37]StoreOFDPacket docnum=7750 [17:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 70 29 07 01 02 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 20 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B0 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 11 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 4D 53 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 46 1E 00 00 35 04 06 00 21 3D D4 A0 24 41 96 B5 43 EF 08 53 5A 26 [17:26:37]CheckFolder [17:26:37]dirname=/storage/ofd_packets [17:26:37]CheckFolder done [17:26:37]ProducePacketName [17:26:37]name=ofd_packets/00007750 [17:26:37]NVStorageSaveData ofd_packets/00007750 [17:26:37]File name is /storage/ofd_packets/00007750 [17:26:37]Write 301 bytes [17:26:37]NVStorageSaveData done [17:26:37]OFDSenderStorePacket done [17:26:37]KKMCreateOFDPacket done [17:26:37]NVStorageSaveData kkm_last_timestamp [17:26:37]File name is /storage/kkm_last_timestamp [17:26:37]Write 4 bytes [17:26:37]NVStorageSaveData done [17:26:37]ExternCall_PrintAddStr [17:26:37]wPrintStart [17:26:37]Write to MH i2c: 01 00 00 A8 01 A9 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [17:26:37]RasterBufferAndPrint [17:26:37]line Счет N : (1)871935 [17:26:37]line ИНН: 02508201610067 [17:26:37]line Контрольно-Кассовый Чек [17:26:37]line ПРОДАЖА [17:26:37]line ТРК (МРК, ГНК) : 53 [17:26:37]line Товар: 2710124130 [17:26:37]line Аи-92-К-5 [17:26:37]line 20.000 * 67.80 [17:26:37]line = 1356.00 [17:26:37]line НДС 12% НСП 1% [17:26:37]line > о реализуемом товаре [17:26:37]line ИТОГО: 1356.00 [17:26:37]line НСП 1% : 12.00 [17:26:37]line НДС 12% : 144.00 [17:26:37]line Наличными: 0.00 [17:26:37]line Безнал.: 1356.00 [17:26:37]line Место: АЗС № 137 "Партнер Нефть" [17:26:37]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [17:26:37]line СНО: Общий режим [17:26:37]line Чек 148 22.09.2024 17:26 [17:26:37]line Смена: 70 ФФД: 1.0 [17:26:37]line ЗНМ: 0300000041 [17:26:37]line РНМ: 0000000000190446 [17:26:37]line Версия ККМ: v1.0 [17:26:38]line Платежная система: O! деньги [17:26:38]line ФМ: 0000000002094258 [17:26:38]line ФД: 7750 [17:26:38]line ФПД: 36549443986497 [17:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172637&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7750&fm=36549443986497&tin=02508201610067®Number=0000000000190446&sum=135600 [17:26:38]OFD Sender: Processing packet 7750 [packets to send 51, broken 50] [17:26:38]ProducePacketName [17:26:38]name=ofd_packets/00007750 [17:26:38]OFD Sender: To server: pG, [17:26:38]CommunicateWithHost lk.salyk.kg:30040 [17:26:38]ConnectInit lk.salyk.kg [17:26:38]written 0, free lines is 4095 [17:26:38]Write to MH i2c: 01 00 00 D2 01 D3 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 07 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 02 0D E9 [17:26:38]RasterBufferAndPrint [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]written 0, free lines is 3336 [17:26:38]MH_Cut [17:26:38]Write to MH i2c: D1 01 00 D9 01 01 AC [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 01 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 01 00 D9 01 00 AB [17:26:38]Write to MH i2c: 01 00 00 DA 01 DB [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:39]*** Cut start [17:26:39]*** Purtial cut [17:26:39]*** Stage 1: CUTSNS_PIN = 1 [17:26:39]Read from MH i2c: 01 [17:26:39]MH_I2C_Read... [17:26:39]*** Stop cut motor [17:26:39]*** Cut end [17:26:39]Read from MH i2c: 01 07 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [17:26:39]process_action close_receipt done [17:26:39]requested_data is exist [17:26:39]produce_requested_data [17:26:39]requested_item fm.sn is exist - process it [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 11 00 00 [17:26:39]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A7 [17:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:26:39]wFMCommunicate OK [17:26:39]requested_item fd.num is exist - process it [17:26:39]SAM_PROTO_GetFieldsCounters [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 13 00 00 [17:26:39]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 62 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 46 1E 00 00 0E 04 04 00 46 00 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 DD [17:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 46 1E 00 00 0E 04 04 00 46 00 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 [17:26:39]wFMCommunicate OK [17:26:39]SAM_PROTO_GetFieldsCounters done [17:26:39]requested_item shift.num is exist - process it [17:26:39]requested_item shift.opened is exist - process it [17:26:39]req_shift_opened [17:26:39]FM_GetShiftState [17:26:39]SAM_PROTO_GetShiftState [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 13 01 00 [17:26:39]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 0E 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 1E [17:26:39]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:26:39]wFMCommunicate OK [17:26:39]SAM_PROTO_GetShiftState done [17:26:39]FM_GetShiftState done [17:26:39]req_shift_opened done [17:26:39]requested_item shift.open_date is exist - process it [17:26:39]req_shift_open_date [17:26:39]req_shift_open_date done [17:26:39]produce_requested_data done [17:26:39]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7750,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [17:26:39]process_action_free close_receipt [17:26:39]json_value_free [17:26:39]json_value_free done [17:26:39]process_json_proto returns [17:26:39]Send response to host [17:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7750,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [17:26:39]free response buf [17:26:39]execute_script done [17:26:39]execute_script returns [17:26:39]free content buf [17:26:39]Sock 10.Close socket [17:26:39]Sock 10.Thread stoped [17:26:43]ConnectInit Can't take IP for lk.salyk.kg [17:26:43]CommunicateWithHost connect error [17:26:43]CommunicateWithHost err = -1 [17:26:43]OFD Sender: Server communicate error [17:26:48]OFD Sender: Processing packet 7750 [packets to send 51, broken 50] [17:26:48]ProducePacketName [17:26:48]name=ofd_packets/00007750 [17:26:48]OFD Sender: To server: pG, [17:26:48]CommunicateWithHost lk.salyk.kg:30040 [17:26:48]ConnectInit lk.salyk.kg [17:26:55]recv_with_timeout no data received [17:27:24]Connected sock=7 [17:27:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 70 29 07 01 02 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 20 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B0 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 11 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 4D 53 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 46 1E 00 00 35 04 06 00 21 3D D4 A0 24 41 96 B5 43 EF 08 53 5A 26 [17:27:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 33 05 47 00 E2 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 32 30 39 34 32 35 38 10 04 04 00 46 1E 00 00 F4 03 04 00 3A FE EF 66 B6 04 01 00 00 8B 24 C5 5E 79 6A D4 23 [17:27:26]CommunicateWithHost err = 0 [17:27:26]CheckOFDResponse [17:27:26]1017 (14) - 77093643461234 [17:27:26]1041 (16) - 0000000002094258 [17:27:26]1040 (4) - 7750 [17:27:26]1012 (4) - 22.09.2024 11:23 [17:27:26]1206 (1) - 0 [17:27:26]OFD Sender: Remove packet 7750 [17:27:26]ProducePacketName [17:27:26]name=ofd_packets/00007750 [17:27:26]NVStorageDeleteData [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:09]recv_with_timeout no data received [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:29:57]recv_with_timeout no data received [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:09]accept exits with 9 [17:30:09]New connection [17:30:09]New thread 3067166052 created [17:30:09]Thread 3067022692 joined [17:30:09]Waiting for new connection... [17:30:09] Sock 9.Parse request [17:30:09]Sock 9.Check first char [17:30:09]Sock 9.First char is OK [17:30:09]request: POST /json_proto HTTP/1.0 [17:30:09]Method: POST [17:30:09]URL: /json_proto [17:30:09]Method is POST - this is cgi request [17:30:09]url: /json_proto [17:30:09]query_string will be loaded in cgi processing [17:30:09]execute_cgi json_proto POST (null) [17:30:09]execute_cgi path=json_proto method=POST [17:30:09]POST find Content-Length [17:30:09]Host: 172.17.47.195:8080 [17:30:09]Content-Length: 803 [17:30:09]Content-Type: application/json [17:30:09] [17:30:09]POST finish read [17:30:09]Found Content-Length = 803 [17:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871936", "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" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:09]execute_script... [17:30: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)871936", "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" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:09]POST & json_proto [17:30:09]process_json_proto [17:30:09]json parsed OK: [17:30:09]protocol is kg_v1.0 [17:30:09]action value=close_receipt [17:30:09]process_action close_receipt [17:30:09]cmd_close_receipt [17:30:09]MH_GetDate [17:30:09]Write to MH i2c: F0 00 00 DE 01 CE [17:30:09]Write i2c OK [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: F0 [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: F0 09 00 [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: F0 09 00 DE 01 00 22 54 F0 66 96 2E 95 66 62 [17:30:09]GetLastDocTimeStamp 1727025997 [17:30:09]current date 1727026210 [17:30:09]FM_GetShiftState [17:30:09]SAM_PROTO_GetShiftState [17:30:09]wFMCommunicate request_size=4 [17:30:09]MH_SAM_APDU [17:30:09]CAPDU: 80 13 01 00 [17:30:09]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [17:30:09]Write i2c OK [17:30:09]MH_I2C_Read... [17:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:09]Read from MH i2c: E2 [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: E2 0E 00 [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 20 [17:30:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:30:09]wFMCommunicate OK [17:30:09]SAM_PROTO_GetShiftState done [17:30:09]FM_GetShiftState done [17:30:09]opened in 1726964224 [17:30:09]opened+sec_in_day 1727050624 [17:30:09]quantity*price = 150041 [17:30:09]sum+1 = 150042 [17:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 149 22.09.2024 17:30 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7751 ФПД: 67839636285595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173010&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7751&fm=67839636285595&tin=02508201610067®Number=0000000000190446&sum=150041 [17:30:10]StoreToDocumentArchive [17:30:10]shift 70 fd 7751 [17:30:10]save to /storage/0070/doc_00007751 [17:30:10]save last doc name /storage/0070/doc_00007751 to /storage/kkm_last_doc_name [17:30:10]save OK [17:30:10]Clear old archive folders... [17:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:10]tlvbuf is 016D49B0 [17:30:10]SAM_PROTO_ClearQueue [17:30:10]wFMCommunicate request_size=4 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 09 00 00 [17:30:10]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:10]Read from MH i2c: E2 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [17:30:10]RAPDU: 90 00 [17:30:10]wFMCommunicate OK [17:30:10]SAM_PROTO_ClearQueue done [17:30:10]KKMCreateOFDPacket [17:30:10]OFDProtocolAddRootSTLVToBuf [17:30:10]FM_MakeSignedData [17:30:10]FM_MakeSignedData [17:30:10]SAM_PROTO_SignData [17:30:10]wFMCommunicate request_size=4 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 0D 01 02 [17:30:10]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:10]Read from MH i2c: E2 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [17:30:10]RAPDU: 90 00 [17:30:10]wFMCommunicate OK [17:30:10]wFMCommunicate request_size=255 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 22 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 47 1E 00 00 35 04 06 00 3D [17:30:10]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 22 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 47 1E 00 00 35 04 06 00 3D 00 00 F5 [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:10]Read from MH i2c: E2 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [17:30:10]RAPDU: 90 00 [17:30:10]wFMCommunicate OK [17:30:10]wFMCommunicate request_size=10 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 0D 02 02 05 B3 25 6C 28 9B [17:30:10]Write to MH i2c: E2 0D 00 EF 01 80 0D 02 02 05 00 B3 25 6C 28 9B 00 00 7B [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:11]Read from MH i2c: E2 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 03 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [17:30:11]RAPDU: 90 00 [17:30:11]wFMCommunicate OK [17:30:11]wFMCommunicate request_size=4 [17:30:11]MH_SAM_APDU [17:30:11]CAPDU: 80 0D 03 02 [17:30:11]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:11]Read from MH i2c: E2 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 0B 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 0B 00 F0 01 00 20 E2 15 5A 88 F0 74 7F 90 00 49 [17:30:11]RAPDU: 20 E2 15 5A 88 F0 74 7F 90 00 [17:30:11]wFMCommunicate OK [17:30:11]SAM_PROTO_SignData done [17:30:11]FM_MakeSignedData done [17:30:11]CreateOFDProtocolMessage [17:30:11]wFMCommunicate request_size=4 [17:30:11]MH_SAM_APDU [17:30:11]CAPDU: 80 11 00 00 [17:30:11]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:11]Read from MH i2c: E2 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 17 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 BD [17:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:30:11]wFMCommunicate OK [17:30:11]CreateOFDProtocolMessage done [17:30:11]OFDSenderStorePacket 7751 [17:30:11]StoreOFDPacket docnum=7751 [17:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 57 58 07 01 A2 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 22 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 47 1E 00 00 35 04 06 00 3D B3 25 6C 28 9B 20 E2 15 5A 88 F0 74 7F [17:30:11]CheckFolder [17:30:11]dirname=/storage/ofd_packets [17:30:11]CheckFolder done [17:30:11]ProducePacketName [17:30:11]name=ofd_packets/00007751 [17:30:11]NVStorageSaveData ofd_packets/00007751 [17:30:11]File name is /storage/ofd_packets/00007751 [17:30:11]Write 301 bytes [17:30:11]NVStorageSaveData done [17:30:11]OFDSenderStorePacket done [17:30:11]KKMCreateOFDPacket done [17:30:11]NVStorageSaveData kkm_last_timestamp [17:30:11]File name is /storage/kkm_last_timestamp [17:30:11]Write 4 bytes [17:30:11]NVStorageSaveData done [17:30:11]ExternCall_PrintAddStr [17:30:11]wPrintStart [17:30:11]Write to MH i2c: 01 00 00 F2 01 F3 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 07 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [17:30:11]RasterBufferAndPrint [17:30:11]line Счет N : (1)871936 [17:30:11]line ИНН: 02508201610067 [17:30:11]line Контрольно-Кассовый Чек [17:30:11]line ПРОДАЖА [17:30:11]line ТРК (МРК, ГНК) : 63 [17:30:11]line Товар: 2710124130 [17:30:11]line Аи-92-К-5 [17:30:11]line 22.130 * 67.80 [17:30:11]line = 1500.41 [17:30:11]line НДС 12% НСП 1% [17:30:11]line > о реализуемом товаре [17:30:11]line ИТОГО: 1500.41 [17:30:11]line НСП 1% : 13.28 [17:30:11]line НДС 12% : 159.34 [17:30:11]line Наличными: 0.00 [17:30:11]line Безнал.: 1500.41 [17:30:11]line Место: АЗС № 137 "Партнер Нефть" [17:30:11]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [17:30:11]line СНО: Общий режим [17:30:11]line Чек 149 22.09.2024 17:30 [17:30:11]line Смена: 70 ФФД: 1.0 [17:30:11]line ЗНМ: 0300000041 [17:30:11]line РНМ: 0000000000190446 [17:30:11]line Версия ККМ: v1.0 [17:30:11]line Платежная система: O! деньги [17:30:11]line ФМ: 0000000002094258 [17:30:11]line ФД: 7751 [17:30:11]line ФПД: 67839636285595 [17:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173010&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7751&fm=67839636285595&tin=02508201610067®Number=0000000000190446&sum=150041 [17:30:11]OFD Sender: Processing packet 7751 [packets to send 51, broken 50] [17:30:11]ProducePacketName [17:30:11]name=ofd_packets/00007751 [17:30:11]OFD Sender: To server: pG, [17:30:11]CommunicateWithHost lk.salyk.kg:30040 [17:30:11]ConnectInit lk.salyk.kg [17:30:11]written 0, free lines is 4095 [17:30:11]Write to MH i2c: 01 00 00 1C 02 1E [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 07 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 04 0D 36 [17:30:11]RasterBufferAndPrint [17:30:11]line [17:30:11]line [17:30:11]line [17:30:11]line [17:30:11]line [17:30:11]written 0, free lines is 3338 [17:30:11]MH_Cut [17:30:11]Write to MH i2c: D1 01 00 23 02 01 F7 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: D1 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: D1 01 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: D1 01 00 23 02 00 F6 [17:30:11]Write to MH i2c: 01 00 00 24 02 26 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:12]*** Cut start [17:30:12]*** Purtial cut [17:30:12]*** Stage 1: CUTSNS_PIN = 1 [17:30:12]Read from MH i2c: 01 [17:30:12]MH_I2C_Read... [17:30:12]*** Stop cut motor [17:30:12]*** Cut end [17:30:12]Read from MH i2c: 01 07 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [17:30:12]process_action close_receipt done [17:30:12]requested_data is exist [17:30:12]produce_requested_data [17:30:12]requested_item fm.sn is exist - process it [17:30:12]wFMCommunicate request_size=4 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 11 00 00 [17:30:12]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 17 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 F2 [17:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:30:12]wFMCommunicate OK [17:30:12]requested_item fd.num is exist - process it [17:30:12]SAM_PROTO_GetFieldsCounters [17:30:12]wFMCommunicate request_size=4 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 13 00 00 [17:30:12]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:13]Read from MH i2c: E2 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: E2 62 00 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 47 1E 00 00 0E 04 04 00 46 00 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 2C [17:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 47 1E 00 00 0E 04 04 00 46 00 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 [17:30:13]wFMCommunicate OK [17:30:13]SAM_PROTO_GetFieldsCounters done [17:30:13]requested_item shift.num is exist - process it [17:30:13]requested_item shift.opened is exist - process it [17:30:13]req_shift_opened [17:30:13]FM_GetShiftState [17:30:13]SAM_PROTO_GetShiftState [17:30:13]wFMCommunicate request_size=4 [17:30:13]MH_SAM_APDU [17:30:13]CAPDU: 80 13 01 00 [17:30:13]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [17:30:13]Write i2c OK [17:30:13]MH_I2C_Read... [17:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:13]Read from MH i2c: E2 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: E2 0E 00 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 69 [17:30:13]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:30:13]wFMCommunicate OK [17:30:13]SAM_PROTO_GetShiftState done [17:30:13]FM_GetShiftState done [17:30:13]req_shift_opened done [17:30:13]requested_item shift.open_date is exist - process it [17:30:13]req_shift_open_date [17:30:13]req_shift_open_date done [17:30:13]produce_requested_data done [17:30:13]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7751,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [17:30:13]process_action_free close_receipt [17:30:13]json_value_free [17:30:13]json_value_free done [17:30:13]process_json_proto returns [17:30:13]Send response to host [17:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7751,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [17:30:13]free response buf [17:30:13]execute_script done [17:30:13]execute_script returns [17:30:13]free content buf [17:30:13]Sock 9.Close socket [17:30:13]Sock 9.Thread stoped [17:30:14]Connected sock=7 [17:30:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 57 58 07 01 A2 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 22 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 47 1E 00 00 35 04 06 00 3D B3 25 6C 28 9B 20 E2 15 5A 88 F0 74 7F [17:30:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 1F AD 47 00 A0 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 47 1E 00 00 F4 03 04 00 E4 FE EF 66 B6 04 01 00 00 9D 15 76 7E 89 27 ED 54 [17:30:15]CommunicateWithHost err = 0 [17:30:15]CheckOFDResponse [17:30:15]1017 (14) - 77093643461234 [17:30:15]1041 (16) - 0000000002094258 [17:30:15]1040 (4) - 7751 [17:30:15]1012 (4) - 22.09.2024 11:26 [17:30:15]1206 (1) - 0 [17:30:15]OFD Sender: Remove packet 7751 [17:30:15]ProducePacketName [17:30:15]name=ofd_packets/00007751 [17:30:15]NVStorageDeleteData [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:27]recv_with_timeout no data received [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:01]accept exits with 10 [17:32:01]New connection [17:32:01]New thread 3067022692 created [17:32:01]Thread 3067166052 joined [17:32:01]Waiting for new connection... [17:32:01] Sock 10.Parse request [17:32:01]Sock 10.Check first char [17:32:01]Sock 10.First char is OK [17:32:01]request: POST /json_proto HTTP/1.0 [17:32:01]Method: POST [17:32:01]URL: /json_proto [17:32:01]Method is POST - this is cgi request [17:32:01]url: /json_proto [17:32:01]query_string will be loaded in cgi processing [17:32:01]execute_cgi json_proto POST (null) [17:32:01]execute_cgi path=json_proto method=POST [17:32:01]POST find Content-Length [17:32:01]Host: 172.17.47.195:8080 [17:32:01]Content-Length: 687 [17:32:01]Content-Type: application/json [17:32:01] [17:32:01]POST finish read [17:32:01]Found Content-Length = 687 [17:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 29.810, "sum" : 2271.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2271.00, "total" : 2271.00, "payments": [ { "type": 0, "sum" : 2271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:01]execute_script... [17:32:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 29.810, "sum" : 2271.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2271.00, "total" : 2271.00, "payments": [ { "type": 0, "sum" : 2271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:01]POST & json_proto [17:32:01]process_json_proto [17:32:01]json parsed OK: [17:32:01]protocol is kg_v1.0 [17:32:01]action value=close_receipt [17:32:01]process_action close_receipt [17:32:01]cmd_close_receipt [17:32:01]MH_GetDate [17:32:01]Write to MH i2c: F0 00 00 28 02 19 [17:32:01]Write i2c OK [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: F0 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: F0 09 00 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: F0 09 00 28 02 00 92 54 F0 66 96 2E 95 66 1D [17:32:01]GetLastDocTimeStamp 1727026210 [17:32:01]current date 1727026322 [17:32:01]FM_GetShiftState [17:32:01]SAM_PROTO_GetShiftState [17:32:01]wFMCommunicate request_size=4 [17:32:01]MH_SAM_APDU [17:32:01]CAPDU: 80 13 01 00 [17:32:01]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [17:32:01]Write i2c OK [17:32:01]MH_I2C_Read... [17:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:01]Read from MH i2c: E2 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 0E 00 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 6B [17:32:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:32:01]wFMCommunicate OK [17:32:01]SAM_PROTO_GetShiftState done [17:32:01]FM_GetShiftState done [17:32:01]opened in 1726964224 [17:32:01]opened+sec_in_day 1727050624 [17:32:01]quantity*price = 227152 [17:32:01]sum+1 = 227153 [17:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 2271.00 Внесено: 2271.00 СДАЧА: 0.00 НСП 1% : 20.10 НДС 12% : 241.22 Наличными: 2271.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 150 22.09.2024 17:32 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7752 ФПД: 188898058508068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173202&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7752&fm=188898058508068&tin=02508201610067®Number=0000000000190446&sum=227100 [17:32:02]StoreToDocumentArchive [17:32:02]shift 70 fd 7752 [17:32:02]save to /storage/0070/doc_00007752 [17:32:02]save last doc name /storage/0070/doc_00007752 to /storage/kkm_last_doc_name [17:32:02]save OK [17:32:02]Clear old archive folders... [17:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:32:02]tlvbuf is 0163E350 [17:32:02]SAM_PROTO_ClearQueue [17:32:02]wFMCommunicate request_size=4 [17:32:02]MH_SAM_APDU [17:32:02]CAPDU: 80 09 00 00 [17:32:02]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [17:32:02]Write i2c OK [17:32:02]MH_I2C_Read... [17:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:02]Read from MH i2c: E2 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: E2 03 00 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [17:32:02]RAPDU: 90 00 [17:32:02]wFMCommunicate OK [17:32:02]SAM_PROTO_ClearQueue done [17:32:02]KKMCreateOFDPacket [17:32:02]OFDProtocolAddRootSTLVToBuf [17:32:02]FM_MakeSignedData [17:32:02]FM_MakeSignedData [17:32:02]SAM_PROTO_SignData [17:32:02]wFMCommunicate request_size=4 [17:32:02]MH_SAM_APDU [17:32:02]CAPDU: 80 0D 01 02 [17:32:02]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [17:32:02]Write i2c OK [17:32:02]MH_I2C_Read... [17:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:03]Read from MH i2c: E2 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 03 00 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [17:32:03]RAPDU: 90 00 [17:32:03]wFMCommunicate OK [17:32:03]wFMCommunicate request_size=255 [17:32:03]MH_SAM_APDU [17:32:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 72 74 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 77 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 77 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 5E 00 00 00 00 07 04 06 00 1C 77 03 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 92 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 48 1E 00 00 35 04 06 00 [17:32:03]Write to MH i2c: E2 02 01 38 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 34 FF 03 08 00 03 72 74 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 77 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 77 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 5E 00 00 00 00 07 04 06 00 1C 77 03 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 92 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 48 1E 00 00 35 04 06 00 00 00 A7 [17:32:03]Write i2c OK [17:32:03]MH_I2C_Read... [17:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:03]Read from MH i2c: E2 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 03 00 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [17:32:03]RAPDU: 90 00 [17:32:03]wFMCommunicate OK [17:32:03]wFMCommunicate request_size=11 [17:32:03]MH_SAM_APDU [17:32:03]CAPDU: 80 0D 02 02 06 AB CD 41 AD 17 24 [17:32:03]Write to MH i2c: E2 0E 00 39 02 80 0D 02 02 06 00 AB CD 41 AD 17 24 00 00 62 [17:32:03]Write i2c OK [17:32:03]MH_I2C_Read... [17:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:03]Read from MH i2c: E2 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 03 00 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [17:32:03]RAPDU: 90 00 [17:32:03]wFMCommunicate OK [17:32:03]wFMCommunicate request_size=4 [17:32:03]MH_SAM_APDU [17:32:03]CAPDU: 80 0D 03 02 [17:32:03]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [17:32:03]Write i2c OK [17:32:03]MH_I2C_Read... [17:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:03]Read from MH i2c: E2 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 0B 00 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 0B 00 3A 02 00 11 25 11 0E 97 46 FF 3B 90 00 24 [17:32:03]RAPDU: 11 25 11 0E 97 46 FF 3B 90 00 [17:32:03]wFMCommunicate OK [17:32:03]SAM_PROTO_SignData done [17:32:03]FM_MakeSignedData done [17:32:03]CreateOFDProtocolMessage [17:32:03]wFMCommunicate request_size=4 [17:32:03]MH_SAM_APDU [17:32:03]CAPDU: 80 11 00 00 [17:32:03]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [17:32:03]Write i2c OK [17:32:03]MH_I2C_Read... [17:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:03]Read from MH i2c: E2 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 17 00 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 08 [17:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:32:03]wFMCommunicate OK [17:32:03]CreateOFDProtocolMessage done [17:32:03]OFDSenderStorePacket 7752 [17:32:03]StoreOFDPacket docnum=7752 [17:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 9B 71 08 01 72 AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 72 74 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 77 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 77 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 5E 00 00 00 00 07 04 06 00 1C 77 03 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 92 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 48 1E 00 00 35 04 06 00 AB CD 41 AD 17 24 11 25 11 0E 97 46 FF 3B [17:32:03]CheckFolder [17:32:03]dirname=/storage/ofd_packets [17:32:03]CheckFolder done [17:32:03]ProducePacketName [17:32:03]name=ofd_packets/00007752 [17:32:03]NVStorageSaveData ofd_packets/00007752 [17:32:03]File name is /storage/ofd_packets/00007752 [17:32:03]Write 302 bytes [17:32:03]NVStorageSaveData done [17:32:03]OFDSenderStorePacket done [17:32:03]KKMCreateOFDPacket done [17:32:03]NVStorageSaveData kkm_last_timestamp [17:32:03]File name is /storage/kkm_last_timestamp [17:32:03]Write 4 bytes [17:32:03]NVStorageSaveData done [17:32:03]ExternCall_PrintAddStr [17:32:03]wPrintStart [17:32:03]Write to MH i2c: 01 00 00 3C 02 3E [17:32:03]Write i2c OK [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: 01 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: 01 07 00 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [17:32:03]RasterBufferAndPrint [17:32:03]line Счет N : (1)871937 [17:32:03]line ИНН: 02508201610067 [17:32:03]line Контрольно-Кассовый Чек [17:32:03]line ПРОДАЖА [17:32:03]line ТРК (МРК, ГНК) : 44 [17:32:03]line Товар: 2710194210 [17:32:03]line ДТ(л)-К-4 [17:32:03]line 29.810 * 76.20 [17:32:03]line = 2271.52 [17:32:03]line НДС 12% НСП 1% [17:32:03]line > о реализуемом товаре [17:32:03]line ОКРУГЛЕНИЕ: -0.52 [17:32:03]line ИТОГО: 2271.00 [17:32:03]line Внесено: 2271.00 [17:32:03]line СДАЧА: 0.00 [17:32:03]line НСП 1% : 20.10 [17:32:03]line НДС 12% : 241.22 [17:32:03]line Наличными: 2271.00 [17:32:03]line Безнал.: 0.00 [17:32:03]line Место: АЗС № 137 "Партнер Нефть" [17:32:03]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [17:32:03]line СНО: Общий режим [17:32:03]line Чек 150 22.09.2024 17:32 [17:32:03]line Смена: 70 ФФД: 1.0 [17:32:03]line ЗНМ: 0300000041 [17:32:03]line РНМ: 0000000000190446 [17:32:03]line Версия ККМ: v1.0 [17:32:03]line ФМ: 0000000002094258 [17:32:03]line ФД: 7752 [17:32:03]line ФПД: 188898058508068 [17:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173202&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7752&fm=188898058508068&tin=02508201610067®Number=0000000000190446&sum=227100 [17:32:03]OFD Sender: Processing packet 7752 [packets to send 51, broken 50] [17:32:03]ProducePacketName [17:32:03]name=ofd_packets/00007752 [17:32:03]OFD Sender: To server: pG, [17:32:03]CommunicateWithHost lk.salyk.kg:30040 [17:32:03]ConnectInit lk.salyk.kg [17:32:03]written 0, free lines is 4095 [17:32:04]Write to MH i2c: 01 00 00 67 02 69 [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: 01 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: 01 07 00 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 F8 0C 74 [17:32:04]RasterBufferAndPrint [17:32:04]line [17:32:04]line [17:32:04]line [17:32:04]line [17:32:04]line [17:32:04]written 0, free lines is 3326 [17:32:04]MH_Cut [17:32:04]Write to MH i2c: D1 01 00 6E 02 01 42 [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: D1 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: D1 01 00 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: D1 01 00 6E 02 00 41 [17:32:04]Write to MH i2c: 01 00 00 6F 02 71 [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]*** Cut start [17:32:04]*** Purtial cut [17:32:04]*** Stage 1: CUTSNS_PIN = 1 [17:32:05]Read from MH i2c: 01 [17:32:05]MH_I2C_Read... [17:32:05]*** Stop cut motor [17:32:05]*** Cut end [17:32:05]Read from MH i2c: 01 07 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [17:32:05]process_action close_receipt done [17:32:05]requested_data is exist [17:32:05]produce_requested_data [17:32:05]requested_item fm.sn is exist - process it [17:32:05]wFMCommunicate request_size=4 [17:32:05]MH_SAM_APDU [17:32:05]CAPDU: 80 11 00 00 [17:32:05]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [17:32:05]Write i2c OK [17:32:05]MH_I2C_Read... [17:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:05]Read from MH i2c: E2 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 17 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 3D [17:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:32:05]wFMCommunicate OK [17:32:05]requested_item fd.num is exist - process it [17:32:05]SAM_PROTO_GetFieldsCounters [17:32:05]wFMCommunicate request_size=4 [17:32:05]MH_SAM_APDU [17:32:05]CAPDU: 80 13 00 00 [17:32:05]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [17:32:05]Write i2c OK [17:32:05]MH_I2C_Read... [17:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:05]Read from MH i2c: E2 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 62 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 62 00 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 48 1E 00 00 0E 04 04 00 46 00 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 7B [17:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 48 1E 00 00 0E 04 04 00 46 00 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 [17:32:05]wFMCommunicate OK [17:32:05]SAM_PROTO_GetFieldsCounters done [17:32:05]requested_item shift.num is exist - process it [17:32:05]requested_item shift.opened is exist - process it [17:32:05]req_shift_opened [17:32:05]FM_GetShiftState [17:32:05]SAM_PROTO_GetShiftState [17:32:05]wFMCommunicate request_size=4 [17:32:05]MH_SAM_APDU [17:32:05]CAPDU: 80 13 01 00 [17:32:05]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [17:32:05]Write i2c OK [17:32:05]MH_I2C_Read... [17:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:05]Read from MH i2c: E2 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 0E 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B4 [17:32:05]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:32:05]wFMCommunicate OK [17:32:05]SAM_PROTO_GetShiftState done [17:32:05]FM_GetShiftState done [17:32:05]req_shift_opened done [17:32:05]requested_item shift.open_date is exist - process it [17:32:05]req_shift_open_date [17:32:05]req_shift_open_date done [17:32:05]produce_requested_data done [17:32:05]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7752,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [17:32:05]process_action_free close_receipt [17:32:05]json_value_free [17:32:05]json_value_free done [17:32:05]process_json_proto returns [17:32:05]Send response to host [17:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7752,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [17:32:05]free response buf [17:32:05]execute_script done [17:32:05]execute_script returns [17:32:05]free content buf [17:32:05]Sock 10.Close socket [17:32:05]Sock 10.Thread stoped [17:32:07]recv_with_timeout no data received [17:32:08]ConnectInit Can't take IP for lk.salyk.kg [17:32:08]CommunicateWithHost connect error [17:32:08]CommunicateWithHost err = -1 [17:32:08]OFD Sender: Server communicate error [17:32:13]OFD Sender: Processing packet 7752 [packets to send 51, broken 50] [17:32:13]ProducePacketName [17:32:13]name=ofd_packets/00007752 [17:32:13]OFD Sender: To server: pG, [17:32:13]CommunicateWithHost lk.salyk.kg:30040 [17:32:13]ConnectInit lk.salyk.kg [17:32:17]Connected sock=10 [17:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 9B 71 08 01 72 AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 72 74 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 77 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 77 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 5E 00 00 00 00 07 04 06 00 1C 77 03 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 92 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 48 1E 00 00 35 04 06 00 AB CD 41 AD 17 24 11 25 11 0E 97 46 FF 3B [17:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 BE 82 47 00 A2 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 32 30 39 34 32 35 38 10 04 04 00 48 1E 00 00 F4 03 04 00 5E FF EF 66 B6 04 01 00 00 3C 79 2C CB B0 B0 53 06 [17:32:18]CommunicateWithHost err = 0 [17:32:18]CheckOFDResponse [17:32:18]1017 (14) - 77093643461234 [17:32:18]1041 (16) - 0000000002094258 [17:32:18]1040 (4) - 7752 [17:32:18]1012 (4) - 22.09.2024 11:28 [17:32:18]1206 (1) - 0 [17:32:18]OFD Sender: Remove packet 7752 [17:32:18]ProducePacketName [17:32:18]name=ofd_packets/00007752 [17:32:18]NVStorageDeleteData [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]accept exits with 9 [17:32:59]New connection [17:32:59]New thread 3067166052 created [17:32:59]Thread 3067022692 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.47.195:8080 [17:32:59]Content-Length: 682 [17:32:59]Content-Type: application/json [17:32:59] [17:32:59]POST finish read [17:32:59]Found Content-Length = 682 [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)871934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17: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)871934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17: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 73 02 64 [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 73 02 00 CC 54 F0 66 96 2E 95 66 A2 [17:32:59]GetLastDocTimeStamp 1727026322 [17:32:59]current date 1727026380 [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 74 02 80 13 01 00 00 00 00 00 F3 [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 74 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 B6 [17:32:59]RAPDU: 09 00 01 00 62 EF 66 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 1726964224 [17:32:59]opened+sec_in_day 1727050624 [17:32:59]quantity*price = 100005 [17:32:59]sum+1 = 100006 [17:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 151 22.09.2024 17:33 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7753 ФПД: 95250073992984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173300&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7753&fm=95250073992984&tin=02508201610067®Number=0000000000190446&sum=100000 [17:33:00]StoreToDocumentArchive [17:33:00]shift 70 fd 7753 [17:33:00]save to /storage/0070/doc_00007753 [17:33:00]save last doc name /storage/0070/doc_00007753 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 0163FCA0 [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 81 02 80 09 00 00 00 00 00 00 F5 [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 81 02 00 90 00 F7 [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 82 02 80 0D 01 02 00 00 00 00 FD [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]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 82 02 00 90 00 F8 [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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CC 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 49 1E 00 00 35 04 06 00 56 [17:33:00]Write to MH i2c: E2 02 01 83 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CC 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 49 1E 00 00 35 04 06 00 56 00 00 18 [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 83 02 00 90 00 F9 [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 A1 22 D3 3F 18 [17:33:00]Write to MH i2c: E2 0D 00 84 02 80 0D 02 02 05 00 A1 22 D3 3F 18 00 00 F7 [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 84 02 00 90 00 FA [17:33:00]RAPDU: 90 00 [17:33:00]wFMCommunicate OK [17:33:00]wFMCommunicate request_size=4 [17:33:00]MH_SAM_APDU [17:33:00]CAPDU: 80 0D 03 02 [17:33:00]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [17:33:00]Write i2c OK [17:33:00]MH_I2C_Read... [17:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:00]Read from MH i2c: E2 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 0B 00 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 0B 00 85 02 00 25 75 7D 7B 4D 29 D5 56 90 00 36 [17:33:00]RAPDU: 25 75 7D 7B 4D 29 D5 56 90 00 [17:33:00]wFMCommunicate OK [17:33:00]SAM_PROTO_SignData done [17:33:00]FM_MakeSignedData done [17:33:00]CreateOFDProtocolMessage [17:33:00]wFMCommunicate request_size=4 [17:33:00]MH_SAM_APDU [17:33:00]CAPDU: 80 11 00 00 [17:33:00]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [17:33:00]Write i2c OK [17:33:00]MH_I2C_Read... [17:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:00]Read from MH i2c: E2 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 17 00 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 53 [17:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:33:00]wFMCommunicate OK [17:33:00]CreateOFDProtocolMessage done [17:33:00]OFDSenderStorePacket 7753 [17:33:00]StoreOFDPacket docnum=7753 [17:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 DE 7E 07 01 47 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CC 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 49 1E 00 00 35 04 06 00 56 A1 22 D3 3F 18 25 75 7D 7B 4D 29 D5 56 [17:33:00]CheckFolder [17:33:00]dirname=/storage/ofd_packets [17:33:00]CheckFolder done [17:33:00]ProducePacketName [17:33:00]name=ofd_packets/00007753 [17:33:00]NVStorageSaveData ofd_packets/00007753 [17:33:00]File name is /storage/ofd_packets/00007753 [17:33:00]Write 301 bytes [17:33:00]NVStorageSaveData done [17:33:00]OFDSenderStorePacket done [17:33:00]KKMCreateOFDPacket done [17:33:00]NVStorageSaveData kkm_last_timestamp [17:33:00]File name is /storage/kkm_last_timestamp [17:33:00]Write 4 bytes [17:33:00]NVStorageSaveData done [17:33:00]ExternCall_PrintAddStr [17:33:00]wPrintStart [17:33:00]Write to MH i2c: 01 00 00 87 02 89 [17:33:00]Write i2c OK [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: 01 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: 01 07 00 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [17:33:00]RasterBufferAndPrint [17:33:00]line Счет N : (1)871934 [17:33:00]line ИНН: 02508201610067 [17:33:00]line Контрольно-Кассовый Чек [17:33:00]line ПРОДАЖА [17:33:00]line ТРК (МРК, ГНК) : 33 [17:33:00]line Товар: 2710124130 [17:33:00]line Аи-92-К-5 [17:33:00]line 14.750 * 67.80 [17:33:00]line = 1000.05 [17:33:00]line НДС 12% НСП 1% [17:33:00]line > о реализуемом товаре [17:33:00]line ОКРУГЛЕНИЕ: -0.05 [17:33:00]line ИТОГО: 1000.00 [17:33:00]line Внесено: 1000.00 [17:33:00]line СДАЧА: 0.00 [17:33:00]line НСП 1% : 8.85 [17:33:00]line НДС 12% : 106.20 [17:33:00]line Наличными: 1000.00 [17:33:00]line Безнал.: 0.00 [17:33:00]line Место: АЗС № 137 "Партнер Нефть" [17:33:00]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [17:33:00]line СНО: Общий режим [17:33:00]line Чек 151 22.09.2024 17:33 [17:33:00]line Смена: 70 ФФД: 1.0 [17:33:00]line ЗНМ: 0300000041 [17:33:00]line РНМ: 0000000000190446 [17:33:00]line Версия ККМ: v1.0 [17:33:00]line ФМ: 0000000002094258 [17:33:00]line ФД: 7753 [17:33:00]line ФПД: 95250073992984 [17:33:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173300&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7753&fm=95250073992984&tin=02508201610067®Number=0000000000190446&sum=100000 [17:33:01]OFD Sender: Processing packet 7753 [packets to send 51, broken 50] [17:33:01]ProducePacketName [17:33:01]name=ofd_packets/00007753 [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]written 0, free lines is 4095 [17:33:01]Write to MH i2c: 01 00 00 B2 02 B4 [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 B2 02 00 00 00 00 00 F0 0C B7 [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 3318 [17:33:01]MH_Cut [17:33:01]Write to MH i2c: D1 01 00 B9 02 01 8D [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 B9 02 00 8C [17:33:01]Write to MH i2c: 01 00 00 BA 02 BC [17:33:01]Write i2c OK [17:33:01]MH_I2C_Read... [17:33:02]*** Cut start [17:33:02]*** Purtial cut [17:33:02]*** Stage 1: CUTSNS_PIN = 1 [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 BA 02 00 00 00 00 00 FF 0F D1 [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 BB 02 80 11 00 00 00 00 00 00 37 [17:33:02]Write i2c OK [17:33:02]MH_I2C_Read... [17:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:02]Read from MH i2c: E2 [17:33:02]MH_I2C_Read... [17:33:02]Read from MH i2c: E2 17 00 [17:33:02]MH_I2C_Read... [17:33:02]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 88 [17:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:33:02]wFMCommunicate OK [17:33:02]requested_item fd.num is exist - process it [17:33:02]SAM_PROTO_GetFieldsCounters [17:33:02]wFMCommunicate request_size=4 [17:33:02]MH_SAM_APDU [17:33:02]CAPDU: 80 13 00 00 [17:33:02]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [17:33:02]Write i2c OK [17:33:02]MH_I2C_Read... [17:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:02]Read from MH i2c: E2 [17:33:02]MH_I2C_Read... [17:33:02]Read from MH i2c: E2 62 00 [17:33:02]MH_I2C_Read... [17:33:02]Read from MH i2c: E2 62 00 BC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 49 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [17:33:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 49 1E 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:02]wFMCommunicate OK [17:33:02]SAM_PROTO_GetFieldsCounters done [17:33:02]requested_item shift.num is exist - process it [17:33:02]requested_item shift.opened is exist - process it [17:33:02]req_shift_opened [17:33:02]FM_GetShiftState [17:33:02]SAM_PROTO_GetShiftState [17:33:02]wFMCommunicate request_size=4 [17:33:02]MH_SAM_APDU [17:33:02]CAPDU: 80 13 01 00 [17:33:02]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [17:33:02]Write i2c OK [17:33:02]MH_I2C_Read... [17:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:02]Read from MH i2c: E2 [17:33:02]MH_I2C_Read... [17:33:02]Read from MH i2c: E2 0E 00 [17:33:02]MH_I2C_Read... [17:33:02]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 FF [17:33:02]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:33:02]wFMCommunicate OK [17:33:02]SAM_PROTO_GetShiftState done [17:33:02]FM_GetShiftState done [17:33:02]req_shift_opened done [17:33:02]requested_item shift.open_date is exist - process it [17:33:02]req_shift_open_date [17:33:02]req_shift_open_date done [17:33:02]produce_requested_data done [17:33:02]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7753,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [17:33:02]process_action_free close_receipt [17:33:02]json_value_free [17:33:02]json_value_free done [17:33:02]process_json_proto returns [17:33:02]Send response to host [17:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7753,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [17:33:02]free response buf [17:33:02]execute_script done [17:33:02]execute_script returns [17:33:02]free content buf [17:33:02]Sock 9.Close socket [17:33:02]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 32 30 39 34 32 35 38 0F 01 00 00 DE 7E 07 01 47 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CC 54 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 49 1E 00 00 35 04 06 00 56 A1 22 D3 3F 18 25 75 7D 7B 4D 29 D5 56 [17:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 8F 64 47 00 C9 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 49 1E 00 00 F4 03 04 00 8E FF EF 66 B6 04 01 00 00 82 53 DF 3F 62 C9 6F 24 [17:33:05]CommunicateWithHost err = 0 [17:33:06]CheckOFDResponse [17:33:06]1017 (14) - 77093643461234 [17:33:06]1041 (16) - 0000000002094258 [17:33:06]1040 (4) - 7753 [17:33:06]1012 (4) - 22.09.2024 11:29 [17:33:06]1206 (1) - 0 [17:33:06]OFD Sender: Remove packet 7753 [17:33:06]ProducePacketName [17:33:06]name=ofd_packets/00007753 [17:33:06]NVStorageDeleteData [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:37]recv_with_timeout no data received [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:37]recv_with_timeout no data received [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:10]recv_with_timeout no data received [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:23]recv_with_timeout no data received [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:22]recv_with_timeout no data received [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:13]recv_with_timeout no data received [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:53]recv_with_timeout no data received [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]recv_with_timeout no data received [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:38]recv_with_timeout no data received [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [17:55:13]recv_with_timeout no data received [17:55:17]OFD Sender: No OFD packet to send [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: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]recv_with_timeout no data received [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: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:29]accept exits with 10 [17:59:29]New connection [17:59:29]New thread 3067022692 created [17:59:29]Thread 3067166052 joined [17:59:29]Waiting for new connection... [17:59:29] Sock 10.Parse request [17:59:29]Sock 10.Check first char [17:59:29]Sock 10.First char is OK [17:59:29]request: POST /json_proto HTTP/1.0 [17:59:29]Method: POST [17:59:29]URL: /json_proto [17:59:29]Method is POST - this is cgi request [17:59:29]url: /json_proto [17:59:29]query_string will be loaded in cgi processing [17:59:29]execute_cgi json_proto POST (null) [17:59:29]execute_cgi path=json_proto method=POST [17:59:29]POST find Content-Length [17:59:29]Host: 172.17.47.195:8080 [17:59:29]Content-Length: 799 [17:59:29]Content-Type: application/json [17:59:29] [17:59:29]POST finish read [17:59:29]Found Content-Length = 799 [17:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:29]execute_script... [17:59: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)871945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:29]POST & json_proto [17:59:29]process_json_proto [17:59:29]json parsed OK: [17:59:29]protocol is kg_v1.0 [17:59:29]action value=close_receipt [17:59:29]process_action close_receipt [17:59:29]cmd_close_receipt [17:59:29]MH_GetDate [17:59:29]Write to MH i2c: F0 00 00 BE 02 AF [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: F0 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: F0 09 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: F0 09 00 BE 02 00 02 5B F0 66 96 2E 95 66 2A [17:59:29]GetLastDocTimeStamp 1727026380 [17:59:29]current date 1727027970 [17:59:29]FM_GetShiftState [17:59:29]SAM_PROTO_GetShiftState [17:59:29]wFMCommunicate request_size=4 [17:59:29]MH_SAM_APDU [17:59:29]CAPDU: 80 13 01 00 [17:59:29]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:29]Read from MH i2c: E2 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 0E 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 01 [17:59:29]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:59:29]wFMCommunicate OK [17:59:29]SAM_PROTO_GetShiftState done [17:59:29]FM_GetShiftState done [17:59:29]opened in 1726964224 [17:59:29]opened+sec_in_day 1727050624 [17:59:29]quantity*price = 0 [17:59:29]sum+1 = 1 [17:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 152 22.09.2024 17:59 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Талоны: Топливные Талоны 1 ФМ: 0000000002094258 ФД: 7754 ФПД: 143077989086942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T175930&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7754&fm=143077989086942&tin=02508201610067®Number=0000000000190446&sum=0 [17:59:30]StoreToDocumentArchive [17:59:30]shift 70 fd 7754 [17:59:30]save to /storage/0070/doc_00007754 [17:59:30]save last doc name /storage/0070/doc_00007754 to /storage/kkm_last_doc_name [17:59:30]save OK [17:59:30]Clear old archive folders... [17:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:59:30]tlvbuf is 016D6490 [17:59:30]SAM_PROTO_ClearQueue [17:59:30]wFMCommunicate request_size=4 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 09 00 00 [17:59:30]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 03 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [17:59:30]RAPDU: 90 00 [17:59:30]wFMCommunicate OK [17:59:30]SAM_PROTO_ClearQueue done [17:59:30]KKMCreateOFDPacket [17:59:30]OFDProtocolAddRootSTLVToBuf [17:59:30]FM_MakeSignedData [17:59:30]FM_MakeSignedData [17:59:30]SAM_PROTO_SignData [17:59:30]wFMCommunicate request_size=4 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 0D 01 02 [17:59:30]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 03 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [17:59:30]RAPDU: 90 00 [17:59:30]wFMCommunicate OK [17:59:30]wFMCommunicate request_size=255 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 98 00 00 00 F4 03 04 00 02 5B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4A 1E 00 00 35 04 06 00 [17:59:30]Write to MH i2c: E2 02 01 CE 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 02 5B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4A 1E 00 00 35 04 06 00 00 00 27 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 03 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [17:59:30]RAPDU: 90 00 [17:59:30]wFMCommunicate OK [17:59:30]wFMCommunicate request_size=11 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 0D 02 02 06 82 20 F0 B6 F6 DE [17:59:30]Write to MH i2c: E2 0E 00 CF 02 80 0D 02 02 06 00 82 20 F0 B6 F6 DE 00 00 73 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 03 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [17:59:30]RAPDU: 90 00 [17:59:30]wFMCommunicate OK [17:59:30]wFMCommunicate request_size=4 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 0D 03 02 [17:59:30]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 0B 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 0B 00 D0 02 00 A3 DA C8 32 D4 8C 1E 5B 90 00 9E [17:59:30]RAPDU: A3 DA C8 32 D4 8C 1E 5B 90 00 [17:59:30]wFMCommunicate OK [17:59:30]SAM_PROTO_SignData done [17:59:30]FM_MakeSignedData done [17:59:30]CreateOFDProtocolMessage [17:59:30]wFMCommunicate request_size=4 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 11 00 00 [17:59:30]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 17 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 9E [17:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:59:30]wFMCommunicate OK [17:59:30]CreateOFDProtocolMessage done [17:59:30]OFDSenderStorePacket 7754 [17:59:30]StoreOFDPacket docnum=7754 [17:59:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 79 8E 08 01 82 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 02 5B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4A 1E 00 00 35 04 06 00 82 20 F0 B6 F6 DE A3 DA C8 32 D4 8C 1E 5B [17:59:30]CheckFolder [17:59:30]dirname=/storage/ofd_packets [17:59:30]CheckFolder done [17:59:30]ProducePacketName [17:59:30]name=ofd_packets/00007754 [17:59:30]NVStorageSaveData ofd_packets/00007754 [17:59:30]File name is /storage/ofd_packets/00007754 [17:59:30]Write 302 bytes [17:59:30]NVStorageSaveData done [17:59:30]OFDSenderStorePacket done [17:59:30]KKMCreateOFDPacket done [17:59:30]NVStorageSaveData kkm_last_timestamp [17:59:30]File name is /storage/kkm_last_timestamp [17:59:30]Write 4 bytes [17:59:30]NVStorageSaveData done [17:59:30]ExternCall_PrintAddStr [17:59:30]wPrintStart [17:59:30]Write to MH i2c: 01 00 00 D2 02 D4 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: 01 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: 01 07 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [17:59:30]RasterBufferAndPrint [17:59:30]line Счет N : (1)871945 [17:59:30]line ИНН: 02508201610067 [17:59:30]line Контрольно-Кассовый Чек [17:59:30]line ПРОДАЖА [17:59:30]line ТРК (МРК, ГНК) : 44 [17:59:30]line Товар: 2710194210 [17:59:30]line ДТ(л)-К-4 [17:59:30]line 30.000 * 0.00 [17:59:30]line = 0.00 [17:59:30]line НДС 12% НСП 1% [17:59:30]line > о реализуемом товаре [17:59:30]line ИТОГО: 0.00 [17:59:30]line НСП 1% : 0.00 [17:59:30]line НДС 12% : 0.00 [17:59:30]line Наличными: 0.00 [17:59:30]line Безнал.: 0.00 [17:59:30]line Место: АЗС № 137 "Партнер Нефть" [17:59:30]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [17:59:30]line СНО: Общий режим [17:59:30]line Чек 152 22.09.2024 17:59 [17:59:30]line Смена: 70 ФФД: 1.0 [17:59:30]line ЗНМ: 0300000041 [17:59:30]line РНМ: 0000000000190446 [17:59:30]line Версия ККМ: v1.0 [17:59:30]line Талоны: Топливные Талоны [17:59:30]line 1 [17:59:30]line ФМ: 0000000002094258 [17:59:30]line ФД: 7754 [17:59:30]line ФПД: 143077989086942 [17:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T175930&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7754&fm=143077989086942&tin=02508201610067®Number=0000000000190446&sum=0 [17:59:31]OFD Sender: Processing packet 7754 [packets to send 51, broken 50] [17:59:31]ProducePacketName [17:59:31]name=ofd_packets/00007754 [17:59:31]OFD Sender: To server: pG, [17:59:31]CommunicateWithHost lk.salyk.kg:30040 [17:59:31]ConnectInit lk.salyk.kg [17:59:31]written 0, free lines is 4095 [17:59:31]Connected sock=9 [17:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 79 8E 08 01 82 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 02 5B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4A 1E 00 00 35 04 06 00 82 20 F0 B6 F6 DE A3 DA C8 32 D4 8C 1E 5B [17:59:31]Write to MH i2c: 01 00 00 FC 02 FE [17:59:31]Write i2c OK [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: 01 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: 01 07 00 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 05 0D 17 [17:59:31]RasterBufferAndPrint [17:59:31]line [17:59:31]line [17:59:31]line [17:59:31]line [17:59:31]line [17:59:31]written 0, free lines is 3339 [17:59:31]MH_Cut [17:59:31]Write to MH i2c: D1 01 00 03 03 01 D8 [17:59:31]Write i2c OK [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: D1 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: D1 01 00 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: D1 01 00 03 03 00 D7 [17:59:31]Write to MH i2c: 01 00 00 04 03 07 [17:59:31]Write i2c OK [17:59:31]MH_I2C_Read... [17:59:32]*** Cut start [17:59:32]*** Purtial cut [17:59:32]*** Stage 1: CUTSNS_PIN = 1 [17:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 AD D3 47 00 50 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 32 30 39 34 32 35 38 10 04 04 00 4A 1E 00 00 F4 03 04 00 C1 05 F0 66 B6 04 01 00 00 56 BE C0 FA E5 44 03 F5 [17:59:32]CommunicateWithHost err = 0 [17:59:32]CheckOFDResponse [17:59:32]1017 (14) - 77093643461234 [17:59:32]1041 (16) - 0000000002094258 [17:59:32]1040 (4) - 7754 [17:59:32]1012 (4) - 22.09.2024 11:55 [17:59:32]1206 (1) - 0 [17:59:32]OFD Sender: Remove packet 7754 [17:59:32]ProducePacketName [17:59:32]name=ofd_packets/00007754 [17:59:32]NVStorageDeleteData [17:59:32]Read from MH i2c: 01 [17:59:32]MH_I2C_Read... [17:59:32]*** Stop cut motor [17:59:32]*** Cut end [17:59:32]Read from MH i2c: 01 07 00 [17:59:32]MH_I2C_Read... [17:59:32]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [17:59:32]process_action close_receipt done [17:59:32]requested_data is exist [17:59:32]produce_requested_data [17:59:32]requested_item fm.sn is exist - process it [17:59:32]wFMCommunicate request_size=4 [17:59:32]MH_SAM_APDU [17:59:32]CAPDU: 80 11 00 00 [17:59:32]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [17:59:32]Write i2c OK [17:59:32]MH_I2C_Read... [17:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:32]Read from MH i2c: E2 [17:59:32]MH_I2C_Read... [17:59:32]Read from MH i2c: E2 17 00 [17:59:32]MH_I2C_Read... [17:59:32]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D3 [17:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [17:59:32]wFMCommunicate OK [17:59:32]requested_item fd.num is exist - process it [17:59:32]SAM_PROTO_GetFieldsCounters [17:59:32]wFMCommunicate request_size=4 [17:59:32]MH_SAM_APDU [17:59:32]CAPDU: 80 13 00 00 [17:59:32]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [17:59:32]Write i2c OK [17:59:32]MH_I2C_Read... [17:59:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:32]Read from MH i2c: E2 [17:59:32]MH_I2C_Read... [17:59:32]Read from MH i2c: E2 62 00 [17:59:32]MH_I2C_Read... [17:59:32]Read from MH i2c: E2 62 00 06 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4A 1E 00 00 0E 04 04 00 46 00 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 19 [17:59:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4A 1E 00 00 0E 04 04 00 46 00 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 [17:59:32]wFMCommunicate OK [17:59:32]SAM_PROTO_GetFieldsCounters done [17:59:32]requested_item shift.num is exist - process it [17:59:32]requested_item shift.opened is exist - process it [17:59:32]req_shift_opened [17:59:32]FM_GetShiftState [17:59:32]SAM_PROTO_GetShiftState [17:59:32]wFMCommunicate request_size=4 [17:59:32]MH_SAM_APDU [17:59:32]CAPDU: 80 13 01 00 [17:59:32]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [17:59:32]Write i2c OK [17:59:32]MH_I2C_Read... [17:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:32]Read from MH i2c: E2 [17:59:32]MH_I2C_Read... [17:59:32]Read from MH i2c: E2 0E 00 [17:59:32]MH_I2C_Read... [17:59:32]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 4A [17:59:32]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [17:59:32]wFMCommunicate OK [17:59:32]SAM_PROTO_GetShiftState done [17:59:32]FM_GetShiftState done [17:59:32]req_shift_opened done [17:59:32]requested_item shift.open_date is exist - process it [17:59:32]req_shift_open_date [17:59:32]req_shift_open_date done [17:59:32]produce_requested_data done [17:59:32]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7754,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [17:59:32]process_action_free close_receipt [17:59:32]json_value_free [17:59:32]json_value_free done [17:59:32]process_json_proto returns [17:59:32]Send response to host [17:59:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7754,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [17:59:32]free response buf [17:59:32]execute_script done [17:59:32]execute_script returns [17:59:32]free content buf [17:59:32]Sock 10.Close socket [17:59:32]Sock 10.Thread stoped [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: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:24]recv_with_timeout no data received [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:37]recv_with_timeout no data received [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:09]accept exits with 7 [18:02:09]New connection [18:02:09]New thread 3067166052 created [18:02:09]Thread 3067022692 joined [18:02:09]Waiting for new connection... [18:02:09] Sock 7.Parse request [18:02:09]Sock 7.Check first char [18:02:09]Sock 7.First char is OK [18:02:09]request: POST /json_proto HTTP/1.0 [18:02:09]Method: POST [18:02:09]URL: /json_proto [18:02:09]Method is POST - this is cgi request [18:02:09]url: /json_proto [18:02:09]query_string will be loaded in cgi processing [18:02:09]execute_cgi json_proto POST (null) [18:02:09]execute_cgi path=json_proto method=POST [18:02:09]POST find Content-Length [18:02:09]Host: 172.17.47.195:8080 [18:02:09]Content-Length: 687 [18:02:09]Content-Type: application/json [18:02:09] [18:02:09]POST finish read [18:02:09]Found Content-Length = 687 [18:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:09]execute_script... [18: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)871946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:09]POST & json_proto [18:02:09]process_json_proto [18:02:09]json parsed OK: [18:02:09]protocol is kg_v1.0 [18:02:09]action value=close_receipt [18:02:09]process_action close_receipt [18:02:09]cmd_close_receipt [18:02:09]MH_GetDate [18:02:09]Write to MH i2c: F0 00 00 08 03 FA [18:02:09]Write i2c OK [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: F0 [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: F0 09 00 [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: F0 09 00 08 03 00 A2 5B F0 66 96 2E 95 66 15 [18:02:09]GetLastDocTimeStamp 1727027970 [18:02:09]current date 1727028130 [18:02:09]FM_GetShiftState [18:02:09]SAM_PROTO_GetShiftState [18:02:09]wFMCommunicate request_size=4 [18:02:09]MH_SAM_APDU [18:02:09]CAPDU: 80 13 01 00 [18:02:09]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [18:02:09]Write i2c OK [18:02:09]MH_I2C_Read... [18:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:09]Read from MH i2c: E2 [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: E2 0E 00 [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 4C [18:02:09]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [18:02:09]wFMCommunicate OK [18:02:09]SAM_PROTO_GetShiftState done [18:02:09]FM_GetShiftState done [18:02:09]opened in 1726964224 [18:02:09]opened+sec_in_day 1727050624 [18:02:09]quantity*price = 100050 [18:02:09]sum+1 = 100052 [18:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 153 22.09.2024 18:02 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7755 ФПД: 61173983424355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180210&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7755&fm=61173983424355&tin=02508201610067®Number=0000000000190446&sum=100000 [18:02:10]StoreToDocumentArchive [18:02:10]shift 70 fd 7755 [18:02:10]save to /storage/0070/doc_00007755 [18:02:10]save last doc name /storage/0070/doc_00007755 to /storage/kkm_last_doc_name [18:02:10]save OK [18:02:10]Clear old archive folders... [18:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:02:10]tlvbuf is 016D9D30 [18:02:10]SAM_PROTO_ClearQueue [18:02:10]wFMCommunicate request_size=4 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 09 00 00 [18:02:10]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:10]Read from MH i2c: E2 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [18:02:10]RAPDU: 90 00 [18:02:10]wFMCommunicate OK [18:02:10]SAM_PROTO_ClearQueue done [18:02:10]KKMCreateOFDPacket [18:02:10]OFDProtocolAddRootSTLVToBuf [18:02:10]FM_MakeSignedData [18:02:10]FM_MakeSignedData [18:02:10]SAM_PROTO_SignData [18:02:10]wFMCommunicate request_size=4 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 0D 01 02 [18:02:10]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:10]Read from MH i2c: E2 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [18:02:10]RAPDU: 90 00 [18:02:10]wFMCommunicate OK [18:02:10]wFMCommunicate request_size=255 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 99 00 00 00 F4 03 04 00 A2 5B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4B 1E 00 00 35 04 06 00 [18:02:10]Write to MH i2c: E2 02 01 18 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 99 00 00 00 F4 03 04 00 A2 5B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4B 1E 00 00 35 04 06 00 00 00 97 [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:10]Read from MH i2c: E2 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [18:02:10]RAPDU: 90 00 [18:02:10]wFMCommunicate OK [18:02:10]wFMCommunicate request_size=11 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 0D 02 02 06 37 A3 2D 8D 2F 63 [18:02:10]Write to MH i2c: E2 0E 00 19 03 80 0D 02 02 06 00 37 A3 2D 8D 2F 63 00 00 C8 [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:10]Read from MH i2c: E2 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [18:02:10]RAPDU: 90 00 [18:02:10]wFMCommunicate OK [18:02:10]wFMCommunicate request_size=4 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 0D 03 02 [18:02:10]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:10]Read from MH i2c: E2 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 0B 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 0B 00 1A 03 00 B5 83 08 2C D2 16 0F 1E 90 00 1A [18:02:10]RAPDU: B5 83 08 2C D2 16 0F 1E 90 00 [18:02:10]wFMCommunicate OK [18:02:10]SAM_PROTO_SignData done [18:02:10]FM_MakeSignedData done [18:02:10]CreateOFDProtocolMessage [18:02:10]wFMCommunicate request_size=4 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 11 00 00 [18:02:10]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:10]Read from MH i2c: E2 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 17 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 E9 [18:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [18:02:10]wFMCommunicate OK [18:02:10]CreateOFDProtocolMessage done [18:02:10]OFDSenderStorePacket 7755 [18:02:10]StoreOFDPacket docnum=7755 [18:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 10 9F 08 01 6F 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A2 5B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4B 1E 00 00 35 04 06 00 37 A3 2D 8D 2F 63 B5 83 08 2C D2 16 0F 1E [18:02:10]CheckFolder [18:02:10]dirname=/storage/ofd_packets [18:02:10]CheckFolder done [18:02:10]ProducePacketName [18:02:10]name=ofd_packets/00007755 [18:02:10]NVStorageSaveData ofd_packets/00007755 [18:02:10]File name is /storage/ofd_packets/00007755 [18:02:10]Write 302 bytes [18:02:10]NVStorageSaveData done [18:02:10]OFDSenderStorePacket done [18:02:10]KKMCreateOFDPacket done [18:02:10]NVStorageSaveData kkm_last_timestamp [18:02:10]File name is /storage/kkm_last_timestamp [18:02:10]Write 4 bytes [18:02:10]NVStorageSaveData done [18:02:10]ExternCall_PrintAddStr [18:02:10]wPrintStart [18:02:10]Write to MH i2c: 01 00 00 1C 03 1F [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: 01 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: 01 07 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [18:02:10]RasterBufferAndPrint [18:02:10]line Счет N : (1)871946 [18:02:10]line ИНН: 02508201610067 [18:02:10]line Контрольно-Кассовый Чек [18:02:10]line ПРОДАЖА [18:02:10]line ТРК (МРК, ГНК) : 54 [18:02:10]line Товар: 2710194210 [18:02:10]line ДТ(л)-К-4 [18:02:10]line 13.130 * 76.20 [18:02:10]line = 1000.51 [18:02:10]line НДС 12% НСП 1% [18:02:10]line > о реализуемом товаре [18:02:10]line ОКРУГЛЕНИЕ: -0.51 [18:02:10]line ИТОГО: 1000.00 [18:02:10]line Внесено: 1000.00 [18:02:10]line СДАЧА: 0.00 [18:02:10]line НСП 1% : 8.85 [18:02:10]line НДС 12% : 106.25 [18:02:10]line Наличными: 1000.00 [18:02:10]line Безнал.: 0.00 [18:02:10]line Место: АЗС № 137 "Партнер Нефть" [18:02:10]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [18:02:10]line СНО: Общий режим [18:02:10]line Чек 153 22.09.2024 18:02 [18:02:10]line Смена: 70 ФФД: 1.0 [18:02:10]line ЗНМ: 0300000041 [18:02:10]line РНМ: 0000000000190446 [18:02:10]line Версия ККМ: v1.0 [18:02:10]line ФМ: 0000000002094258 [18:02:10]line ФД: 7755 [18:02:10]line ФПД: 61173983424355 [18:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180210&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7755&fm=61173983424355&tin=02508201610067®Number=0000000000190446&sum=100000 [18:02:11]OFD Sender: Processing packet 7755 [packets to send 51, broken 50] [18:02:11]ProducePacketName [18:02:11]name=ofd_packets/00007755 [18:02:11]OFD Sender: To server: pG, [18:02:11]CommunicateWithHost lk.salyk.kg:30040 [18:02:11]ConnectInit lk.salyk.kg [18:02:11]written 0, free lines is 4095 [18:02:11]Write to MH i2c: 01 00 00 47 03 4A [18:02:11]Write i2c OK [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: 01 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: 01 07 00 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 EA 0C 47 [18:02:11]RasterBufferAndPrint [18:02:11]line [18:02:11]line [18:02:11]line [18:02:11]line [18:02:11]line [18:02:11]written 0, free lines is 3312 [18:02:11]MH_Cut [18:02:11]Write to MH i2c: D1 01 00 4E 03 01 23 [18:02:11]Write i2c OK [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: D1 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: D1 01 00 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: D1 01 00 4E 03 00 22 [18:02:11]Write to MH i2c: 01 00 00 4F 03 52 [18:02:11]Write i2c OK [18:02:11]MH_I2C_Read... [18:02:12]*** Cut start [18:02:12]*** Purtial cut [18:02:12]*** Stage 1: CUTSNS_PIN = 1 [18:02:12]Read from MH i2c: 01 [18:02:12]MH_I2C_Read... [18:02:12]*** Stop cut motor [18:02:12]*** Cut end [18:02:12]Read from MH i2c: 01 07 00 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [18:02:12]process_action close_receipt done [18:02:12]requested_data is exist [18:02:12]produce_requested_data [18:02:12]requested_item fm.sn is exist - process it [18:02:12]wFMCommunicate request_size=4 [18:02:12]MH_SAM_APDU [18:02:12]CAPDU: 80 11 00 00 [18:02:12]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [18:02:12]Write i2c OK [18:02:12]MH_I2C_Read... [18:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:12]Read from MH i2c: E2 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 17 00 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 1E [18:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [18:02:12]wFMCommunicate OK [18:02:12]requested_item fd.num is exist - process it [18:02:12]SAM_PROTO_GetFieldsCounters [18:02:12]wFMCommunicate request_size=4 [18:02:12]MH_SAM_APDU [18:02:12]CAPDU: 80 13 00 00 [18:02:12]Write to MH i2c: E2 08 00 51 03 80 13 00 00 00 00 00 00 D0 [18:02:12]Write i2c OK [18:02:12]MH_I2C_Read... [18:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:12]Read from MH i2c: E2 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 62 00 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 62 00 51 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4B 1E 00 00 0E 04 04 00 46 00 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 68 [18:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4B 1E 00 00 0E 04 04 00 46 00 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 [18:02:12]wFMCommunicate OK [18:02:12]SAM_PROTO_GetFieldsCounters done [18:02:12]requested_item shift.num is exist - process it [18:02:12]requested_item shift.opened is exist - process it [18:02:12]req_shift_opened [18:02:12]FM_GetShiftState [18:02:12]SAM_PROTO_GetShiftState [18:02:12]wFMCommunicate request_size=4 [18:02:12]MH_SAM_APDU [18:02:12]CAPDU: 80 13 01 00 [18:02:12]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [18:02:12]Write i2c OK [18:02:12]MH_I2C_Read... [18:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:12]Read from MH i2c: E2 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 0E 00 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 95 [18:02:12]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [18:02:12]wFMCommunicate OK [18:02:12]SAM_PROTO_GetShiftState done [18:02:12]FM_GetShiftState done [18:02:12]req_shift_opened done [18:02:12]requested_item shift.open_date is exist - process it [18:02:12]req_shift_open_date [18:02:12]req_shift_open_date done [18:02:12]produce_requested_data done [18:02:12]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7755,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [18:02:12]process_action_free close_receipt [18:02:12]json_value_free [18:02:12]json_value_free done [18:02:12]process_json_proto returns [18:02:12]Send response to host [18:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7755,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [18:02:12]free response buf [18:02:12]execute_script done [18:02:12]execute_script returns [18:02:12]free content buf [18:02:12]Sock 7.Close socket [18:02:12]Sock 7.Thread stoped [18:02:20]recv_with_timeout no data received [18:04:24]ConnectInit Can't connect to host [18:04:24]CommunicateWithHost connect error [18:04:24]CommunicateWithHost err = -1 [18:04:24]OFD Sender: Server communicate error [18:04:29]OFD Sender: Processing packet 7755 [packets to send 51, broken 50] [18:04:29]ProducePacketName [18:04:29]name=ofd_packets/00007755 [18:04:29]OFD Sender: To server: pG, [18:04:29]CommunicateWithHost lk.salyk.kg:30040 [18:04:29]ConnectInit lk.salyk.kg [18:04:30]Connected sock=7 [18:04:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 10 9F 08 01 6F 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A2 5B F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4B 1E 00 00 35 04 06 00 37 A3 2D 8D 2F 63 B5 83 08 2C D2 16 0F 1E [18:04:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 5A BE 47 00 CE 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4B 1E 00 00 F4 03 04 00 EB 06 F0 66 B6 04 01 00 00 63 96 03 9A 3F DF 83 06 [18:04:31]CommunicateWithHost err = 0 [18:04:31]CheckOFDResponse [18:04:31]1017 (14) - 77093643461234 [18:04:31]1041 (16) - 0000000002094258 [18:04:31]1040 (4) - 7755 [18:04:31]1012 (4) - 22.09.2024 12:00 [18:04:31]1206 (1) - 0 [18:04:31]OFD Sender: Remove packet 7755 [18:04:31]ProducePacketName [18:04:31]name=ofd_packets/00007755 [18:04:31]NVStorageDeleteData [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:20]accept exits with 10 [18:05:20]New connection [18:05:20]New thread 3067022692 created [18:05:20]Thread 3067166052 joined [18:05:20]Waiting for new connection... [18:05:20] Sock 10.Parse request [18:05:20]Sock 10.Check first char [18:05:20]Sock 10.First char is OK [18:05:20]request: POST /json_proto HTTP/1.0 [18:05:20]Method: POST [18:05:20]URL: /json_proto [18:05:20]Method is POST - this is cgi request [18:05:20]url: /json_proto [18:05:20]query_string will be loaded in cgi processing [18:05:20]execute_cgi json_proto POST (null) [18:05:20]execute_cgi path=json_proto method=POST [18:05:20]POST find Content-Length [18:05:20]Host: 172.17.47.195:8080 [18:05:20]Content-Length: 687 [18:05:20]Content-Type: application/json [18:05:20] [18:05:20]POST finish read [18:05:20]Found Content-Length = 687 [18:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:20]execute_script... [18:05: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)871948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:20]POST & json_proto [18:05:20]process_json_proto [18:05:20]json parsed OK: [18:05:20]protocol is kg_v1.0 [18:05:20]action value=close_receipt [18:05:20]process_action close_receipt [18:05:20]cmd_close_receipt [18:05:20]MH_GetDate [18:05:20]Write to MH i2c: F0 00 00 53 03 45 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: F0 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: F0 09 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: F0 09 00 53 03 00 62 5C F0 66 96 2E 95 66 21 [18:05:20]GetLastDocTimeStamp 1727028130 [18:05:20]current date 1727028322 [18:05:20]FM_GetShiftState [18:05:20]SAM_PROTO_GetShiftState [18:05:20]wFMCommunicate request_size=4 [18:05:20]MH_SAM_APDU [18:05:20]CAPDU: 80 13 01 00 [18:05:20]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:20]Read from MH i2c: E2 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 0E 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 97 [18:05:20]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [18:05:20]wFMCommunicate OK [18:05:20]SAM_PROTO_GetShiftState done [18:05:20]FM_GetShiftState done [18:05:20]opened in 1726964224 [18:05:20]opened+sec_in_day 1727050624 [18:05:20]quantity*price = 100050 [18:05:20]sum+1 = 100052 [18:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 154 22.09.2024 18:05 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7756 ФПД: 21316945329750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180522&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7756&fm=21316945329750&tin=02508201610067®Number=0000000000190446&sum=100000 [18:05:21]StoreToDocumentArchive [18:05:21]shift 70 fd 7756 [18:05:21]save to /storage/0070/doc_00007756 [18:05:21]save last doc name /storage/0070/doc_00007756 to /storage/kkm_last_doc_name [18:05:21]save OK [18:05:21]Clear old archive folders... [18:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:05:21]tlvbuf is 016DBD20 [18:05:21]SAM_PROTO_ClearQueue [18:05:21]wFMCommunicate request_size=4 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 09 00 00 [18:05:21]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:21]Read from MH i2c: E2 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [18:05:21]RAPDU: 90 00 [18:05:21]wFMCommunicate OK [18:05:21]SAM_PROTO_ClearQueue done [18:05:21]KKMCreateOFDPacket [18:05:21]OFDProtocolAddRootSTLVToBuf [18:05:21]FM_MakeSignedData [18:05:21]FM_MakeSignedData [18:05:21]SAM_PROTO_SignData [18:05:21]wFMCommunicate request_size=4 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 0D 01 02 [18:05:21]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:22]OFD Sender: No OFD packet to send [18:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:22]Read from MH i2c: E2 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 03 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [18:05:22]RAPDU: 90 00 [18:05:22]wFMCommunicate OK [18:05:22]wFMCommunicate request_size=255 [18:05:22]MH_SAM_APDU [18:05:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 62 5C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4C 1E 00 00 35 04 06 00 [18:05:22]Write to MH i2c: E2 02 01 63 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 9A 00 00 00 F4 03 04 00 62 5C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4C 1E 00 00 35 04 06 00 00 00 A5 [18:05:22]Write i2c OK [18:05:22]MH_I2C_Read... [18:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:22]Read from MH i2c: E2 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 03 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [18:05:22]RAPDU: 90 00 [18:05:22]wFMCommunicate OK [18:05:22]wFMCommunicate request_size=11 [18:05:22]MH_SAM_APDU [18:05:22]CAPDU: 80 0D 02 02 06 13 63 3C F4 3E 56 [18:05:22]Write to MH i2c: E2 0E 00 64 03 80 0D 02 02 06 00 13 63 3C F4 3E 56 00 00 27 [18:05:22]Write i2c OK [18:05:22]MH_I2C_Read... [18:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:22]Read from MH i2c: E2 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 03 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [18:05:22]RAPDU: 90 00 [18:05:22]wFMCommunicate OK [18:05:22]wFMCommunicate request_size=4 [18:05:22]MH_SAM_APDU [18:05:22]CAPDU: 80 0D 03 02 [18:05:22]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [18:05:22]Write i2c OK [18:05:22]MH_I2C_Read... [18:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:22]Read from MH i2c: E2 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 0B 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 0B 00 65 03 00 E9 27 7D 8E 9D 3B B4 24 90 00 AF [18:05:22]RAPDU: E9 27 7D 8E 9D 3B B4 24 90 00 [18:05:22]wFMCommunicate OK [18:05:22]SAM_PROTO_SignData done [18:05:22]FM_MakeSignedData done [18:05:22]CreateOFDProtocolMessage [18:05:22]wFMCommunicate request_size=4 [18:05:22]MH_SAM_APDU [18:05:22]CAPDU: 80 11 00 00 [18:05:22]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [18:05:22]Write i2c OK [18:05:22]MH_I2C_Read... [18:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:22]Read from MH i2c: E2 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 17 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 34 [18:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [18:05:22]wFMCommunicate OK [18:05:22]CreateOFDProtocolMessage done [18:05:22]OFDSenderStorePacket 7756 [18:05:22]StoreOFDPacket docnum=7756 [19:09:22]ConnectInit Can't connect to host [19:09:25]OFD Sender: Processing packet 7756 [packets to send 51, broken 50] [19:09:25]ProducePacketName [19:09:25]name=ofd_packets/00007756 [19:09:25]OFD Sender: To server: pG, [19:09:25]CommunicateWithHost lk.salyk.kg:30040 [19:09:25]ConnectInit lk.salyk.kg [19:09:30]ConnectInit Can't take IP for lk.salyk.kg [19:09:30]CommunicateWithHost connect error [19:09:30]CommunicateWithHost err = -1 [19:09:30]OFD Sender: Server communicate error [19:09:35]OFD Sender: Processing packet 7756 [packets to send 51, broken 50] [19:09:35]ProducePacketName [19:09:35]name=ofd_packets/00007756 [19:09:35]OFD Sender: To server: pG, [19:09:35]CommunicateWithHost lk.salyk.kg:30040 [19:09:35]ConnectInit lk.salyk.kg [19:09:40]ConnectInit Can't take IP for lk.salyk.kg [19:09:40]CommunicateWithHost connect error [19:09:40]CommunicateWithHost err = -1 [19:09:40]OFD Sender: Server communicate error [19:09:45]OFD Sender: Processing packet 7756 [packets to send 51, broken 50] [19:09:45]ProducePacketName [19:09:45]name=ofd_packets/00007756 [19:09:45]OFD Sender: To server: pG, [19:09:45]CommunicateWithHost lk.salyk.kg:30040 [19:09:45]ConnectInit lk.salyk.kg [19:09:50]Connected sock=7 [19:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 E2 DA 08 01 B6 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 62 5C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4C 1E 00 00 35 04 06 00 13 63 3C F4 3E 56 E9 27 7D 8E 9D 3B B4 24 [19:09:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 DD 41 47 00 B9 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4C 1E 00 00 F4 03 04 00 3B 16 F0 66 B6 04 01 00 00 38 6E C4 94 D4 7E ED CC [19:09:52]CommunicateWithHost err = 0 [19:09:52]CheckOFDResponse [19:09:52]1017 (14) - 77093643461234 [19:09:52]1041 (16) - 0000000002094258 [19:09:52]1040 (4) - 7756 [19:09:52]1012 (4) - 22.09.2024 13:06 [19:09:52]1206 (1) - 0 [19:09:52]OFD Sender: Remove packet 7756 [19:09:52]ProducePacketName [19:09:52]name=ofd_packets/00007756 [19:09:52]NVStorageDeleteData [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:31]recv_with_timeout no data received [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5979480+1721052822=1727032302 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 EF 6B F0 66 96 2E 95 66 6E [19:11:43]Current date/time: 22.09.2024 19:11 [19:11:43]FM_Init [19:11:43]wFMConnect [19:11:43]MH_SAM_On [19:11:43]Write to MH i2c: E0 00 00 08 00 E7 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_init finished! [19:11:43]*** atr: [19:11:43]*** 0F 3B D5 18 FF 81 91 FE [19:11:43]*** 1F C3 80 73 C8 21 10 0A [19:11:43]*** 00 00 00 00 00 00 00 00 [19:11:43]*** 00 00 00 00 00 00 00 00 [19:11:43]*** 00 00 00 00 00 00 00 00 [19:11:43]*** 00 00 00 00 00 00 00 00 [19:11:43]*** 00 00 00 00 00 00 00 00 [19:11:43]*** 00 00 00 00 00 00 00 00 [19:11:43]Read from MH i2c: E0 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E0 10 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:11:43]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:11:43]wFMCommunicate request_size=10 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:11:43]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 11 00 00 [19:11:43]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 17 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [19:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [19:11:43]wFMCommunicate OK [19:11:43]Detected FM SN is 0000000002094258 [19:11:43]Stored FM SN is 0000000002094258 [19:11:43]wFMCommunicate request_size=9 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 16 00 00 04 BC C2 00 00 [19:11:43]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]FM PIN OK [19:11:43]wFMCommunicate request_size=8 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 14 04 00 03 02 00 01 [19:11:43]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]wFMCommunicate request_size=13 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:11:43]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 11 00 00 [19:11:43]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 17 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [19:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [19:11:43]wFMCommunicate OK [19:11:43]DocumentArchiveInit [19:11:43]Start Httpd... [19:11:43]Httpd thread 3067039076 created [19:11:43]Write to MH i2c: 01 00 00 0F 00 0F [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: 01 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: 01 07 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:11:43]MH Int Process started [19:11:43]Allocated Socket 6 [19:11:43]Bind OK [19:11:43]Listen OK [19:11:43]httpd running on port 8080 [19:11:43]Waiting for new connection... [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:04]accept exits with 8 [19:12:04]New connection [19:12:04]New thread 3066752356 created [19:12:04]Waiting for new connection... [19:12:04] Sock 8.Parse request [19:12:04]Sock 8.Check first char [19:12:04]Sock 8.First char is OK [19:12:04]request: POST /json_proto HTTP/1.0 [19:12:04]Method: POST [19:12:04]URL: /json_proto [19:12:04]Method is POST - this is cgi request [19:12:04]url: /json_proto [19:12:04]query_string will be loaded in cgi processing [19:12:04]execute_cgi json_proto POST (null) [19:12:04]execute_cgi path=json_proto method=POST [19:12:04]POST find Content-Length [19:12:04]Host: 172.17.47.195:8080 [19:12:04]Content-Length: 215 [19:12:04]Content-Type: application/json [19:12:04] [19:12:04]POST finish read [19:12:04]Found Content-Length = 215 [19:12:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:04]execute_script... [19:12:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:04]POST & json_proto [19:12:04]process_json_proto [19:12:04]json parsed OK: [19:12:04]protocol is kg_v1.0 [19:12:04]action value=get_value [19:12:04]process_action get_value [19:12:04]cmd_get_value [19:12:04]process_action get_value done [19:12:04]requested_data is exist [19:12:04]produce_requested_data [19:12:04]requested_item kkm.sn is exist - process it [19:12:04]requested_item kkm.ver is exist - process it [19:12:04]requested_item fm.sn is exist - process it [19:12:04]wFMCommunicate request_size=4 [19:12:04]MH_SAM_APDU [19:12:04]CAPDU: 80 11 00 00 [19:12:04]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:04]Read from MH i2c: E2 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 17 00 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [19:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [19:12:04]wFMCommunicate OK [19:12:04]requested_item fd.num is exist - process it [19:12:04]SAM_PROTO_GetFieldsCounters [19:12:04]wFMCommunicate request_size=4 [19:12:04]MH_SAM_APDU [19:12:04]CAPDU: 80 13 00 00 [19:12:04]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:04]Read from MH i2c: E2 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 62 00 [19:12:04]MH_I2C_Read... [19:12:04]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4C 1E 00 00 0E 04 04 00 46 00 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 29 [19:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4C 1E 00 00 0E 04 04 00 46 00 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 [19:12:04]wFMCommunicate OK [19:12:04]SAM_PROTO_GetFieldsCounters done [19:12:04]requested_item shift.num is exist - process it [19:12:04]requested_item shift.opened is exist - process it [19:12:04]req_shift_opened [19:12:04]FM_GetShiftState [19:12:04]SAM_PROTO_GetShiftState [19:12:04]wFMCommunicate request_size=4 [19:12:04]MH_SAM_APDU [19:12:04]CAPDU: 80 13 01 00 [19:12:04]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:04]Read from MH i2c: E2 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 0E 00 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [19:12:04]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [19:12:04]wFMCommunicate OK [19:12:04]SAM_PROTO_GetShiftState done [19:12:04]FM_GetShiftState done [19:12:04]req_shift_opened done [19:12:04]requested_item shift.open_date is exist - process it [19:12:04]req_shift_open_date [19:12:04]req_shift_open_date done [19:12:04]produce_requested_data done [19:12:04]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7756,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [19:12:04]process_action_free get_value [19:12:04]json_value_free [19:12:04]json_value_free done [19:12:04]process_json_proto returns [19:12:04]Send response to host [19:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7756,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [19:12:04]free response buf [19:12:04]execute_script done [19:12:04]execute_script returns [19:12:04]free content buf [19:12:04]Sock 8.Close socket [19:12:04]Sock 8.Thread stoped [19:12:04]accept exits with 9 [19:12:04]New connection [19:12:04]New thread 3066608996 created [19:12:04]Thread 3066752356 joined [19:12:04]Waiting for new connection... [19:12:04] Sock 9.Parse request [19:12:04]Sock 9.Check first char [19:12:04]Sock 9.First char is OK [19:12:04]request: POST /json_proto HTTP/1.0 [19:12:04]Method: POST [19:12:04]URL: /json_proto [19:12:04]Method is POST - this is cgi request [19:12:04]url: /json_proto [19:12:04]query_string will be loaded in cgi processing [19:12:04]execute_cgi json_proto POST (null) [19:12:04]execute_cgi path=json_proto method=POST [19:12:04]POST find Content-Length [19:12:04]Host: 172.17.47.195:8080 [19:12:04]Content-Length: 331 [19:12:04]Content-Type: application/json [19:12:04] [19:12:04]POST finish read [19:12:04]Found Content-Length = 331 [19:12: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" ] } } [19:12:04]execute_script... [19:12: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" ] } } [19:12:04]POST & json_proto [19:12:04]process_json_proto [19:12:04]json parsed OK: [19:12:04]protocol is kg_v1.0 [19:12:04]action value=get_value [19:12:04]process_action get_value [19:12:04]cmd_get_value [19:12:04]process_action get_value done [19:12:04]requested_data is exist [19:12:04]produce_requested_data [19:12:04]requested_item fm.sale.total is exist - process it [19:12:04]SAM_PROTO_GetFMData [19:12:04]wFMCommunicate request_size=4 [19:12:04]MH_SAM_APDU [19:12:04]CAPDU: 80 13 03 00 [19:12:04]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:12:05]Read from MH i2c: E2 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 FD 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 C0 1D 00 00 69 04 A0 00 6F 04 04 00 93 1D 00 00 B1 04 04 00 00 18 46 31 70 04 04 00 D8 DE 56 29 72 04 04 00 28 39 EF 07 00 04 7C 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 F0 D9 3B 05 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 04 A7 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 68 [19:12:05]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 C0 1D 00 00 69 04 A0 00 6F 04 04 00 93 1D 00 00 B1 04 04 00 00 18 46 31 70 04 04 00 D8 DE 56 29 72 04 04 00 28 39 EF 07 00 04 7C 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 F0 D9 3B 05 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 04 A7 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [19:12:05]wFMCommunicate OK [19:12:05]wFMCommunicate request_size=4 [19:12:05]MH_SAM_APDU [19:12:05]CAPDU: 80 17 00 00 [19:12:05]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:12:05]Write i2c OK [19:12:05]MH_I2C_Read... [19:12:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:12:05]Read from MH i2c: E2 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 FD 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [19:12:05]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [19:12:05]wFMCommunicate OK [19:12:05]wFMCommunicate request_size=4 [19:12:05]MH_SAM_APDU [19:12:05]CAPDU: 80 17 00 00 [19:12:05]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:12:05]Write i2c OK [19:12:05]MH_I2C_Read... [19:12:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:12:05]Read from MH i2c: E2 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 FD 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [19:12:05]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:12:05]wFMCommunicate OK [19:12:05]wFMCommunicate request_size=4 [19:12:05]MH_SAM_APDU [19:12:05]CAPDU: 80 17 00 00 [19:12:05]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:12:05]Write i2c OK [19:12:05]MH_I2C_Read... [19:12:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:12:05]Read from MH i2c: E2 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 FD 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [19:12:05]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:12:05]wFMCommunicate OK [19:12:05]wFMCommunicate request_size=4 [19:12:05]MH_SAM_APDU [19:12:06]CAPDU: 80 17 00 00 [19:12:06]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:12:06]Write i2c OK [19:12:06]MH_I2C_Read... [19:12:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [19:12:06]Read from MH i2c: E2 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 DE 00 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [19:12:06]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:12:06]wFMCommunicate OK [19:12:06]SAM_PROTO_GetFMData done [19:12:06]requested_item fm.sale_refund.total is exist - process it [19:12:06]requested_item fm.buy.total is exist - process it [19:12:06]requested_item shift.sale.total is exist - process it [19:12:06]SAM_PROTO_GetShiftData [19:12:06]wFMCommunicate request_size=4 [19:12:06]MH_SAM_APDU [19:12:06]CAPDU: 80 13 02 00 [19:12:06]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:12:06]Write i2c OK [19:12:06]MH_I2C_Read... [19:12:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:12:06]Read from MH i2c: E2 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 FD 00 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 9A 00 00 00 69 04 9C 00 6F 04 04 00 99 00 00 00 B1 04 03 00 04 46 EE 70 04 03 00 68 DD DC 72 04 03 00 9C 68 11 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 4F 19 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 EE 1B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 5B [19:12:06]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 9A 00 00 00 69 04 9C 00 6F 04 04 00 99 00 00 00 B1 04 03 00 04 46 EE 70 04 03 00 68 DD DC 72 04 03 00 9C 68 11 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 4F 19 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 EE 1B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [19:12:06]wFMCommunicate OK [19:12:06]wFMCommunicate request_size=4 [19:12:06]MH_SAM_APDU [19:12:06]CAPDU: 80 17 00 00 [19:12:06]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:12:06]Write i2c OK [19:12:06]MH_I2C_Read... [19:12:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:12:06]Read from MH i2c: E2 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 FD 00 [19:12:06]MH_I2C_Read... [19:12:06]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [19:12:06]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [19:12:07]wFMCommunicate OK [19:12:07]wFMCommunicate request_size=4 [19:12:07]MH_SAM_APDU [19:12:07]CAPDU: 80 17 00 00 [19:12:07]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:12:07]Write i2c OK [19:12:07]MH_I2C_Read... [19:12:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:12:07]Read from MH i2c: E2 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 FD 00 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [19:12:07]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:12:07]wFMCommunicate OK [19:12:07]wFMCommunicate request_size=4 [19:12:07]MH_SAM_APDU [19:12:07]CAPDU: 80 17 00 00 [19:12:07]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:12:07]Write i2c OK [19:12:07]MH_I2C_Read... [19:12:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:12:07]Read from MH i2c: E2 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 FD 00 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [19:12:07]RAPDU: 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 90 00 [19:12:07]wFMCommunicate OK [19:12:07]wFMCommunicate request_size=4 [19:12:07]MH_SAM_APDU [19:12:07]CAPDU: 80 17 00 00 [19:12:07]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:12:07]Write i2c OK [19:12:07]MH_I2C_Read... [19:12:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [19:12:07]Read from MH i2c: E2 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 D4 00 [19:12:07]MH_I2C_Read... [19:12:07]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [19:12:07]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:12:07]wFMCommunicate OK [19:12:07]SAM_PROTO_GetShiftData done [19:12:07]requested_item shift.sale.total_cash is exist - process it [19:12:07]requested_item shift.sale_refund.total is exist - process it [19:12:07]requested_item shift.sale_refund.total_cash is exist - process it [19:12:07]requested_item shift.buy.total is exist - process it [19:12:07]requested_item shift.buy.total_cash is exist - process it [19:12:07]produce_requested_data done [19:12:07]produce_requested_data return {"fm.sale.total":8266772.48,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":156154.92,"shift.sale.total_cash":144746.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:12:07]process_action_free get_value [19:12:07]json_value_free [19:12:07]json_value_free done [19:12:07]process_json_proto returns [19:12:07]Send response to host [19:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8266772.48,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":156154.92,"shift.sale.total_cash":144746.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:12:07]free response buf [19:12:07]execute_script done [19:12:07]execute_script returns [19:12:07]free content buf [19:12:07]Sock 9.Close socket [19:12:07]Sock 9.Thread stoped [19:12:08]accept exits with 8 [19:12:08]New connection [19:12:08]New thread 3066752356 created [19:12:08]Thread 3066608996 joined [19:12:08]Waiting for new connection... [19:12:08] Sock 8.Parse request [19:12:08]Sock 8.Check first char [19:12:08]Sock 8.First char is OK [19:12:08]request: POST /json_proto HTTP/1.0 [19:12:08]Method: POST [19:12:08]URL: /json_proto [19:12:08]Method is POST - this is cgi request [19:12:08]url: /json_proto [19:12:08]query_string will be loaded in cgi processing [19:12:08]execute_cgi json_proto POST (null) [19:12:08]execute_cgi path=json_proto method=POST [19:12:08]POST find Content-Length [19:12:08]Host: 172.17.47.195:8080 [19:12:08]Content-Length: 682 [19:12:08]Content-Type: application/json [19:12:08] [19:12:08]POST finish read [19:12:08]Found Content-Length = 682 [19:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:08]execute_script... [19:12:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:08]POST & json_proto [19:12:08]process_json_proto [19:12:08]json parsed OK: [19:12:08]protocol is kg_v1.0 [19:12:08]action value=close_receipt [19:12:08]process_action close_receipt [19:12:08]cmd_close_receipt [19:12:08]MH_GetDate [19:12:08]Write to MH i2c: F0 00 00 1D 00 0C [19:12:08]Write i2c OK [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: F0 [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: F0 09 00 [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: F0 09 00 1D 00 00 08 6C F0 66 96 2E 95 66 9E [19:12:08]GetLastDocTimeStamp 1727028322 [19:12:08]current date 1727032328 [19:12:08]FM_GetShiftState [19:12:08]SAM_PROTO_GetShiftState [19:12:08]wFMCommunicate request_size=4 [19:12:08]MH_SAM_APDU [19:12:08]CAPDU: 80 13 01 00 [19:12:08]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:12:08]Write i2c OK [19:12:08]MH_I2C_Read... [19:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:08]Read from MH i2c: E2 [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: E2 0E 00 [19:12:08]MH_I2C_Read... [19:12:08]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [19:12:08]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [19:12:08]wFMCommunicate OK [19:12:08]SAM_PROTO_GetShiftState done [19:12:08]FM_GetShiftState done [19:12:08]opened in 1726964224 [19:12:08]opened+sec_in_day 1727050624 [19:12:08]quantity*price = 100005 [19:12:08]sum+1 = 100006 [19:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 155 22.09.2024 19:12 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7757 ФПД: 46531102908215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T191208&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7757&fm=46531102908215&tin=02508201610067®Number=0000000000190446&sum=100000 [19:12:09]StoreToDocumentArchive [19:12:09]shift 70 fd 7757 [19:12:09]save to /storage/0070/doc_00007757 [19:12:09]save last doc name /storage/0070/doc_00007757 to /storage/kkm_last_doc_name [19:12:09]save OK [19:12:09]Clear old archive folders... [19:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:09]tlvbuf is 0091F020 [19:12:09]SAM_PROTO_ClearQueue [19:12:09]wFMCommunicate request_size=4 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 09 00 00 [19:12:09]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:09]Read from MH i2c: E2 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 03 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:12:09]RAPDU: 90 00 [19:12:09]wFMCommunicate OK [19:12:09]SAM_PROTO_ClearQueue done [19:12:09]KKMCreateOFDPacket [19:12:09]OFDProtocolAddRootSTLVToBuf [19:12:09]FM_MakeSignedData [19:12:09]FM_MakeSignedData [19:12:09]SAM_PROTO_SignData [19:12:09]wFMCommunicate request_size=4 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 0D 01 02 [19:12:09]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:09]Read from MH i2c: E2 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 03 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:12:09]RAPDU: 90 00 [19:12:09]wFMCommunicate OK [19:12:09]wFMCommunicate request_size=255 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 08 6C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4D 1E 00 00 35 04 06 00 2A [19:12:09]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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 08 6C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4D 1E 00 00 35 04 06 00 2A 00 00 F0 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=10 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 02 02 05 51 DD DC 1F 37 [19:12:10]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 51 DD DC 1F 37 00 00 12 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 03 02 [19:12:10]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 0B 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 0B 00 2F 00 00 36 86 8D FF D3 E3 BA D6 90 00 39 [19:12:10]RAPDU: 36 86 8D FF D3 E3 BA D6 90 00 [19:12:10]wFMCommunicate OK [19:12:10]SAM_PROTO_SignData done [19:12:10]FM_MakeSignedData done [19:12:10]CreateOFDProtocolMessage [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 11 00 00 [19:12:10]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 17 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [19:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [19:12:10]wFMCommunicate OK [19:12:10]CreateOFDProtocolMessage done [19:12:10]OFDSenderStorePacket 7757 [19:12:10]StoreOFDPacket docnum=7757 [19:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D8 E8 07 01 8B A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 08 6C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4D 1E 00 00 35 04 06 00 2A 51 DD DC 1F 37 36 86 8D FF D3 E3 BA D6 [19:12:10]CheckFolder [19:12:10]dirname=/storage/ofd_packets [19:12:10]CheckFolder done [19:12:10]ProducePacketName [19:12:10]name=ofd_packets/00007757 [19:12:10]NVStorageSaveData ofd_packets/00007757 [19:12:10]File name is /storage/ofd_packets/00007757 [19:12:10]Write 301 bytes [19:12:10]NVStorageSaveData done [19:12:10]OFDSenderStorePacket done [19:12:10]KKMCreateOFDPacket done [19:12:10]NVStorageSaveData kkm_last_timestamp [19:12:10]File name is /storage/kkm_last_timestamp [19:12:10]Write 4 bytes [19:12:10]NVStorageSaveData done [19:12:10]ExternCall_PrintAddStr [19:12:10]wPrintStart [19:12:10]Write to MH i2c: 01 00 00 31 00 31 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:12:10]RasterBufferAndPrint [19:12:10]line Счет N : (1)871953 [19:12:10]line ИНН: 02508201610067 [19:12:10]line Контрольно-Кассовый Чек [19:12:10]line ПРОДАЖА [19:12:10]line ТРК (МРК, ГНК) : 43 [19:12:10]line Товар: 2710124130 [19:12:10]line Аи-92-К-5 [19:12:10]line 14.750 * 67.80 [19:12:10]line = 1000.05 [19:12:10]line НДС 12% НСП 1% [19:12:10]line > о реализуемом товаре [19:12:10]line ОКРУГЛЕНИЕ: -0.05 [19:12:10]line ИТОГО: 1000.00 [19:12:10]line Внесено: 1000.00 [19:12:10]line СДАЧА: 0.00 [19:12:10]line НСП 1% : 8.85 [19:12:10]line НДС 12% : 106.20 [19:12:10]line Наличными: 1000.00 [19:12:10]line Безнал.: 0.00 [19:12:10]line Место: АЗС № 137 "Партнер Нефть" [19:12:10]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [19:12:10]line СНО: Общий режим [19:12:10]line Чек 155 22.09.2024 19:12 [19:12:10]line Смена: 70 ФФД: 1.0 [19:12:10]line ЗНМ: 0300000041 [19:12:10]line РНМ: 0000000000190446 [19:12:10]line Версия ККМ: v1.0 [19:12:10]line ФМ: 0000000002094258 [19:12:10]line ФД: 7757 [19:12:10]line ФПД: 46531102908215 [19:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T191208&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7757&fm=46531102908215&tin=02508201610067®Number=0000000000190446&sum=100000 [19:12:10]written 0, free lines is 4095 [19:12:10]OFD Sender: Processing packet 7757 [packets to send 51, broken 50] [19:12:10]ProducePacketName [19:12:10]name=ofd_packets/00007757 [19:12:10]OFD Sender: To server: pG, [19:12:10]CommunicateWithHost lk.salyk.kg:30040 [19:12:10]ConnectInit lk.salyk.kg [19:12:10]Write to MH i2c: 01 00 00 5C 00 5C [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 ED 0C 5C [19:12:10]RasterBufferAndPrint [19:12:10]line [19:12:10]line [19:12:10]line [19:12:10]line [19:12:10]line [19:12:10]written 0, free lines is 3327 [19:12:10]MH_Cut [19:12:10]Write to MH i2c: D1 01 00 63 00 01 35 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: D1 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: D1 01 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: D1 01 00 63 00 00 34 [19:12:10]Write to MH i2c: 01 00 00 64 00 64 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:11]*** Cut start [19:12:11]*** Purtial cut [19:12:11]*** Stage 1: CUTSNS_PIN = 1 [19:12:11]Read from MH i2c: 01 [19:12:11]MH_I2C_Read... [19:12:11]*** Stop cut motor [19:12:11]*** Cut end [19:12:11]Read from MH i2c: 01 07 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [19:12:11]process_action close_receipt done [19:12:11]requested_data is exist [19:12:11]produce_requested_data [19:12:11]requested_item fm.sn is exist - process it [19:12:11]wFMCommunicate request_size=4 [19:12:11]MH_SAM_APDU [19:12:11]CAPDU: 80 11 00 00 [19:12:11]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:11]Read from MH i2c: E2 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 17 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [19:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [19:12:11]wFMCommunicate OK [19:12:11]requested_item fd.num is exist - process it [19:12:11]SAM_PROTO_GetFieldsCounters [19:12:11]wFMCommunicate request_size=4 [19:12:11]MH_SAM_APDU [19:12:11]CAPDU: 80 13 00 00 [19:12:11]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:11]Read from MH i2c: E2 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 62 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4D 1E 00 00 0E 04 04 00 46 00 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 82 [19:12:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4D 1E 00 00 0E 04 04 00 46 00 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 [19:12:11]wFMCommunicate OK [19:12:11]SAM_PROTO_GetFieldsCounters done [19:12:11]requested_item shift.num is exist - process it [19:12:11]requested_item shift.opened is exist - process it [19:12:11]req_shift_opened [19:12:11]FM_GetShiftState [19:12:11]SAM_PROTO_GetShiftState [19:12:11]wFMCommunicate request_size=4 [19:12:11]MH_SAM_APDU [19:12:11]CAPDU: 80 13 01 00 [19:12:11]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:12]Read from MH i2c: E2 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 0E 00 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [19:12:12]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [19:12:12]wFMCommunicate OK [19:12:12]SAM_PROTO_GetShiftState done [19:12:12]FM_GetShiftState done [19:12:12]req_shift_opened done [19:12:12]requested_item shift.open_date is exist - process it [19:12:12]req_shift_open_date [19:12:12]req_shift_open_date done [19:12:12]produce_requested_data done [19:12:12]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7757,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [19:12:12]process_action_free close_receipt [19:12:12]json_value_free [19:12:12]json_value_free done [19:12:12]process_json_proto returns [19:12:12]Send response to host [19:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7757,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [19:12:12]free response buf [19:12:12]execute_script done [19:12:12]execute_script returns [19:12:12]free content buf [19:12:12]Sock 8.Close socket [19:12:12]Sock 8.Thread stoped [19:12:12]accept exits with 9 [19:12:12]New connection [19:12:12]New thread 3066608996 created [19:12:12]Thread 3066752356 joined [19:12:12]Waiting for new connection... [19:12:12] Sock 9.Parse request [19:12:12]Sock 9.Check first char [19:12:12]Sock 9.First char is OK [19:12:12]request: POST /json_proto HTTP/1.0 [19:12:12]Method: POST [19:12:12]URL: /json_proto [19:12:12]Method is POST - this is cgi request [19:12:12]url: /json_proto [19:12:12]query_string will be loaded in cgi processing [19:12:12]execute_cgi json_proto POST (null) [19:12:12]execute_cgi path=json_proto method=POST [19:12:12]POST find Content-Length [19:12:12]Host: 172.17.47.195:8080 [19:12:12]Content-Length: 687 [19:12:12]Content-Type: application/json [19:12:12] [19:12:12]POST finish read [19:12:12]Found Content-Length = 687 [19:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:12]execute_script... [19:12: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)871954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:12]POST & json_proto [19:12:12]process_json_proto [19:12:12]json parsed OK: [19:12:12]protocol is kg_v1.0 [19:12:12]action value=close_receipt [19:12:12]process_action close_receipt [19:12:12]cmd_close_receipt [19:12:12]MH_GetDate [19:12:12]Write to MH i2c: F0 00 00 68 00 57 [19:12:12]Write i2c OK [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: F0 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: F0 09 00 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: F0 09 00 68 00 00 0C 6C F0 66 96 2E 95 66 ED [19:12:12]GetLastDocTimeStamp 1727032328 [19:12:12]current date 1727032332 [19:12:12]FM_GetShiftState [19:12:12]SAM_PROTO_GetShiftState [19:12:12]wFMCommunicate request_size=4 [19:12:12]MH_SAM_APDU [19:12:12]CAPDU: 80 13 01 00 [19:12:12]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [19:12:12]Write i2c OK [19:12:12]MH_I2C_Read... [19:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:12]Read from MH i2c: E2 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 0E 00 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [19:12:12]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [19:12:12]wFMCommunicate OK [19:12:12]SAM_PROTO_GetShiftState done [19:12:12]FM_GetShiftState done [19:12:12]opened in 1726964224 [19:12:12]opened+sec_in_day 1727050624 [19:12:12]quantity*price = 100050 [19:12:12]sum+1 = 100052 [19:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 156 22.09.2024 19:12 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7758 ФПД: 41888155912111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T191212&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7758&fm=41888155912111&tin=02508201610067®Number=0000000000190446&sum=100000 [19:12:13]StoreToDocumentArchive [19:12:13]shift 70 fd 7758 [19:12:13]save to /storage/0070/doc_00007758 [19:12:13]save last doc name /storage/0070/doc_00007758 to /storage/kkm_last_doc_name [19:12:13]save OK [19:12:13]Clear old archive folders... [19:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:12:13]tlvbuf is 0098B770 [19:12:13]SAM_PROTO_ClearQueue [19:12:13]wFMCommunicate request_size=4 [19:12:13]MH_SAM_APDU [19:12:13]CAPDU: 80 09 00 00 [19:12:13]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:13]Read from MH i2c: E2 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 03 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:12:13]RAPDU: 90 00 [19:12:13]wFMCommunicate OK [19:12:13]SAM_PROTO_ClearQueue done [19:12:13]KKMCreateOFDPacket [19:12:13]OFDProtocolAddRootSTLVToBuf [19:12:13]FM_MakeSignedData [19:12:13]FM_MakeSignedData [19:12:13]SAM_PROTO_SignData [19:12:13]wFMCommunicate request_size=4 [19:12:13]MH_SAM_APDU [19:12:13]CAPDU: 80 0D 01 02 [19:12:13]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:13]Read from MH i2c: E2 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 03 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [19:12:13]RAPDU: 90 00 [19:12:13]wFMCommunicate OK [19:12:13]wFMCommunicate request_size=255 [19:12:13]MH_SAM_APDU [19:12:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0C 6C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4E 1E 00 00 35 04 06 00 [19:12:14]Write to MH i2c: E2 02 01 78 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0C 6C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4E 1E 00 00 35 04 06 00 00 00 75 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]Connected sock=11 [19:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D8 E8 07 01 8B A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 Read from MH i2c: 00 E2 00 [19:12:14]00 MH_I2C_Read... [19:12:14]EB Read from MH i2c: 03 E2 26 03 00 00 EF [19:12:14]03 MH_I2C_Read... [19:12:14]0F 00 F6 03 01 00 01 Read from MH i2c: F7 E2 03 03 06 00 00 78 75 00 03 00 00 90 00 00 00 EC 00 [19:12:14]EE RAPDU: 03 90 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:14]00 0F [19:12:14]00 wFMCommunicate OK [19:12:14]F2 wFMCommunicate request_size=11 [19:12:14]03 MH_SAM_APDU [19:12:14]01 CAPDU: 00 80 01 0D F3 02 03 02 06 06 00 26 7C 18 29 D8 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 A7 01 47 00 AF 12 [19:12:14]04 Write to MH i2c: 04 E2 00 0E 9B 00 00 79 00 00 00 80 F4 0D 03 02 04 02 00 08 6C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 06 30 00 30 26 30 18 31 D8 39 A7 30 47 34 AF 34 00 36 00 11 B2 04 [19:12:14]10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4D 1E 00 00 35 04 06 00 2A Write i2c OK [19:12:14]51 MH_I2C_Read... [19:12:14]DD DC 1F 37 36 86 8D FF D3 E3 BA D6 [19:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [19:12:14]RAPDU: 90 00 [19:12:14]wFMCommunicate OK [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 0D 03 02 [19:12:14]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 0B 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 0B 00 7A 00 00 ED 5C C1 30 71 35 4B 99 90 00 BA [19:12:14]RAPDU: ED 5C C1 30 71 35 4B 99 90 00 [19:12:14]wFMCommunicate OK [19:12:14]SAM_PROTO_SignData done [19:12:14]FM_MakeSignedData done [19:12:14]CreateOFDProtocolMessage [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 11 00 00 [19:12:14]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 17 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [19:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [19:12:14]wFMCommunicate OK [19:12:14]CreateOFDProtocolMessage done [19:12:14]OFDSenderStorePacket 7758 [19:12:14]StoreOFDPacket docnum=7758 [19:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 9F 07 08 01 BB 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0C 6C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4E 1E 00 00 35 04 06 00 26 18 D8 A7 47 AF ED 5C C1 30 71 35 4B 99 [19:12:14]CheckFolder [19:12:14]dirname=/storage/ofd_packets [19:12:14]CheckFolder done [19:12:14]ProducePacketName [19:12:14]name=ofd_packets/00007758 [19:12:14]NVStorageSaveData ofd_packets/00007758 [19:12:14]File name is /storage/ofd_packets/00007758 [19:12:14]Write 302 bytes [19:12:14]NVStorageSaveData done [19:12:14]OFDSenderStorePacket done [19:12:14]KKMCreateOFDPacket done [19:12:14]NVStorageSaveData kkm_last_timestamp [19:12:14]File name is /storage/kkm_last_timestamp [19:12:14]Write 4 bytes [19:12:14]NVStorageSaveData done [19:12:14]ExternCall_PrintAddStr [19:12:14]wPrintStart [19:12:14]Write to MH i2c: 01 00 00 7C 00 7C [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 07 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [19:12:14]RasterBufferAndPrint [19:12:14]line Счет N : (1)871954 [19:12:14]line ИНН: 02508201610067 [19:12:14]line Контрольно-Кассовый Чек [19:12:14]line ПРОДАЖА [19:12:14]line ТРК (МРК, ГНК) : 11 [19:12:14]line Товар: 2710194210 [19:12:14]line ДТ(л)-К-4 [19:12:14]line 13.130 * 76.20 [19:12:14]line = 1000.51 [19:12:14]line НДС 12% НСП 1% [19:12:14]line > о реализуемом товаре [19:12:14]line ОКРУГЛЕНИЕ: -0.51 [19:12:14]line ИТОГО: 1000.00 [19:12:14]line Внесено: 1000.00 [19:12:14]line СДАЧА: 0.00 [19:12:14]line НСП 1% : 8.85 [19:12:14]line НДС 12% : 106.25 [19:12:14]line Наличными: 1000.00 [19:12:14]line Безнал.: 0.00 [19:12:14]line Место: АЗС № 137 "Партнер Нефть" [19:12:14]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [19:12:14]line СНО: Общий режим [19:12:14]line Чек 156 22.09.2024 19:12 [19:12:14]line Смена: 70 ФФД: 1.0 [19:12:14]line ЗНМ: 0300000041 [19:12:14]line РНМ: 0000000000190446 [19:12:14]line Версия ККМ: v1.0 [19:12:14]line ФМ: 0000000002094258 [19:12:14]line ФД: 7758 [19:12:14]line ФПД: 41888155912111 [19:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T191212&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7758&fm=41888155912111&tin=02508201610067®Number=0000000000190446&sum=100000 [19:12:14]written 0, free lines is 4095 [19:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E3 B9 47 00 5C D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4D 1E 00 00 F4 03 04 00 CA 16 F0 66 B6 04 01 00 00 34 64 48 E2 DA 36 0A F9 [19:12:15]CommunicateWithHost err = 0 [19:12:15]CheckOFDResponse [19:12:15]1017 (14) - 77093643461234 [19:12:15]1041 (16) - 0000000002094258 [19:12:15]1040 (4) - 7757 [19:12:15]1012 (4) - 22.09.2024 13:08 [19:12:15]1206 (1) - 0 [19:12:15]OFD Sender: Remove packet 7757 [19:12:15]ProducePacketName [19:12:15]name=ofd_packets/00007757 [19:12:15]NVStorageDeleteData [19:12:15]Write to MH i2c: 01 00 00 A7 00 A7 [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 07 00 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 ED 0C A7 [19:12:15]RasterBufferAndPrint [19:12:15]line [19:12:15]line [19:12:15]line [19:12:15]line [19:12:15]line [19:12:15]written 0, free lines is 3333 [19:12:15]MH_Cut [19:12:15]Write to MH i2c: D1 01 00 AE 00 01 80 [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: D1 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: D1 01 00 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: D1 01 00 AE 00 00 7F [19:12:15]Write to MH i2c: 01 00 00 AF 00 AF [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]OFD Sender: Processing packet 7758 [packets to send 51, broken 50] [19:12:15]ProducePacketName [19:12:15]name=ofd_packets/00007758 [19:12:15]OFD Sender: To server: pG, [19:12:15]CommunicateWithHost lk.salyk.kg:30040 [19:12:15]ConnectInit lk.salyk.kg [19:12:15]*** Cut start [19:12:15]*** Purtial cut [19:12:15]*** Stage 1: CUTSNS_PIN = 1 [19:12:16]Read from MH i2c: 01 [19:12:16]MH_I2C_Read... [19:12:16]*** Stop cut motor [19:12:16]*** Cut end [19:12:16]Read from MH i2c: 01 07 00 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [19:12:16]process_action close_receipt done [19:12:16]requested_data is exist [19:12:16]produce_requested_data [19:12:16]requested_item fm.sn is exist - process it [19:12:16]wFMCommunicate request_size=4 [19:12:16]MH_SAM_APDU [19:12:16]CAPDU: 80 11 00 00 [19:12:16]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [19:12:16]Write i2c OK [19:12:16]MH_I2C_Read... [19:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:16]Read from MH i2c: E2 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: E2 17 00 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [19:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [19:12:16]wFMCommunicate OK [19:12:16]requested_item fd.num is exist - process it [19:12:16]SAM_PROTO_GetFieldsCounters [19:12:16]wFMCommunicate request_size=4 [19:12:16]MH_SAM_APDU [19:12:16]CAPDU: 80 13 00 00 [19:12:16]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [19:12:16]Write i2c OK [19:12:16]MH_I2C_Read... [19:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:16]Read from MH i2c: E2 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: E2 62 00 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4E 1E 00 00 0E 04 04 00 46 00 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 D1 [19:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4E 1E 00 00 0E 04 04 00 46 00 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 [19:12:16]wFMCommunicate OK [19:12:16]SAM_PROTO_GetFieldsCounters done [19:12:16]requested_item shift.num is exist - process it [19:12:16]requested_item shift.opened is exist - process it [19:12:16]req_shift_opened [19:12:16]FM_GetShiftState [19:12:16]SAM_PROTO_GetShiftState [19:12:16]wFMCommunicate request_size=4 [19:12:16]MH_SAM_APDU [19:12:16]CAPDU: 80 13 01 00 [19:12:16]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [19:12:16]Write i2c OK [19:12:16]MH_I2C_Read... [19:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:16]Read from MH i2c: E2 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: E2 0E 00 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F2 [19:12:16]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [19:12:16]wFMCommunicate OK [19:12:16]SAM_PROTO_GetShiftState done [19:12:16]FM_GetShiftState done [19:12:16]req_shift_opened done [19:12:16]requested_item shift.open_date is exist - process it [19:12:16]req_shift_open_date [19:12:16]req_shift_open_date done [19:12:16]produce_requested_data done [19:12:16]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7758,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [19:12:16]process_action_free close_receipt [19:12:16]json_value_free [19:12:16]json_value_free done [19:12:16]process_json_proto returns [19:12:16]Send response to host [19:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7758,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [19:12:16]free response buf [19:12:16]execute_script done [19:12:16]execute_script returns [19:12:16]free content buf [19:12:16]Sock 9.Close socket [19:12:16]Sock 9.Thread stoped [19:12:19]Connected sock=10 [19:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 9F 07 08 01 BB 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0C 6C F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4E 1E 00 00 35 04 06 00 26 18 D8 A7 47 AF ED 5C C1 30 71 35 4B 99 [19:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 D3 B0 47 00 60 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 32 30 39 34 32 35 38 10 04 04 00 4E 1E 00 00 F4 03 04 00 D1 16 F0 66 B6 04 01 00 00 A1 97 54 49 A5 78 E4 CA [19:12:22]CommunicateWithHost err = 0 [19:12:22]CheckOFDResponse [19:12:22]1017 (14) - 77093643461234 [19:12:22]1041 (16) - 0000000002094258 [19:12:22]1040 (4) - 7758 [19:12:22]1012 (4) - 22.09.2024 13:08 [19:12:22]1206 (1) - 0 [19:12:22]OFD Sender: Remove packet 7758 [19:12:22]ProducePacketName [19:12:22]name=ofd_packets/00007758 [19:12:22]NVStorageDeleteData [19:12:22]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]recv_with_timeout no data received [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:46]recv_with_timeout no data received [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:12:59]recv_with_timeout no data received [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:11]recv_with_timeout no data received [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]recv_with_timeout no data received [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:13]recv_with_timeout no data received [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:54]recv_with_timeout no data received [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:04]recv_with_timeout no data received [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:08]recv_with_timeout no data received [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:08]recv_with_timeout no data received [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:27]recv_with_timeout no data received [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:32]recv_with_timeout no data received [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:21:59]recv_with_timeout no data received [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]recv_with_timeout no data received [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]recv_with_timeout no data received [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:06]recv_with_timeout no data received [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:07]recv_with_timeout no data received [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:57]recv_with_timeout no data received [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:17]recv_with_timeout no data received [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:43]recv_with_timeout no data received [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:07]recv_with_timeout no data received [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:33]recv_with_timeout no data received [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:55]recv_with_timeout no data received [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:50]recv_with_timeout no data received [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:08]recv_with_timeout no data received [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:27]recv_with_timeout no data received [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]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: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: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:01]recv_with_timeout no data received [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:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [19:46:13]recv_with_timeout no data received [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: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:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:45]recv_with_timeout no data received [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:20]recv_with_timeout no data received [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]recv_with_timeout no data received [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]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:01]recv_with_timeout no data received [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:17]recv_with_timeout no data received [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53: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:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55: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:39]recv_with_timeout no data received [19:55:40]OFD Sender: No OFD packet to send [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: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:29]recv_with_timeout no data received [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:13]recv_with_timeout no data received [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:27]recv_with_timeout no data received [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:47]recv_with_timeout no data received [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:26]recv_with_timeout no data received [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:18]recv_with_timeout no data received [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]recv_with_timeout no data received [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08: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:15]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:29]recv_with_timeout no data received [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10: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:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:07]recv_with_timeout no data received [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:08]recv_with_timeout no data received [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]recv_with_timeout no data received [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:33]recv_with_timeout no data received [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:39]recv_with_timeout no data received [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:30]recv_with_timeout no data received [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:49]recv_with_timeout no data received [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:02]recv_with_timeout no data received [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:43]recv_with_timeout no data received [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:23:59]recv_with_timeout no data received [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]/dev/ttyS4 opened [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [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 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [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 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005724E0 (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: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: 5983868+1721052822=1727036690 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 13 7D F0 66 96 2E 95 66 A4 [20:24:51]Current date/time: 22.09.2024 20:24 [20:24:51]FM_Init [20:24:51]wFMConnect [20:24:51]MH_SAM_On [20:24:51]Write to MH i2c: E0 00 00 08 00 E7 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]*** iso7816_init finished! [20:24:51]*** atr: [20:24:51]*** 0F 3B D5 18 FF 81 91 FE [20:24:51]*** 1F C3 80 73 C8 21 10 0A [20:24:51]*** 00 00 00 00 00 00 00 00 [20:24:51]*** 00 00 00 00 00 00 00 00 [20:24:51]*** 00 00 00 00 00 00 00 00 [20:24:51]*** 00 00 00 00 00 00 00 00 [20:24:51]*** 00 00 00 00 00 00 00 00 [20:24:51]*** 00 00 00 00 00 00 00 00 [20:24:51]Read from MH i2c: E0 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E0 10 00 [20:24:51]MH_I2C_Read... [20:24: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 [20:24:51]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:24:51]wFMCommunicate request_size=10 [20:24:51]MH_SAM_APDU [20:24:51]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:24:51]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:24:51]Read from MH i2c: E2 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 03 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:24:51]RAPDU: 90 00 [20:24:51]wFMCommunicate OK [20:24:51]wFMCommunicate request_size=4 [20:24:51]MH_SAM_APDU [20:24:51]CAPDU: 80 11 00 00 [20:24:51]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:51]Read from MH i2c: E2 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 17 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [20:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [20:24:51]wFMCommunicate OK [20:24:51]Detected FM SN is 0000000002094258 [20:24:51]Stored FM SN is 0000000002094258 [20:24:51]wFMCommunicate request_size=9 [20:24:51]MH_SAM_APDU [20:24:51]CAPDU: 80 16 00 00 04 BC C2 00 00 [20:24:51]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:24:51]Read from MH i2c: E2 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 03 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:24:51]RAPDU: 90 00 [20:24:51]wFMCommunicate OK [20:24:51]FM PIN OK [20:24:51]wFMCommunicate request_size=8 [20:24:51]MH_SAM_APDU [20:24:51]CAPDU: 80 14 04 00 03 02 00 01 [20:24:51]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:24:51]Read from MH i2c: E2 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 03 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:24:51]RAPDU: 90 00 [20:24:51]wFMCommunicate OK [20:24:51]wFMCommunicate request_size=13 [20:24:51]MH_SAM_APDU [20:24:51]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:24: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 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:24:51]Read from MH i2c: E2 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 03 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:24:51]RAPDU: 90 00 [20:24:51]wFMCommunicate OK [20:24:51]wFMCommunicate request_size=4 [20:24:51]MH_SAM_APDU [20:24:51]CAPDU: 80 11 00 00 [20:24:51]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:51]Read from MH i2c: E2 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 17 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [20:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [20:24:51]wFMCommunicate OK [20:24:51]DocumentArchiveInit [20:24:51]Start Httpd... [20:24:51]Httpd thread 3067563364 created [20:24:51]Write to MH i2c: 01 00 00 0F 00 0F [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 07 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:24:51]MH Int Process started [20:24:51]Allocated Socket 8 [20:24:51]Bind OK [20:24:51]Listen OK [20:24:51]httpd running on port 8080 [20:24:51]Waiting for new connection... [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:39]recv_with_timeout no data received [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:48]accept exits with 9 [20:28:48]New connection [20:28:48]New thread 3067276644 created [20:28:48]Waiting for new connection... [20:28:48] Sock 9.Parse request [20:28:48]Sock 9.Check first char [20:28:48]Sock 9.First char is OK [20:28:48]request: POST /json_proto HTTP/1.0 [20:28:48]Method: POST [20:28:48]URL: /json_proto [20:28:48]Method is POST - this is cgi request [20:28:48]url: /json_proto [20:28:48]query_string will be loaded in cgi processing [20:28:48]execute_cgi json_proto POST (null) [20:28:48]execute_cgi path=json_proto method=POST [20:28:48]POST find Content-Length [20:28:48]Host: 172.17.47.195:8080 [20:28:48]Content-Length: 682 [20:28:48]Content-Type: application/json [20:28:48] [20:28:48]POST finish read [20:28:48]Found Content-Length = 682 [20:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:48]execute_script... [20: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)872010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:48]POST & json_proto [20:28:48]process_json_proto [20:28:48]json parsed OK: [20:28:48]protocol is kg_v1.0 [20:28:48]action value=close_receipt [20:28:48]process_action close_receipt [20:28:48]cmd_close_receipt [20:28:48]MH_GetDate [20:28:48]Write to MH i2c: F0 00 00 10 00 FF [20:28:48]Write i2c OK [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: F0 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: F0 09 00 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: F0 09 00 10 00 00 00 7E F0 66 96 2E 95 66 9B [20:28:48]GetLastDocTimeStamp 1727032332 [20:28:48]current date 1727036928 [20:28:48]FM_GetShiftState [20:28:48]SAM_PROTO_GetShiftState [20:28:48]wFMCommunicate request_size=4 [20:28:48]MH_SAM_APDU [20:28:48]CAPDU: 80 13 01 00 [20:28:48]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [20:28:48]Write i2c OK [20:28:48]MH_I2C_Read... [20:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:48]Read from MH i2c: E2 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: E2 0E 00 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 51 [20:28:48]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [20:28:48]wFMCommunicate OK [20:28:48]SAM_PROTO_GetShiftState done [20:28:48]FM_GetShiftState done [20:28:48]opened in 1726964224 [20:28:48]opened+sec_in_day 1727050624 [20:28:48]quantity*price = 100005 [20:28:48]sum+1 = 100006 [20:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 157 22.09.2024 20:28 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7759 ФПД: 143123400764195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202848&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7759&fm=143123400764195&tin=02508201610067®Number=0000000000190446&sum=100000 [20:28:49]StoreToDocumentArchive [20:28:49]shift 70 fd 7759 [20:28:49]save to /storage/0070/doc_00007759 [20:28:49]save last doc name /storage/0070/doc_00007759 to /storage/kkm_last_doc_name [20:28:49]save OK [20:28:49]Clear old archive folders... [20:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:49]tlvbuf is 01F1D340 [20:28:49]SAM_PROTO_ClearQueue [20:28:49]wFMCommunicate request_size=4 [20:28:49]MH_SAM_APDU [20:28:49]CAPDU: 80 09 00 00 [20:28:49]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [20:28:49]Write i2c OK [20:28:49]MH_I2C_Read... [20:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:49]Read from MH i2c: E2 [20:28:49]MH_I2C_Read... [20:28:49]Read from MH i2c: E2 03 00 [20:28:49]MH_I2C_Read... [20:28:49]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [20:28:49]RAPDU: 90 00 [20:28:49]wFMCommunicate OK [20:28:49]SAM_PROTO_ClearQueue done [20:28:49]KKMCreateOFDPacket [20:28:49]OFDProtocolAddRootSTLVToBuf [20:28:49]FM_MakeSignedData [20:28:49]FM_MakeSignedData [20:28:49]SAM_PROTO_SignData [20:28:49]wFMCommunicate request_size=4 [20:28:49]MH_SAM_APDU [20:28:49]CAPDU: 80 0D 01 02 [20:28:49]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [20:28:49]Write i2c OK [20:28:49]MH_I2C_Read... [20:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:50]Read from MH i2c: E2 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 03 00 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [20:28:50]RAPDU: 90 00 [20:28:50]wFMCommunicate OK [20:28:50]wFMCommunicate request_size=255 [20:28:50]MH_SAM_APDU [20:28:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 00 7E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4F 1E 00 00 35 04 06 00 82 [20:28:50]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 00 7E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4F 1E 00 00 35 04 06 00 82 00 00 49 [20:28:50]Write i2c OK [20:28:50]MH_I2C_Read... [20:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:50]Read from MH i2c: E2 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 03 00 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [20:28:50]RAPDU: 90 00 [20:28:50]wFMCommunicate OK [20:28:50]wFMCommunicate request_size=10 [20:28:50]MH_SAM_APDU [20:28:50]CAPDU: 80 0D 02 02 05 2B 83 76 2B 23 [20:28:50]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 2B 83 76 2B 23 00 00 17 [20:28:50]Write i2c OK [20:28:50]MH_I2C_Read... [20:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:50]Read from MH i2c: E2 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 03 00 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [20:28:50]RAPDU: 90 00 [20:28:50]wFMCommunicate OK [20:28:50]wFMCommunicate request_size=4 [20:28:50]MH_SAM_APDU [20:28:50]CAPDU: 80 0D 03 02 [20:28:50]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [20:28:50]Write i2c OK [20:28:50]MH_I2C_Read... [20:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:50]Read from MH i2c: E2 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 0B 00 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 0B 00 22 00 00 B0 45 CB 3A 51 54 58 0F 90 00 A4 [20:28:50]RAPDU: B0 45 CB 3A 51 54 58 0F 90 00 [20:28:50]wFMCommunicate OK [20:28:50]SAM_PROTO_SignData done [20:28:50]FM_MakeSignedData done [20:28:50]CreateOFDProtocolMessage [20:28:50]wFMCommunicate request_size=4 [20:28:50]MH_SAM_APDU [20:28:50]CAPDU: 80 11 00 00 [20:28:50]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [20:28:50]Write i2c OK [20:28:50]MH_I2C_Read... [20:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:50]Read from MH i2c: E2 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 17 00 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 EE [20:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [20:28:50]wFMCommunicate OK [20:28:50]CreateOFDProtocolMessage done [20:28:50]OFDSenderStorePacket 7759 [20:28:50]StoreOFDPacket docnum=7759 [20:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 15 52 07 01 D1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 00 7E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4F 1E 00 00 35 04 06 00 82 2B 83 76 2B 23 B0 45 CB 3A 51 54 58 0F [20:28:50]CheckFolder [20:28:50]dirname=/storage/ofd_packets [20:28:50]CheckFolder done [20:28:50]ProducePacketName [20:28:50]name=ofd_packets/00007759 [20:28:50]NVStorageSaveData ofd_packets/00007759 [20:28:50]File name is /storage/ofd_packets/00007759 [20:28:50]Write 301 bytes [20:28:50]NVStorageSaveData done [20:28:50]OFDSenderStorePacket done [20:28:50]KKMCreateOFDPacket done [20:28:50]NVStorageSaveData kkm_last_timestamp [20:28:50]File name is /storage/kkm_last_timestamp [20:28:50]Write 4 bytes [20:28:50]NVStorageSaveData done [20:28:50]OFD Sender: Processing packet 7759 [packets to send 51, broken 50] [20:28:50]ProducePacketName [20:28:50]name=ofd_packets/00007759 [20:28:50]OFD Sender: To server: pG, [20:28:50]CommunicateWithHost lk.salyk.kg:30040 [20:28:50]ConnectInit lk.salyk.kg [20:28:50]ExternCall_PrintAddStr [20:28:50]wPrintStart [20:28:50]Write to MH i2c: 01 00 00 24 00 24 [20:28:50]Write i2c OK [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: 01 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: 01 07 00 [20:28:50]MH_I2C_Read... [20:28:50]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [20:28:50]RasterBufferAndPrint [20:28:50]line Счет N : (1)872010 [20:28:50]line ИНН: 02508201610067 [20:28:50]line Контрольно-Кассовый Чек [20:28:50]line ПРОДАЖА [20:28:50]line ТРК (МРК, ГНК) : 43 [20:28:50]line Товар: 2710124130 [20:28:50]line Аи-92-К-5 [20:28:50]line 14.750 * 67.80 [20:28:50]line = 1000.05 [20:28:50]line НДС 12% НСП 1% [20:28:50]line > о реализуемом товаре [20:28:50]line ОКРУГЛЕНИЕ: -0.05 [20:28:50]line ИТОГО: 1000.00 [20:28:50]line Внесено: 1000.00 [20:28:50]line СДАЧА: 0.00 [20:28:50]line НСП 1% : 8.85 [20:28:50]line НДС 12% : 106.20 [20:28:50]line Наличными: 1000.00 [20:28:50]line Безнал.: 0.00 [20:28:50]line Место: АЗС № 137 "Партнер Нефть" [20:28:50]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [20:28:50]line СНО: Общий режим [20:28:50]line Чек 157 22.09.2024 20:28 [20:28:50]line Смена: 70 ФФД: 1.0 [20:28:50]line ЗНМ: 0300000041 [20:28:50]line РНМ: 0000000000190446 [20:28:50]line Версия ККМ: v1.0 [20:28:50]line ФМ: 0000000002094258 [20:28:50]line ФД: 7759 [20:28:50]line ФПД: 143123400764195 [20:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202848&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7759&fm=143123400764195&tin=02508201610067®Number=0000000000190446&sum=100000 [20:28:50]written 0, free lines is 4095 [20:28:51]Write to MH i2c: 01 00 00 4F 00 4F [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: 01 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: 01 07 00 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 F3 0C 55 [20:28:51]RasterBufferAndPrint [20:28:51]line [20:28:51]line [20:28:51]line [20:28:51]line [20:28:51]line [20:28:51]written 0, free lines is 3321 [20:28:51]MH_Cut [20:28:51]Write to MH i2c: D1 01 00 56 00 01 28 [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: D1 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: D1 01 00 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: D1 01 00 56 00 00 27 [20:28:51]Write to MH i2c: 01 00 00 57 00 57 [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]Connected sock=12 [20:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 15 52 07 01 D1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 00 7E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4F 1E 00 00 35 04 06 00 82 2B 83 76 2B 23 B0 45 CB 3A 51 54 58 0F [20:28:51]*** Cut start [20:28:51]*** Purtial cut [20:28:51]*** Stage 1: CUTSNS_PIN = 1 [20:28:52]Read from MH i2c: 01 [20:28:52]MH_I2C_Read... [20:28:52]*** Stop cut motor [20:28:52]*** Cut end [20:28:52]Read from MH i2c: 01 07 00 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [20:28:52]process_action close_receipt done [20:28:52]requested_data is exist [20:28:52]produce_requested_data [20:28:52]requested_item fm.sn is exist - process it [20:28:52]wFMCommunicate request_size=4 [20:28:52]MH_SAM_APDU [20:28:52]CAPDU: 80 11 00 00 [20:28:52]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [20:28:52]Write i2c OK [20:28:52]MH_I2C_Read... [20:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:52]Read from MH i2c: E2 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: E2 17 00 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 23 [20:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [20:28:52]wFMCommunicate OK [20:28:52]requested_item fd.num is exist - process it [20:28:52]SAM_PROTO_GetFieldsCounters [20:28:52]wFMCommunicate request_size=4 [20:28:52]MH_SAM_APDU [20:28:52]CAPDU: 80 13 00 00 [20:28:52]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [20:28:52]Write i2c OK [20:28:52]MH_I2C_Read... [20:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:52]Read from MH i2c: E2 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: E2 62 00 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4F 1E 00 00 0E 04 04 00 46 00 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 7D [20:28:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 4F 1E 00 00 0E 04 04 00 46 00 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 [20:28:52]wFMCommunicate OK [20:28:52]SAM_PROTO_GetFieldsCounters done [20:28:52]requested_item shift.num is exist - process it [20:28:52]requested_item shift.opened is exist - process it [20:28:52]req_shift_opened [20:28:52]FM_GetShiftState [20:28:52]SAM_PROTO_GetShiftState [20:28:52]wFMCommunicate request_size=4 [20:28:52]MH_SAM_APDU [20:28:52]CAPDU: 80 13 01 00 [20:28:52]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [20:28:52]Write i2c OK [20:28:52]MH_I2C_Read... [20:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:52]Read from MH i2c: E2 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: E2 0E 00 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 9A [20:28:52]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [20:28:52]wFMCommunicate OK [20:28:52]SAM_PROTO_GetShiftState done [20:28:52]FM_GetShiftState done [20:28:52]req_shift_opened done [20:28:52]requested_item shift.open_date is exist - process it [20:28:52]req_shift_open_date [20:28:52]req_shift_open_date done [20:28:52]produce_requested_data done [20:28:52]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7759,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [20:28:52]process_action_free close_receipt [20:28:52]json_value_free [20:28:52]json_value_free done [20:28:52]process_json_proto returns [20:28:52]Send response to host [20:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7759,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [20:28:52]free response buf [20:28:52]execute_script done [20:28:52]execute_script returns [20:28:52]free content buf [20:28:52]Sock 9.Close socket [20:28:52]Sock 9.Thread stoped [20:28:56]recv_with_timeout no data received [20:28:56]CommunicateWithHost answer receiving error [20:28:56]CommunicateWithHost err = -3 [20:28:56]OFD Sender: Server communicate error [20:29:01]OFD Sender: Processing packet 7759 [packets to send 51, broken 50] [20:29:01]ProducePacketName [20:29:01]name=ofd_packets/00007759 [20:29:01]OFD Sender: To server: pG, [20:29:01]CommunicateWithHost lk.salyk.kg:30040 [20:29:01]ConnectInit lk.salyk.kg [20:29:04]recv_with_timeout no data received [20:29:06]ConnectInit Can't take IP for lk.salyk.kg [20:29:06]CommunicateWithHost connect error [20:29:06]CommunicateWithHost err = -1 [20:29:06]OFD Sender: Server communicate error [20:29:11]OFD Sender: Processing packet 7759 [packets to send 51, broken 50] [20:29:11]ProducePacketName [20:29:11]name=ofd_packets/00007759 [20:29:11]OFD Sender: To server: pG, [20:29:11]CommunicateWithHost lk.salyk.kg:30040 [20:29:11]ConnectInit lk.salyk.kg [20:29:15]Connected sock=9 [20:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 15 52 07 01 D1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 00 7E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4F 1E 00 00 35 04 06 00 82 2B 83 76 2B 23 B0 45 CB 3A 51 54 58 0F [20:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 71 3A 47 00 F4 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 4F 1E 00 00 F4 03 04 00 D7 28 F0 66 B6 04 01 00 00 91 82 17 D4 C1 BC 35 4C [20:29:17]CommunicateWithHost err = 0 [20:29:17]CheckOFDResponse [20:29:17]1017 (14) - 77093643461234 [20:29:17]1041 (16) - 0000000002094258 [20:29:17]1040 (4) - 7759 [20:29:17]1012 (4) - 22.09.2024 14:25 [20:29:17]1206 (1) - 0 [20:29:17]OFD Sender: Remove packet 7759 [20:29:17]ProducePacketName [20:29:17]name=ofd_packets/00007759 [20:29:17]NVStorageDeleteData [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]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:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:45]recv_with_timeout no data received [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:34]recv_with_timeout no data received [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [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:25]recv_with_timeout no data received [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:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [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:50]recv_with_timeout no data received [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:02]recv_with_timeout no data received [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:48]recv_with_timeout no data received [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:10]accept exits with 10 [20:36:10]New connection [20:36:10]New thread 3067133284 created [20:36:10]Thread 3067276644 joined [20:36:10]Waiting for new connection... [20:36:10] Sock 10.Parse request [20:36:10]Sock 10.Check first char [20:36:10]Sock 10.First char is OK [20:36:10]request: POST /json_proto HTTP/1.0 [20:36:10]Method: POST [20:36:10]URL: /json_proto [20:36:10]Method is POST - this is cgi request [20:36:10]url: /json_proto [20:36:10]query_string will be loaded in cgi processing [20:36:10]execute_cgi json_proto POST (null) [20:36:10]execute_cgi path=json_proto method=POST [20:36:10]POST find Content-Length [20:36:10]Host: 172.17.47.195:8080 [20:36:10]Content-Length: 803 [20:36:10]Content-Type: application/json [20:36:10] [20:36:10]POST finish read [20:36:10]Found Content-Length = 803 [20:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:10]execute_script... [20: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)872012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:10]POST & json_proto [20:36:10]process_json_proto [20:36:10]json parsed OK: [20:36:10]protocol is kg_v1.0 [20:36:10]action value=close_receipt [20:36:10]process_action close_receipt [20:36:10]cmd_close_receipt [20:36:10]MH_GetDate [20:36:10]Write to MH i2c: F0 00 00 5B 00 4A [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: F0 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: F0 09 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: F0 09 00 5B 00 00 BA 7F F0 66 96 2E 95 66 A1 [20:36:10]GetLastDocTimeStamp 1727036928 [20:36:10]current date 1727037370 [20:36:10]FM_GetShiftState [20:36:10]SAM_PROTO_GetShiftState [20:36:10]wFMCommunicate request_size=4 [20:36:10]MH_SAM_APDU [20:36:10]CAPDU: 80 13 01 00 [20:36:10]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:10]Read from MH i2c: E2 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 0E 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 9C [20:36:10]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [20:36:10]wFMCommunicate OK [20:36:10]SAM_PROTO_GetShiftState done [20:36:10]FM_GetShiftState done [20:36:10]opened in 1726964224 [20:36:10]opened+sec_in_day 1727050624 [20:36:10]quantity*price = 100005 [20:36:10]sum+1 = 100006 [20:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 158 22.09.2024 20:36 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7760 ФПД: 219397187736565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T203610&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7760&fm=219397187736565&tin=02508201610067®Number=0000000000190446&sum=100005 [20:36:11]StoreToDocumentArchive [20:36:11]shift 70 fd 7760 [20:36:11]save to /storage/0070/doc_00007760 [20:36:11]save last doc name /storage/0070/doc_00007760 to /storage/kkm_last_doc_name [20:36:11]save OK [20:36:11]Clear old archive folders... [20:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:11]tlvbuf is 01F2B960 [20:36:11]SAM_PROTO_ClearQueue [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 09 00 00 [20:36:11]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [20:36:11]RAPDU: 90 00 [20:36:11]wFMCommunicate OK [20:36:11]SAM_PROTO_ClearQueue done [20:36:11]KKMCreateOFDPacket [20:36:11]OFDProtocolAddRootSTLVToBuf [20:36:11]FM_MakeSignedData [20:36:11]FM_MakeSignedData [20:36:11]SAM_PROTO_SignData [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 0D 01 02 [20:36:11]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:12]Read from MH i2c: E2 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 03 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [20:36:12]RAPDU: 90 00 [20:36:12]wFMCommunicate OK [20:36:12]wFMCommunicate request_size=255 [20:36:12]MH_SAM_APDU [20: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 BA 7F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 50 1E 00 00 35 04 06 00 C7 [20:36:12]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 BA 7F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 50 1E 00 00 35 04 06 00 C7 00 00 A0 [20:36:12]Write i2c OK [20:36:12]MH_I2C_Read... [20:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:12]Read from MH i2c: E2 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 03 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [20:36:12]RAPDU: 90 00 [20:36:12]wFMCommunicate OK [20:36:12]wFMCommunicate request_size=10 [20:36:12]MH_SAM_APDU [20:36:12]CAPDU: 80 0D 02 02 05 8A 63 70 93 F5 [20:36:12]Write to MH i2c: E2 0D 00 6C 00 80 0D 02 02 05 00 8A 63 70 93 F5 00 00 D5 [20:36:12]Write i2c OK [20:36:12]MH_I2C_Read... [20:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:12]Read from MH i2c: E2 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 03 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [20:36:12]RAPDU: 90 00 [20:36:12]wFMCommunicate OK [20:36:12]wFMCommunicate request_size=4 [20:36:12]MH_SAM_APDU [20:36:12]CAPDU: 80 0D 03 02 [20:36:12]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [20:36:12]Write i2c OK [20:36:12]MH_I2C_Read... [20:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:12]Read from MH i2c: E2 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 0B 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 0B 00 6D 00 00 18 E9 27 A2 12 12 5E 23 90 00 58 [20:36:12]RAPDU: 18 E9 27 A2 12 12 5E 23 90 00 [20:36:12]wFMCommunicate OK [20:36:12]SAM_PROTO_SignData done [20:36:12]FM_MakeSignedData done [20:36:12]CreateOFDProtocolMessage [20:36:12]wFMCommunicate request_size=4 [20:36:12]MH_SAM_APDU [20:36:12]CAPDU: 80 11 00 00 [20:36:12]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [20:36:12]Write i2c OK [20:36:12]MH_I2C_Read... [20:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:12]Read from MH i2c: E2 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 17 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 39 [20:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [20:36:12]wFMCommunicate OK [20:36:12]CreateOFDProtocolMessage done [20:36:12]OFDSenderStorePacket 7760 [20:36:12]StoreOFDPacket docnum=7760 [20:36:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 2D D1 07 01 18 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 BA 7F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 50 1E 00 00 35 04 06 00 C7 8A 63 70 93 F5 18 E9 27 A2 12 12 5E 23 [20:36:12]CheckFolder [20:36:12]dirname=/storage/ofd_packets [20:36:12]CheckFolder done [20:36:12]ProducePacketName [20:36:12]name=ofd_packets/00007760 [20:36:12]NVStorageSaveData ofd_packets/00007760 [20:36:12]File name is /storage/ofd_packets/00007760 [20:36:12]Write 301 bytes [20:36:12]NVStorageSaveData done [20:36:12]OFDSenderStorePacket done [20:36:12]KKMCreateOFDPacket done [20:36:12]NVStorageSaveData kkm_last_timestamp [20:36:12]File name is /storage/kkm_last_timestamp [20:36:12]Write 4 bytes [20:36:12]NVStorageSaveData done [20:36:12]ExternCall_PrintAddStr [20:36:12]wPrintStart [20:36:12]Write to MH i2c: 01 00 00 6F 00 6F [20:36:12]Write i2c OK [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: 01 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: 01 07 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [20:36:12]RasterBufferAndPrint [20:36:12]line Счет N : (1)872012 [20:36:12]line ИНН: 02508201610067 [20:36:12]line Контрольно-Кассовый Чек [20:36:12]line ПРОДАЖА [20:36:12]line ТРК (МРК, ГНК) : 43 [20:36:12]line Товар: 2710124130 [20:36:12]line Аи-92-К-5 [20:36:12]line 14.750 * 67.80 [20:36:12]line = 1000.05 [20:36:12]line НДС 12% НСП 1% [20:36:12]line > о реализуемом товаре [20:36:12]line ИТОГО: 1000.05 [20:36:12]line НСП 1% : 8.85 [20:36:12]line НДС 12% : 106.20 [20:36:12]line Наличными: 0.00 [20:36:12]line Безнал.: 1000.05 [20:36:12]line Место: АЗС № 137 "Партнер Нефть" [20:36:12]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [20:36:12]line СНО: Общий режим [20:36:12]line Чек 158 22.09.2024 20:36 [20:36:12]line Смена: 70 ФФД: 1.0 [20:36:12]line ЗНМ: 0300000041 [20:36:12]line РНМ: 0000000000190446 [20:36:12]line Версия ККМ: v1.0 [20:36:12]line Платежная система: O! деньги [20:36:12]line ФМ: 0000000002094258 [20:36:12]line ФД: 7760 [20:36:12]line ФПД: 219397187736565 [20:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T203610&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7760&fm=219397187736565&tin=02508201610067®Number=0000000000190446&sum=100005 [20:36:12]OFD Sender: Processing packet 7760 [packets to send 51, broken 50] [20:36:12]ProducePacketName [20:36:12]name=ofd_packets/00007760 [20:36:12]OFD Sender: To server: pG, [20:36:12]CommunicateWithHost lk.salyk.kg:30040 [20:36:12]ConnectInit lk.salyk.kg [20:36:12]written 0, free lines is 4095 [20:36:13]Write to MH i2c: 01 00 00 99 00 99 [20:36:13]Write i2c OK [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: 01 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: 01 07 00 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: 01 07 00 99 00 00 00 00 00 00 FF 0C AB [20:36:13]RasterBufferAndPrint [20:36:13]line [20:36:13]line [20:36:13]line [20:36:13]line [20:36:13]line [20:36:13]written 0, free lines is 3333 [20:36:13]MH_Cut [20:36:13]Write to MH i2c: D1 01 00 A0 00 01 72 [20:36:13]Write i2c OK [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: D1 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: D1 01 00 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: D1 01 00 A0 00 00 71 [20:36:13]Write to MH i2c: 01 00 00 A1 00 A1 [20:36:13]Write i2c OK [20:36:13]MH_I2C_Read... [20:36:13]*** Cut start [20:36:13]*** Purtial cut [20:36:13]*** Stage 1: CUTSNS_PIN = 1 [20:36:14]Read from MH i2c: 01 [20:36:14]MH_I2C_Read... [20:36:14]*** Stop cut motor [20:36:14]*** Cut end [20:36:14]Read from MH i2c: 01 07 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 FF 0F B6 [20:36:14]process_action close_receipt done [20:36:14]requested_data is exist [20:36:14]produce_requested_data [20:36:14]requested_item fm.sn is exist - process it [20:36:14]wFMCommunicate request_size=4 [20:36:14]MH_SAM_APDU [20:36:14]CAPDU: 80 11 00 00 [20:36:14]Write to MH i2c: E2 08 00 A2 00 80 11 00 00 00 00 00 00 1C [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:14]Read from MH i2c: E2 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 17 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 17 00 A2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 6D [20:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [20:36:14]wFMCommunicate OK [20:36:14]requested_item fd.num is exist - process it [20:36:14]SAM_PROTO_GetFieldsCounters [20:36:14]wFMCommunicate request_size=4 [20:36:14]MH_SAM_APDU [20:36:14]CAPDU: 80 13 00 00 [20:36:14]Write to MH i2c: E2 08 00 A3 00 80 13 00 00 00 00 00 00 1F [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:14]Read from MH i2c: E2 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 62 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 62 00 A3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 50 1E 00 00 0E 04 04 00 46 00 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 CB [20:36:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 50 1E 00 00 0E 04 04 00 46 00 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 [20:36:14]wFMCommunicate OK [20:36:14]SAM_PROTO_GetFieldsCounters done [20:36:14]requested_item shift.num is exist - process it [20:36:14]requested_item shift.opened is exist - process it [20:36:14]req_shift_opened [20:36:14]FM_GetShiftState [20:36:14]SAM_PROTO_GetShiftState [20:36:14]wFMCommunicate request_size=4 [20:36:14]MH_SAM_APDU [20:36:14]CAPDU: 80 13 01 00 [20:36:14]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:14]Read from MH i2c: E2 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E4 [20:36:14]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [20:36:14]wFMCommunicate OK [20:36:14]SAM_PROTO_GetShiftState done [20:36:14]FM_GetShiftState done [20:36:14]req_shift_opened done [20:36:14]requested_item shift.open_date is exist - process it [20:36:14]req_shift_open_date [20:36:14]req_shift_open_date done [20:36:14]produce_requested_data done [20:36:14]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7760,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [20:36:14]process_action_free close_receipt [20:36:14]json_value_free [20:36:14]json_value_free done [20:36:14]process_json_proto returns [20:36:14]Send response to host [20:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7760,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [20:36:14]free response buf [20:36:14]execute_script done [20:36:14]execute_script returns [20:36:14]free content buf [20:36:14]Sock 10.Close socket [20:36:14]Sock 10.Thread stoped [20:36:15]Connected sock=11 [20:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 2D D1 07 01 18 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 BA 7F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 50 1E 00 00 35 04 06 00 C7 8A 63 70 93 F5 18 E9 27 A2 12 12 5E 23 [20:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 A8 67 47 00 F9 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 50 1E 00 00 F4 03 04 00 7B 2A F0 66 B6 04 01 00 00 F9 9F D9 2A A7 E9 75 31 [20:36:15]CommunicateWithHost err = 0 [20:36:15]CheckOFDResponse [20:36:15]1017 (14) - 77093643461234 [20:36:15]1041 (16) - 0000000002094258 [20:36:15]1040 (4) - 7760 [20:36:15]1012 (4) - 22.09.2024 14:32 [20:36:15]1206 (1) - 0 [20:36:15]OFD Sender: Remove packet 7760 [20:36:15]ProducePacketName [20:36:15]name=ofd_packets/00007760 [20:36:15]NVStorageDeleteData [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:50]recv_with_timeout no data received [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:24]recv_with_timeout no data received [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:34]recv_with_timeout no data received [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:14]recv_with_timeout no data received [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:42]recv_with_timeout no data received [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:24]recv_with_timeout no data received [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]recv_with_timeout no data received [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:18]recv_with_timeout no data received [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:05]recv_with_timeout no data received [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:32]recv_with_timeout no data received [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:19]recv_with_timeout no data received [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:08]recv_with_timeout no data received [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:26]recv_with_timeout no data received [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:54]recv_with_timeout no data received [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:20]recv_with_timeout no data received [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:14]recv_with_timeout no data received [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:41]recv_with_timeout no data received [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:10]recv_with_timeout no data received [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:33]recv_with_timeout no data received [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:03]recv_with_timeout no data received [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]recv_with_timeout no data received [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]recv_with_timeout no data received [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:43]recv_with_timeout no data received [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:32]recv_with_timeout no data received [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:46]recv_with_timeout no data received [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:01]recv_with_timeout no data received [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:23]recv_with_timeout no data received [21:03:27]OFD Sender: No OFD packet to send [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: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:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:08]recv_with_timeout no data received [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:34]recv_with_timeout no data received [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:01]recv_with_timeout no data received [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:30]recv_with_timeout no data received [21:05:31]accept exits with 9 [21:05:31]New connection [21:05:31]New thread 3067276644 created [21:05:31]Thread 3067133284 joined [21:05:31]Waiting for new connection... [21:05:31] Sock 9.Parse request [21:05:31]Sock 9.Check first char [21:05:31]Sock 9.First char is OK [21:05:31]request: POST /json_proto HTTP/1.0 [21:05:31]Method: POST [21:05:31]URL: /json_proto [21:05:31]Method is POST - this is cgi request [21:05:31]url: /json_proto [21:05:31]query_string will be loaded in cgi processing [21:05:31]execute_cgi json_proto POST (null) [21:05:31]execute_cgi path=json_proto method=POST [21:05:31]POST find Content-Length [21:05:31]Host: 172.17.47.195:8080 [21:05:31]Content-Length: 816 [21:05:31]Content-Type: application/json [21:05:31] [21:05:31]POST finish read [21:05:31]Found Content-Length = 816 [21:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:31]execute_script... [21:05:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:31]POST & json_proto [21:05:31]process_json_proto [21:05:31]json parsed OK: [21:05:31]protocol is kg_v1.0 [21:05:31]action value=close_receipt [21:05:31]process_action close_receipt [21:05:31]cmd_close_receipt [21:05:31]MH_GetDate [21:05:31]Write to MH i2c: F0 00 00 A5 00 94 [21:05:31]Write i2c OK [21:05:31]MH_I2C_Read... [21:05:31]Read from MH i2c: F0 [21:05:31]MH_I2C_Read... [21:05:31]Read from MH i2c: F0 09 00 [21:05:31]MH_I2C_Read... [21:05:31]Read from MH i2c: F0 09 00 A5 00 00 9C 86 F0 66 96 2E 95 66 D4 [21:05:31]GetLastDocTimeStamp 1727037370 [21:05:31]current date 1727039132 [21:05:31]FM_GetShiftState [21:05:31]SAM_PROTO_GetShiftState [21:05:31]wFMCommunicate request_size=4 [21:05:31]MH_SAM_APDU [21:05:31]CAPDU: 80 13 01 00 [21:05:31]Write to MH i2c: E2 08 00 A6 00 80 13 01 00 00 00 00 00 23 [21:05:31]Write i2c OK [21:05:31]MH_I2C_Read... [21:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:31]Read from MH i2c: E2 [21:05:31]MH_I2C_Read... [21:05:31]Read from MH i2c: E2 0E 00 [21:05:31]MH_I2C_Read... [21:05:31]Read from MH i2c: E2 0E 00 A6 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 E6 [21:05:31]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [21:05:31]wFMCommunicate OK [21:05:31]SAM_PROTO_GetShiftState done [21:05:31]FM_GetShiftState done [21:05:31]opened in 1726964224 [21:05:31]opened+sec_in_day 1727050624 [21:05:31]quantity*price = 50036 [21:05:31]sum+1 = 50037 [21:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 159 22.09.2024 21:05 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094258 ФД: 7761 ФПД: 30679445147557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210532&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7761&fm=30679445147557&tin=02508201610067®Number=0000000000190446&sum=50036 [21:05:32]StoreToDocumentArchive [21:05:32]shift 70 fd 7761 [21:05:32]save to /storage/0070/doc_00007761 [21:05:32]save last doc name /storage/0070/doc_00007761 to /storage/kkm_last_doc_name [21:05:32]save OK [21:05:32]Clear old archive folders... [21:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:32]tlvbuf is 01F2F380 [21:05:32]SAM_PROTO_ClearQueue [21:05:32]wFMCommunicate request_size=4 [21:05:32]MH_SAM_APDU [21:05:32]CAPDU: 80 09 00 00 [21:05:32]Write to MH i2c: E2 08 00 B3 00 80 09 00 00 00 00 00 00 25 [21:05:32]Write i2c OK [21:05:32]MH_I2C_Read... [21:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:32]Read from MH i2c: E2 [21:05:32]MH_I2C_Read... [21:05:32]Read from MH i2c: E2 03 00 [21:05:32]MH_I2C_Read... [21:05:32]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [21:05:32]RAPDU: 90 00 [21:05:32]wFMCommunicate OK [21:05:32]SAM_PROTO_ClearQueue done [21:05:32]KKMCreateOFDPacket [21:05:32]OFDProtocolAddRootSTLVToBuf [21:05:32]FM_MakeSignedData [21:05:32]FM_MakeSignedData [21:05:32]SAM_PROTO_SignData [21:05:32]wFMCommunicate request_size=4 [21:05:32]MH_SAM_APDU [21:05:32]CAPDU: 80 0D 01 02 [21:05:32]Write to MH i2c: E2 08 00 B4 00 80 0D 01 02 00 00 00 00 2D [21:05:32]Write i2c OK [21:05:32]MH_I2C_Read... [21:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:33]Read from MH i2c: E2 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 03 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [21:05:33]RAPDU: 90 00 [21:05:33]wFMCommunicate OK [21:05:33]wFMCommunicate request_size=255 [21:05:33]MH_SAM_APDU [21:05:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 9C 86 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 51 1E 00 00 35 04 06 00 1B [21:05:33]Write to MH i2c: E2 02 01 B5 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 9C 86 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 51 1E 00 00 35 04 06 00 1B 00 00 D8 [21:05:33]Write i2c OK [21:05:33]MH_I2C_Read... [21:05:33]OFD Sender: No OFD packet to send [21:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:33]Read from MH i2c: E2 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 03 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [21:05:33]RAPDU: 90 00 [21:05:33]wFMCommunicate OK [21:05:33]wFMCommunicate request_size=10 [21:05:33]MH_SAM_APDU [21:05:33]CAPDU: 80 0D 02 02 05 E7 1D 6E 0F A5 [21:05:33]Write to MH i2c: E2 0D 00 B6 00 80 0D 02 02 05 00 E7 1D 6E 0F A5 00 00 60 [21:05:33]Write i2c OK [21:05:33]MH_I2C_Read... [21:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:33]Read from MH i2c: E2 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 03 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [21:05:33]RAPDU: 90 00 [21:05:33]wFMCommunicate OK [21:05:33]wFMCommunicate request_size=4 [21:05:33]MH_SAM_APDU [21:05:33]CAPDU: 80 0D 03 02 [21:05:33]Write to MH i2c: E2 08 00 B7 00 80 0D 03 02 00 00 00 00 32 [21:05:33]Write i2c OK [21:05:33]MH_I2C_Read... [21:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:33]Read from MH i2c: E2 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 0B 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 0B 00 B7 00 00 27 89 52 DD E5 BE EE 7D 90 00 20 [21:05:33]RAPDU: 27 89 52 DD E5 BE EE 7D 90 00 [21:05:33]wFMCommunicate OK [21:05:33]SAM_PROTO_SignData done [21:05:33]FM_MakeSignedData done [21:05:33]CreateOFDProtocolMessage [21:05:33]wFMCommunicate request_size=4 [21:05:33]MH_SAM_APDU [21:05:33]CAPDU: 80 11 00 00 [21:05:33]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [21:05:33]Write i2c OK [21:05:33]MH_I2C_Read... [21:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:33]Read from MH i2c: E2 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 17 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 83 [21:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:05:33]wFMCommunicate OK [21:05:33]CreateOFDProtocolMessage done [21:05:33]OFDSenderStorePacket 7761 [21:05:33]StoreOFDPacket docnum=7761 [21:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 51 A2 07 01 F2 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 9C 86 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 51 1E 00 00 35 04 06 00 1B E7 1D 6E 0F A5 27 89 52 DD E5 BE EE 7D [21:05:33]CheckFolder [21:05:33]dirname=/storage/ofd_packets [21:05:33]CheckFolder done [21:05:33]ProducePacketName [21:05:33]name=ofd_packets/00007761 [21:05:33]NVStorageSaveData ofd_packets/00007761 [21:05:33]File name is /storage/ofd_packets/00007761 [21:05:33]Write 301 bytes [21:05:33]NVStorageSaveData done [21:05:33]OFDSenderStorePacket done [21:05:33]KKMCreateOFDPacket done [21:05:33]NVStorageSaveData kkm_last_timestamp [21:05:33]File name is /storage/kkm_last_timestamp [21:05:33]Write 4 bytes [21:05:33]NVStorageSaveData done [21:05:33]ExternCall_PrintAddStr [21:05:33]wPrintStart [21:05:33]Write to MH i2c: 01 00 00 B9 00 B9 [21:05:33]Write i2c OK [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: 01 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: 01 07 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [21:05:33]RasterBufferAndPrint [21:05:33]line Счет N : (1)872019 [21:05:33]line ИНН: 02508201610067 [21:05:33]line Контрольно-Кассовый Чек [21:05:33]line ПРОДАЖА [21:05:33]line ТРК (МРК, ГНК) : 43 [21:05:33]line Товар: 2710124130 [21:05:33]line Аи-92-К-5 [21:05:33]line 7.380 * 67.80 [21:05:33]line = 500.36 [21:05:33]line НДС 12% НСП 1% [21:05:33]line > о реализуемом товаре [21:05:33]line ИТОГО: 500.36 [21:05:33]line НСП 1% : 4.43 [21:05:33]line НДС 12% : 53.14 [21:05:33]line Наличными: 0.00 [21:05:33]line Безнал.: 500.36 [21:05:33]line Место: АЗС № 137 "Партнер Нефть" [21:05:33]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [21:05:33]line СНО: Общий режим [21:05:33]line Чек 159 22.09.2024 21:05 [21:05:33]line Смена: 70 ФФД: 1.0 [21:05:33]line ЗНМ: 0300000041 [21:05:33]line РНМ: 0000000000190446 [21:05:33]line Версия ККМ: v1.0 [21:05:33]line Платежная система: Бакай Банк [21:05:33]line ФМ: 0000000002094258 [21:05:33]line ФД: 7761 [21:05:33]line ФПД: 30679445147557 [21:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210532&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7761&fm=30679445147557&tin=02508201610067®Number=0000000000190446&sum=50036 [21:05:33]OFD Sender: Processing packet 7761 [packets to send 51, broken 50] [21:05:33]ProducePacketName [21:05:33]name=ofd_packets/00007761 [21:05:33]OFD Sender: To server: pG, [21:05:33]CommunicateWithHost lk.salyk.kg:30040 [21:05:33]ConnectInit lk.salyk.kg [21:05:33]written 0, free lines is 4095 [21:05:34]Write to MH i2c: 01 00 00 E3 00 E3 [21:05:34]Write i2c OK [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: 01 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: 01 07 00 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 F7 0C ED [21:05:34]RasterBufferAndPrint [21:05:34]line [21:05:34]line [21:05:34]line [21:05:34]line [21:05:34]line [21:05:34]written 0, free lines is 3326 [21:05:34]MH_Cut [21:05:34]Write to MH i2c: D1 01 00 EA 00 01 BC [21:05:34]Write i2c OK [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: D1 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: D1 01 00 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: D1 01 00 EA 00 00 BB [21:05:34]Write to MH i2c: 01 00 00 EB 00 EB [21:05:34]Write i2c OK [21:05:34]MH_I2C_Read... [21:05:34]*** Cut start [21:05:34]*** Purtial cut [21:05:34]*** Stage 1: CUTSNS_PIN = 1 [21:05:35]Read from MH i2c: 01 [21:05:35]MH_I2C_Read... [21:05:35]*** Stop cut motor [21:05:35]*** Cut end [21:05:35]Read from MH i2c: 01 07 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 FF 0F 00 [21:05:35]process_action close_receipt done [21:05:35]requested_data is exist [21:05:35]produce_requested_data [21:05:35]requested_item fm.sn is exist - process it [21:05:35]wFMCommunicate request_size=4 [21:05:35]MH_SAM_APDU [21:05:35]CAPDU: 80 11 00 00 [21:05:35]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:35]Read from MH i2c: E2 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 17 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 B7 [21:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:05:35]wFMCommunicate OK [21:05:35]requested_item fd.num is exist - process it [21:05:35]SAM_PROTO_GetFieldsCounters [21:05:35]wFMCommunicate request_size=4 [21:05:35]MH_SAM_APDU [21:05:35]CAPDU: 80 13 00 00 [21:05:35]Write to MH i2c: E2 08 00 ED 00 80 13 00 00 00 00 00 00 69 [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:35]Connected sock=10 [21:05:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 51 A2 07 01 F2 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 9C 86 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 51 1E 00 00 35 04 06 00 1B E7 1D 6E 0F A5 27 89 52 DD E5 BE EE 7D [21:05:35]Read from MH i2c: E2 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 62 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 62 00 ED 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 51 1E 00 00 0E 04 04 00 46 00 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 19 [21:05:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 51 1E 00 00 0E 04 04 00 46 00 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:05:35]wFMCommunicate OK [21:05:35]SAM_PROTO_GetFieldsCounters done [21:05:35]requested_item shift.num is exist - process it [21:05:35]requested_item shift.opened is exist - process it [21:05:35]req_shift_opened [21:05:35]FM_GetShiftState [21:05:35]SAM_PROTO_GetShiftState [21:05:35]wFMCommunicate request_size=4 [21:05:35]MH_SAM_APDU [21:05:35]CAPDU: 80 13 01 00 [21:05:35]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:35]Read from MH i2c: E2 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 0E 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 2E [21:05:35]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [21:05:35]wFMCommunicate OK [21:05:35]SAM_PROTO_GetShiftState done [21:05:35]FM_GetShiftState done [21:05:35]req_shift_opened done [21:05:35]requested_item shift.open_date is exist - process it [21:05:35]req_shift_open_date [21:05:35]req_shift_open_date done [21:05:35]produce_requested_data done [21:05:35]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7761,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [21:05:35]process_action_free close_receipt [21:05:35]json_value_free [21:05:35]json_value_free done [21:05:35]process_json_proto returns [21:05:35]Send response to host [21:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7761,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [21:05:35]free response buf [21:05:35]execute_script done [21:05:35]execute_script returns [21:05:35]free content buf [21:05:35]Sock 9.Close socket [21:05:35]Sock 9.Thread stoped [21:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 62 04 47 00 77 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 32 30 39 34 32 35 38 10 04 04 00 51 1E 00 00 F4 03 04 00 5D 31 F0 66 B6 04 01 00 00 F1 62 C1 B5 59 FE 80 C5 [21:05:38]CommunicateWithHost err = 0 [21:05:38]CheckOFDResponse [21:05:38]1017 (14) - 77093643461234 [21:05:38]1041 (16) - 0000000002094258 [21:05:38]1040 (4) - 7761 [21:05:38]1012 (4) - 22.09.2024 15:01 [21:05:38]1206 (1) - 0 [21:05:38]OFD Sender: Remove packet 7761 [21:05:38]ProducePacketName [21:05:38]name=ofd_packets/00007761 [21:05:38]NVStorageDeleteData [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:03]recv_with_timeout no data received [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:41]recv_with_timeout no data received [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:48]recv_with_timeout no data received [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:40]recv_with_timeout no data received [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:26]recv_with_timeout no data received [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]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: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: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:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:18:58]recv_with_timeout no data received [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:30]recv_with_timeout no data received [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:24]recv_with_timeout no data received [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]recv_with_timeout no data received [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]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:50]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:23]recv_with_timeout no data received [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:05]OFD Sender: No OFD packet to send [21:29:10]recv_with_timeout no data received [21:29:10]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [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:27]recv_with_timeout no data received [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: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: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:32]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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]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:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:23]recv_with_timeout no data received [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36: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:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [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: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:37:56]recv_with_timeout no data received [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:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:55]recv_with_timeout no data received [21:38:56]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5988364+1721052822=1727041186 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 A3 8E F0 66 96 2E 95 66 45 [21:39:47]Current date/time: 22.09.2024 21:39 [21:39:47]FM_Init [21:39:47]wFMConnect [21:39:47]MH_SAM_On [21:39:47]Write to MH i2c: E0 00 00 08 00 E7 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_init finished! [21:39:47]*** atr: [21:39:47]*** 0F 3B D5 18 FF 81 91 FE [21:39:47]*** 1F C3 80 73 C8 21 10 0A [21:39:47]*** 00 00 00 00 00 00 00 00 [21:39:47]*** 00 00 00 00 00 00 00 00 [21:39:47]*** 00 00 00 00 00 00 00 00 [21:39:47]*** 00 00 00 00 00 00 00 00 [21:39:47]*** 00 00 00 00 00 00 00 00 [21:39:47]*** 00 00 00 00 00 00 00 00 [21:39:47]Read from MH i2c: E0 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E0 10 00 [21:39:47]MH_I2C_Read... [21:39:47]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 [21:39:47]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:39:47]wFMCommunicate request_size=10 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:39:47]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:39:47]RAPDU: 90 00 [21:39:47]wFMCommunicate OK [21:39:47]wFMCommunicate request_size=4 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 11 00 00 [21:39:47]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 17 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [21:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:39:47]wFMCommunicate OK [21:39:47]Detected FM SN is 0000000002094258 [21:39:47]Stored FM SN is 0000000002094258 [21:39:47]wFMCommunicate request_size=9 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 16 00 00 04 BC C2 00 00 [21:39:47]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:39:47]RAPDU: 90 00 [21:39:47]wFMCommunicate OK [21:39:47]FM PIN OK [21:39:47]wFMCommunicate request_size=8 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 14 04 00 03 02 00 01 [21:39:47]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:39:47]RAPDU: 90 00 [21:39:47]wFMCommunicate OK [21:39:47]wFMCommunicate request_size=13 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:39:47]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 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:39:47]RAPDU: 90 00 [21:39:47]wFMCommunicate OK [21:39:47]wFMCommunicate request_size=4 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 11 00 00 [21:39:47]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 17 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [21:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:39:47]wFMCommunicate OK [21:39:47]DocumentArchiveInit [21:39:47]Start Httpd... [21:39:47]Httpd thread 3067018596 created [21:39:47]Write to MH i2c: 01 00 00 0F 00 0F [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 07 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:39:47]MH Int Process started [21:39:47]Allocated Socket 7 [21:39:47]Bind OK [21:39:47]Listen OK [21:39:47]httpd running on port 8080 [21:39:47]Waiting for new connection... [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:39:57]recv_with_timeout no data received [21:40:01]accept exits with 9 [21:40:01]New connection [21:40:01]New thread 3066731876 created [21:40:01]Waiting for new connection... [21:40:01] Sock 9.Parse request [21:40:01]Sock 9.Check first char [21:40:01]Sock 9.First char is OK [21:40:01]request: POST /json_proto HTTP/1.0 [21:40:01]Method: POST [21:40:01]URL: /json_proto [21:40:01]Method is POST - this is cgi request [21:40:01]url: /json_proto [21:40:01]query_string will be loaded in cgi processing [21:40:01]execute_cgi json_proto POST (null) [21:40:01]execute_cgi path=json_proto method=POST [21:40:01]POST find Content-Length [21:40:01]Host: 172.17.47.195:8080 [21:40:01]Content-Length: 984 [21:40:01]Content-Type: application/json [21:40:01] [21:40:01]POST finish read [21:40:01]Found Content-Length = 984 [21:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.95 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:01]execute_script... [21:40:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.95 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:01]POST & json_proto [21:40:01]process_json_proto [21:40:01]json parsed OK: [21:40:01]protocol is kg_v1.0 [21:40:01]action value=close_receipt [21:40:01]process_action close_receipt [21:40:01]cmd_close_receipt [21:40:01]MH_GetDate [21:40:01]Write to MH i2c: F0 00 00 10 00 FF [21:40:01]Write i2c OK [21:40:01]MH_I2C_Read... [21:40:01]Read from MH i2c: F0 [21:40:01]MH_I2C_Read... [21:40:01]Read from MH i2c: F0 09 00 [21:40:01]MH_I2C_Read... [21:40:01]Read from MH i2c: F0 09 00 10 00 00 B1 8E F0 66 96 2E 95 66 5C [21:40:01]GetLastDocTimeStamp 1727039132 [21:40:01]current date 1727041201 [21:40:01]FM_GetShiftState [21:40:01]SAM_PROTO_GetShiftState [21:40:01]wFMCommunicate request_size=4 [21:40:01]MH_SAM_APDU [21:40:01]CAPDU: 80 13 01 00 [21:40:01]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [21:40:01]Write i2c OK [21:40:01]MH_I2C_Read... [21:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:01]Read from MH i2c: E2 [21:40:01]MH_I2C_Read... [21:40:01]Read from MH i2c: E2 0E 00 [21:40:01]MH_I2C_Read... [21:40:01]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 51 [21:40:01]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [21:40:01]wFMCommunicate OK [21:40:01]SAM_PROTO_GetShiftState done [21:40:01]FM_GetShiftState done [21:40:01]opened in 1726964224 [21:40:01]opened+sec_in_day 1727050624 [21:40:01]quantity*price = 200066 [21:40:01]sum+1 = 200067 [21:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 160 22.09.2024 21:40 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 137 сэкономлено 29.95 сом ФМ: 0000000002094258 ФД: 7762 ФПД: 1751941328381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214001&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7762&fm=1751941328381&tin=02508201610067®Number=0000000000190446&sum=200000 [21:40:02]StoreToDocumentArchive [21:40:02]shift 70 fd 7762 [21:40:02]save to /storage/0070/doc_00007762 [21:40:02]save last doc name /storage/0070/doc_00007762 to /storage/kkm_last_doc_name [21:40:02]save OK [21:40:02]Clear old archive folders... [21:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:02]tlvbuf is B6F1F4A0 [21:40:02]SAM_PROTO_ClearQueue [21:40:02]wFMCommunicate request_size=4 [21:40:02]MH_SAM_APDU [21:40:02]CAPDU: 80 09 00 00 [21:40:02]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [21:40:02]Write i2c OK [21:40:02]MH_I2C_Read... [21:40:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:02]Read from MH i2c: E2 [21:40:02]MH_I2C_Read... [21:40:02]Read from MH i2c: E2 03 00 [21:40:02]MH_I2C_Read... [21:40:02]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [21:40:02]RAPDU: 90 00 [21:40:02]wFMCommunicate OK [21:40:02]SAM_PROTO_ClearQueue done [21:40:02]KKMCreateOFDPacket [21:40:02]OFDProtocolAddRootSTLVToBuf [21:40:02]FM_MakeSignedData [21:40:02]FM_MakeSignedData [21:40:02]SAM_PROTO_SignData [21:40:02]wFMCommunicate request_size=4 [21:40:02]MH_SAM_APDU [21:40:02]CAPDU: 80 0D 01 02 [21:40:02]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [21:40:02]Write i2c OK [21:40:02]MH_I2C_Read... [21:40:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:02]Read from MH i2c: E2 [21:40:02]MH_I2C_Read... [21:40:02]Read from MH i2c: E2 03 00 [21:40:02]MH_I2C_Read... [21:40:02]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [21:40:02]RAPDU: 90 00 [21:40:02]wFMCommunicate OK [21:40:02]wFMCommunicate request_size=255 [21:40:02]MH_SAM_APDU [21:40:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 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 FE 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 A0 00 00 00 F4 03 04 00 B1 8E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 52 1E 00 00 35 04 06 00 01 [21:40:02]Write to MH i2c: E2 02 01 20 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 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 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 FE 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 A0 00 00 00 F4 03 04 00 B1 8E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 52 1E 00 00 35 04 06 00 01 00 00 A1 [21:40:02]Write i2c OK [21:40:02]MH_I2C_Read... [21:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:03]Read from MH i2c: E2 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: E2 03 00 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [21:40:03]RAPDU: 90 00 [21:40:03]wFMCommunicate OK [21:40:03]wFMCommunicate request_size=10 [21:40:03]MH_SAM_APDU [21:40:03]CAPDU: 80 0D 02 02 05 97 E7 D7 2D FD [21:40:03]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 97 E7 D7 2D FD 00 00 24 [21:40:03]Write i2c OK [21:40:03]MH_I2C_Read... [21:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:03]Read from MH i2c: E2 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: E2 03 00 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [21:40:03]RAPDU: 90 00 [21:40:03]wFMCommunicate OK [21:40:03]wFMCommunicate request_size=4 [21:40:03]MH_SAM_APDU [21:40:03]CAPDU: 80 0D 03 02 [21:40:03]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [21:40:03]Write i2c OK [21:40:03]MH_I2C_Read... [21:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:03]Read from MH i2c: E2 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: E2 0B 00 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: E2 0B 00 22 00 00 44 A0 6E 0C 5A 51 46 1A 90 00 07 [21:40:03]RAPDU: 44 A0 6E 0C 5A 51 46 1A 90 00 [21:40:03]wFMCommunicate OK [21:40:03]SAM_PROTO_SignData done [21:40:03]FM_MakeSignedData done [21:40:03]CreateOFDProtocolMessage [21:40:03]wFMCommunicate request_size=4 [21:40:03]MH_SAM_APDU [21:40:03]CAPDU: 80 11 00 00 [21:40:03]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [21:40:03]Write i2c OK [21:40:03]MH_I2C_Read... [21:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:03]Read from MH i2c: E2 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: E2 17 00 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 EE [21:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:40:03]wFMCommunicate OK [21:40:03]CreateOFDProtocolMessage done [21:40:03]OFDSenderStorePacket 7762 [21:40:03]StoreOFDPacket docnum=7762 [21:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 59 BB 07 01 1A 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 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 FE 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 A0 00 00 00 F4 03 04 00 B1 8E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 52 1E 00 00 35 04 06 00 01 97 E7 D7 2D FD 44 A0 6E 0C 5A 51 46 1A [21:40:03]CheckFolder [21:40:03]dirname=/storage/ofd_packets [21:40:03]CheckFolder done [21:40:03]ProducePacketName [21:40:03]name=ofd_packets/00007762 [21:40:03]NVStorageSaveData ofd_packets/00007762 [21:40:03]File name is /storage/ofd_packets/00007762 [21:40:03]Write 301 bytes [21:40:03]NVStorageSaveData done [21:40:03]OFDSenderStorePacket done [21:40:03]KKMCreateOFDPacket done [21:40:03]NVStorageSaveData kkm_last_timestamp [21:40:03]File name is /storage/kkm_last_timestamp [21:40:03]Write 4 bytes [21:40:03]NVStorageSaveData done [21:40:03]ExternCall_PrintAddStr [21:40:03]wPrintStart [21:40:03]Write to MH i2c: 01 00 00 24 00 24 [21:40:03]Write i2c OK [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: 01 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: 01 07 00 [21:40:03]MH_I2C_Read... [21:40:03]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [21:40:03]RasterBufferAndPrint [21:40:03]line Счет N : (1)872025 [21:40:03]line ИНН: 02508201610067 [21:40:03]line Контрольно-Кассовый Чек [21:40:03]line ПРОДАЖА [21:40:03]line ТРК (МРК, ГНК) : 33 [21:40:03]line Товар: 2710124130 [21:40:03]line Аи-92-К-5 [21:40:03]line 29.950 * 66.80 [21:40:03]line = 2000.66 [21:40:03]line НДС 12% НСП 1% [21:40:03]line > о реализуемом товаре [21:40:03]line ОКРУГЛЕНИЕ: -0.66 [21:40:03]line ИТОГО: 2000.00 [21:40:03]line Внесено: 2000.00 [21:40:03]line СДАЧА: 0.00 [21:40:03]line НСП 1% : 17.70 [21:40:03]line НДС 12% : 212.46 [21:40:03]line Наличными: 2000.00 [21:40:03]line Безнал.: 0.00 [21:40:03]line Место: АЗС № 137 "Партнер Нефть" [21:40:03]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [21:40:03]line СНО: Общий режим [21:40:03]line Чек 160 22.09.2024 21:40 [21:40:03]line Смена: 70 ФФД: 1.0 [21:40:03]line ЗНМ: 0300000041 [21:40:03]line РНМ: 0000000000190446 [21:40:03]line Версия ККМ: v1.0 [21:40:03]line [21:40:03]line Дисконтная программа [21:40:03]line АИ-92 [21:40:03]line номер 137 [21:40:03]line сэкономлено 29.95 сом [21:40:03]line ФМ: 0000000002094258 [21:40:03]line ФД: 7762 [21:40:03]line ФПД: 1751941328381 [21:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214001&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7762&fm=1751941328381&tin=02508201610067®Number=0000000000190446&sum=200000 [21:40:03]OFD Sender: Processing packet 7762 [packets to send 51, broken 50] [21:40:03]ProducePacketName [21:40:03]name=ofd_packets/00007762 [21:40:03]OFD Sender: To server: pG, [21:40:03]CommunicateWithHost lk.salyk.kg:30040 [21:40:03]ConnectInit lk.salyk.kg [21:40:03]written 0, free lines is 4095 [21:40:04]Write to MH i2c: 01 00 00 54 00 54 [21:40:04]Write i2c OK [21:40:04]MH_I2C_Read... [21:40:04]Read from MH i2c: 01 [21:40:04]MH_I2C_Read... [21:40:04]Read from MH i2c: 01 07 00 [21:40:04]MH_I2C_Read... [21:40:04]Read from MH i2c: 01 07 00 54 00 00 00 00 00 00 A0 0C 07 [21:40:04]RasterBufferAndPrint [21:40:04]line [21:40:04]line [21:40:04]line [21:40:04]line [21:40:04]line [21:40:04]written 0, free lines is 3238 [21:40:04]MH_Cut [21:40:04]Write to MH i2c: D1 01 00 5B 00 01 2D [21:40:04]Write i2c OK [21:40:04]MH_I2C_Read... [21:40:04]Read from MH i2c: D1 [21:40:04]MH_I2C_Read... [21:40:04]Read from MH i2c: D1 01 00 [21:40:04]MH_I2C_Read... [21:40:04]Read from MH i2c: D1 01 00 5B 00 00 2C [21:40:04]Write to MH i2c: 01 00 00 5C 00 5C [21:40:04]Write i2c OK [21:40:04]MH_I2C_Read... [21:40:04]*** Cut start [21:40:04]*** Purtial cut [21:40:04]*** Stage 1: CUTSNS_PIN = 1 [21:40:05]Read from MH i2c: 01 [21:40:05]MH_I2C_Read... [21:40:05]*** Stop cut motor [21:40:05]*** Cut end [21:40:05]Read from MH i2c: 01 07 00 [21:40:05]MH_I2C_Read... [21:40:05]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 FF 0F 71 [21:40:05]process_action close_receipt done [21:40:05]requested_data is exist [21:40:05]produce_requested_data [21:40:05]requested_item fm.sn is exist - process it [21:40:05]wFMCommunicate request_size=4 [21:40:05]MH_SAM_APDU [21:40:05]CAPDU: 80 11 00 00 [21:40:05]Write to MH i2c: E2 08 00 5D 00 80 11 00 00 00 00 00 00 D7 [21:40:05]Write i2c OK [21:40:05]MH_I2C_Read... [21:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:05]Read from MH i2c: E2 [21:40:05]MH_I2C_Read... [21:40:05]Read from MH i2c: E2 17 00 [21:40:05]MH_I2C_Read... [21:40:05]Read from MH i2c: E2 17 00 5D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 28 [21:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:40:05]wFMCommunicate OK [21:40:05]requested_item fd.num is exist - process it [21:40:05]SAM_PROTO_GetFieldsCounters [21:40:05]wFMCommunicate request_size=4 [21:40:05]MH_SAM_APDU [21:40:05]CAPDU: 80 13 00 00 [21:40:05]Write to MH i2c: E2 08 00 5E 00 80 13 00 00 00 00 00 00 DA [21:40:05]Write i2c OK [21:40:05]MH_I2C_Read... [21:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:05]Read from MH i2c: E2 [21:40:05]MH_I2C_Read... [21:40:05]Read from MH i2c: E2 62 00 [21:40:05]MH_I2C_Read... [21:40:05]Read from MH i2c: E2 62 00 5E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 52 1E 00 00 0E 04 04 00 46 00 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 8E [21:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 52 1E 00 00 0E 04 04 00 46 00 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 [21:40:05]wFMCommunicate OK [21:40:05]SAM_PROTO_GetFieldsCounters done [21:40:05]requested_item shift.num is exist - process it [21:40:05]requested_item shift.opened is exist - process it [21:40:05]req_shift_opened [21:40:05]FM_GetShiftState [21:40:05]SAM_PROTO_GetShiftState [21:40:05]wFMCommunicate request_size=4 [21:40:05]MH_SAM_APDU [21:40:05]CAPDU: 80 13 01 00 [21:40:05]Write to MH i2c: E2 08 00 5F 00 80 13 01 00 00 00 00 00 DC [21:40:05]Write i2c OK [21:40:05]MH_I2C_Read... [21:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:05]Read from MH i2c: E2 [21:40:05]MH_I2C_Read... [21:40:05]Read from MH i2c: E2 0E 00 [21:40:05]MH_I2C_Read... [21:40:05]Read from MH i2c: E2 0E 00 5F 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 9F [21:40:05]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [21:40:05]wFMCommunicate OK [21:40:05]SAM_PROTO_GetShiftState done [21:40:05]FM_GetShiftState done [21:40:05]req_shift_opened done [21:40:05]requested_item shift.open_date is exist - process it [21:40:05]req_shift_open_date [21:40:05]req_shift_open_date done [21:40:05]produce_requested_data done [21:40:05]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7762,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [21:40:05]process_action_free close_receipt [21:40:05]json_value_free [21:40:05]json_value_free done [21:40:05]process_json_proto returns [21:40:05]Send response to host [21:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7762,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [21:40:05]free response buf [21:40:05]execute_script done [21:40:05]execute_script returns [21:40:05]free content buf [21:40:05]Sock 9.Close socket [21:40:05]Sock 9.Thread stoped [21:40:06]Connected sock=11 [21:40:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 59 BB 07 01 1A 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 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 FE 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 A0 00 00 00 F4 03 04 00 B1 8E F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 52 1E 00 00 35 04 06 00 01 97 E7 D7 2D FD 44 A0 6E 0C 5A 51 46 1A [21:40:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 2C 0D 47 00 57 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 32 30 39 34 32 35 38 10 04 04 00 52 1E 00 00 F4 03 04 00 71 39 F0 66 B6 04 01 00 00 02 88 09 40 CD 0B 33 79 [21:40:07]CommunicateWithHost err = 0 [21:40:07]CheckOFDResponse [21:40:07]1017 (14) - 77093643461234 [21:40:07]1041 (16) - 0000000002094258 [21:40:07]1040 (4) - 7762 [21:40:07]1012 (4) - 22.09.2024 15:36 [21:40:07]1206 (1) - 0 [21:40:07]OFD Sender: Remove packet 7762 [21:40:07]ProducePacketName [21:40:07]name=ofd_packets/00007762 [21:40:07]NVStorageDeleteData [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]recv_with_timeout no data received [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [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]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5988562+1721052822=1727041384 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 69 8F F0 66 96 2E 95 66 0C [21:43:05]Current date/time: 22.09.2024 21:43 [21:43:05]FM_Init [21:43:05]wFMConnect [21:43:05]MH_SAM_On [21:43:05]Write to MH i2c: E0 00 00 08 00 E7 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_init finished! [21:43:05]*** atr: [21:43:05]*** 0F 3B D5 18 FF 81 91 FE [21:43:05]*** 1F C3 80 73 C8 21 10 0A [21:43:05]*** 00 00 00 00 00 00 00 00 [21:43:05]*** 00 00 00 00 00 00 00 00 [21:43:05]*** 00 00 00 00 00 00 00 00 [21:43:05]*** 00 00 00 00 00 00 00 00 [21:43:05]*** 00 00 00 00 00 00 00 00 [21:43:05]*** 00 00 00 00 00 00 00 00 [21:43:05]Read from MH i2c: E0 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E0 10 00 [21:43:05]MH_I2C_Read... [21:43:05]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 [21:43:05]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:43:05]wFMCommunicate request_size=10 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:43:05]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:43:05]RAPDU: 90 00 [21:43:05]wFMCommunicate OK [21:43:05]wFMCommunicate request_size=4 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 11 00 00 [21:43:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 17 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [21:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:43:05]wFMCommunicate OK [21:43:05]Detected FM SN is 0000000002094258 [21:43:05]Stored FM SN is 0000000002094258 [21:43:05]wFMCommunicate request_size=9 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 16 00 00 04 BC C2 00 00 [21:43:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:43:05]RAPDU: 90 00 [21:43:05]wFMCommunicate OK [21:43:05]FM PIN OK [21:43:05]wFMCommunicate request_size=8 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 14 04 00 03 02 00 01 [21:43:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:43:05]RAPDU: 90 00 [21:43:05]wFMCommunicate OK [21:43:05]wFMCommunicate request_size=13 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:43:05]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 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:43:05]RAPDU: 90 00 [21:43:05]wFMCommunicate OK [21:43:05]wFMCommunicate request_size=4 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 11 00 00 [21:43:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 17 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [21:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:43:05]wFMCommunicate OK [21:43:05]DocumentArchiveInit [21:43:05]Start Httpd... [21:43:05]Httpd thread 3067743588 created [21:43:05]Write to MH i2c: 01 00 00 0F 00 0F [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: 01 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: 01 07 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:43:05]MH Int Process started [21:43:05]Allocated Socket 7 [21:43:05]Bind OK [21:43:05]Listen OK [21:43:05]httpd running on port 8080 [21:43:05]Waiting for new connection... [21:43:05]OFD Sender: No OFD packet to send [21:43:07]accept exits with 9 [21:43:07]New connection [21:43:07]New thread 3067456868 created [21:43:07]Waiting for new connection... [21:43:07] Sock 9.Parse request [21:43:07]Sock 9.Check first char [21:43:07]Sock 9.First char is OK [21:43:07]request: POST /json_proto HTTP/1.0 [21:43:07]Method: POST [21:43:07]URL: /json_proto [21:43:07]Method is POST - this is cgi request [21:43:07]url: /json_proto [21:43:07]query_string will be loaded in cgi processing [21:43:07]execute_cgi json_proto POST (null) [21:43:07]execute_cgi path=json_proto method=POST [21:43:07]POST find Content-Length [21:43:07]Host: 172.17.47.195:8080 [21:43:07]Content-Length: 215 [21:43:07]Content-Type: application/json [21:43:07] [21:43:07]POST finish read [21:43:07]Found Content-Length = 215 [21:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:07]execute_script... [21:43:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:07]POST & json_proto [21:43:07]process_json_proto [21:43:07]json parsed OK: [21:43:07]protocol is kg_v1.0 [21:43:07]action value=get_value [21:43:07]process_action get_value [21:43:07]cmd_get_value [21:43:07]process_action get_value done [21:43:07]requested_data is exist [21:43:07]produce_requested_data [21:43:07]requested_item kkm.sn is exist - process it [21:43:07]requested_item kkm.ver is exist - process it [21:43:07]requested_item fm.sn is exist - process it [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 11 00 00 [21:43:07]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [21:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:43:07]wFMCommunicate OK [21:43:07]requested_item fd.num is exist - process it [21:43:07]SAM_PROTO_GetFieldsCounters [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 13 00 00 [21:43:07]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 62 00 [21:43:07]MH_I2C_Read... [21:43:07]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 52 1E 00 00 0E 04 04 00 46 00 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 41 [21:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 52 1E 00 00 0E 04 04 00 46 00 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 [21:43:07]wFMCommunicate OK [21:43:07]SAM_PROTO_GetFieldsCounters done [21:43:07]requested_item shift.num is exist - process it [21:43:07]requested_item shift.opened is exist - process it [21:43:07]req_shift_opened [21:43:07]FM_GetShiftState [21:43:07]SAM_PROTO_GetShiftState [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 13 01 00 [21:43:07]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0E 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [21:43:07]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [21:43:07]wFMCommunicate OK [21:43:07]SAM_PROTO_GetShiftState done [21:43:07]FM_GetShiftState done [21:43:07]req_shift_opened done [21:43:07]requested_item shift.open_date is exist - process it [21:43:07]req_shift_open_date [21:43:07]req_shift_open_date done [21:43:07]produce_requested_data done [21:43:07]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7762,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [21:43:07]process_action_free get_value [21:43:07]json_value_free [21:43:07]json_value_free done [21:43:07]process_json_proto returns [21:43:07]Send response to host [21:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7762,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [21:43:07]free response buf [21:43:07]execute_script done [21:43:07]execute_script returns [21:43:07]free content buf [21:43:07]Sock 9.Close socket [21:43:07]Sock 9.Thread stoped [21:43:07]accept exits with 8 [21:43:07]New connection [21:43:07]New thread 3067313508 created [21:43:07]Thread 3067456868 joined [21:43:07]Waiting for new connection... [21:43:07] Sock 8.Parse request [21:43:07]Sock 8.Check first char [21:43:07]Sock 8.First char is OK [21:43:07]request: POST /json_proto HTTP/1.0 [21:43:07]Method: POST [21:43:07]URL: /json_proto [21:43:07]Method is POST - this is cgi request [21:43:07]url: /json_proto [21:43:07]query_string will be loaded in cgi processing [21:43:07]execute_cgi json_proto POST (null) [21:43:07]execute_cgi path=json_proto method=POST [21:43:07]POST find Content-Length [21:43:07]Host: 172.17.47.195:8080 [21:43:07]Content-Length: 331 [21:43:07]Content-Type: application/json [21:43:07] [21:43:07]POST finish read [21:43:07]Found Content-Length = 331 [21:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:43:07]execute_script... [21:43:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:43:07]POST & json_proto [21:43:07]process_json_proto [21:43:07]json parsed OK: [21:43:07]protocol is kg_v1.0 [21:43:07]action value=get_value [21:43:07]process_action get_value [21:43:07]cmd_get_value [21:43:07]process_action get_value done [21:43:07]requested_data is exist [21:43:07]produce_requested_data [21:43:07]requested_item fm.sale.total is exist - process it [21:43:07]SAM_PROTO_GetFMData [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 13 03 00 [21:43:07]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 FD 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 C6 1D 00 00 69 04 A0 00 6F 04 04 00 99 1D 00 00 B1 04 04 00 39 03 50 31 70 04 04 00 F8 7F 5E 29 72 04 04 00 41 83 F1 07 00 04 7C 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 A5 E7 3C 05 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 7D BD 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 23 [21:43:08]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 C6 1D 00 00 69 04 A0 00 6F 04 04 00 99 1D 00 00 B1 04 04 00 39 03 50 31 70 04 04 00 F8 7F 5E 29 72 04 04 00 41 83 F1 07 00 04 7C 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 A5 E7 3C 05 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 7D BD 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [21:43:08]wFMCommunicate OK [21:43:08]wFMCommunicate request_size=4 [21:43:08]MH_SAM_APDU [21:43:08]CAPDU: 80 17 00 00 [21:43:08]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 FD 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [21:43:08]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [21:43:08]wFMCommunicate OK [21:43:08]wFMCommunicate request_size=4 [21:43:08]MH_SAM_APDU [21:43:08]CAPDU: 80 17 00 00 [21:43:08]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 FD 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [21:43:08]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:43:08]wFMCommunicate OK [21:43:08]wFMCommunicate request_size=4 [21:43:08]MH_SAM_APDU [21:43:08]CAPDU: 80 17 00 00 [21:43:08]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 FD 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [21:43:08]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:43:08]wFMCommunicate OK [21:43:08]wFMCommunicate request_size=4 [21:43:08]MH_SAM_APDU [21:43:08]CAPDU: 80 17 00 00 [21:43:08]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [21:43:09]Read from MH i2c: E2 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 DE 00 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [21:43:09]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:43:09]wFMCommunicate OK [21:43:09]SAM_PROTO_GetFMData done [21:43:09]requested_item fm.sale_refund.total is exist - process it [21:43:09]requested_item fm.buy.total is exist - process it [21:43:09]requested_item shift.sale.total is exist - process it [21:43:09]SAM_PROTO_GetShiftData [21:43:09]wFMCommunicate request_size=4 [21:43:09]MH_SAM_APDU [21:43:09]CAPDU: 80 13 02 00 [21:43:09]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:43:09]Write i2c OK [21:43:09]MH_I2C_Read... [21:43:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:43:09]Read from MH i2c: E2 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 FD 00 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 3D 31 F8 70 04 03 00 88 7E E4 72 04 03 00 B5 B2 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6C 5D 1A 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 67 32 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 17 [21:43:09]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 3D 31 F8 70 04 03 00 88 7E E4 72 04 03 00 B5 B2 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6C 5D 1A 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 67 32 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [21:43:09]wFMCommunicate OK [21:43:09]wFMCommunicate request_size=4 [21:43:09]MH_SAM_APDU [21:43:09]CAPDU: 80 17 00 00 [21:43:09]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:43:09]Write i2c OK [21:43:09]MH_I2C_Read... [21:43:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:09]Read from MH i2c: E2 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 FD 00 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [21:43:09]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [21:43:09]wFMCommunicate OK [21:43:09]wFMCommunicate request_size=4 [21:43:09]MH_SAM_APDU [21:43:09]CAPDU: 80 17 00 00 [21:43:09]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:43:09]Write i2c OK [21:43:09]MH_I2C_Read... [21:43:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:10]Read from MH i2c: E2 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: E2 FD 00 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [21:43:10]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:43:10]wFMCommunicate OK [21:43:10]wFMCommunicate request_size=4 [21:43:10]MH_SAM_APDU [21:43:10]CAPDU: 80 17 00 00 [21:43:10]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:43:10]Write i2c OK [21:43:10]MH_I2C_Read... [21:43:10]OFD Sender: No OFD packet to send [21:43:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:10]Read from MH i2c: E2 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: E2 FD 00 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [21:43:10]RAPDU: 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 90 00 [21:43:10]wFMCommunicate OK [21:43:10]wFMCommunicate request_size=4 [21:43:10]MH_SAM_APDU [21:43:10]CAPDU: 80 17 00 00 [21:43:10]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:43:10]Write i2c OK [21:43:10]MH_I2C_Read... [21:43:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [21:43:10]Read from MH i2c: E2 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: E2 D4 00 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [21:43:10]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:43:10]wFMCommunicate OK [21:43:10]SAM_PROTO_GetShiftData done [21:43:10]requested_item shift.sale.total_cash is exist - process it [21:43:10]requested_item shift.sale_refund.total is exist - process it [21:43:10]requested_item shift.sale_refund.total_cash is exist - process it [21:43:10]requested_item shift.buy.total is exist - process it [21:43:10]requested_item shift.buy.total_cash is exist - process it [21:43:10]produce_requested_data done [21:43:10]produce_requested_data return {"fm.sale.total":8273272.89,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":162655.33,"shift.sale.total_cash":149746.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:43:10]process_action_free get_value [21:43:10]json_value_free [21:43:10]json_value_free done [21:43:10]process_json_proto returns [21:43:10]Send response to host [21:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8273272.89,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":162655.33,"shift.sale.total_cash":149746.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:43:10]free response buf [21:43:10]execute_script done [21:43:10]execute_script returns [21:43:10]free content buf [21:43:10]Sock 8.Close socket [21:43:10]Sock 8.Thread stoped [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:21]recv_with_timeout no data received [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]recv_with_timeout no data received [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]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:32]recv_with_timeout no data received [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [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: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: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:30]recv_with_timeout no data received [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:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:36]recv_with_timeout no data received [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]recv_with_timeout no data received [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:28]recv_with_timeout no data received [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:39]recv_with_timeout no data received [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:23]recv_with_timeout no data received [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:33]recv_with_timeout no data received [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]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: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:57:01]OFD Sender: No OFD packet to send [21:57:05]recv_with_timeout no data received [21:57:06]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5989436+1721052822=1727042258 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 D2 92 F0 66 96 2E 95 66 78 [21:57:38]Current date/time: 22.09.2024 21:57 [21:57:38]FM_Init [21:57:38]wFMConnect [21:57:38]MH_SAM_On [21:57:38]Write to MH i2c: E0 00 00 08 00 E7 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_init finished! [21:57:38]*** atr: [21:57:38]*** 0F 3B D5 18 FF 81 91 FE [21:57:38]*** 1F C3 80 73 C8 21 10 0A [21:57:38]*** 00 00 00 00 00 00 00 00 [21:57:38]*** 00 00 00 00 00 00 00 00 [21:57:38]*** 00 00 00 00 00 00 00 00 [21:57:38]*** 00 00 00 00 00 00 00 00 [21:57:38]*** 00 00 00 00 00 00 00 00 [21:57:38]*** 00 00 00 00 00 00 00 00 [21:57:38]Read from MH i2c: E0 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E0 10 00 [21:57:38]MH_I2C_Read... [21:57:38]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 [21:57:38]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:57:38]wFMCommunicate request_size=10 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:57:38]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:57:38]RAPDU: 90 00 [21:57:38]wFMCommunicate OK [21:57:38]wFMCommunicate request_size=4 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 11 00 00 [21:57:38]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 17 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [21:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:57:38]wFMCommunicate OK [21:57:38]Detected FM SN is 0000000002094258 [21:57:38]Stored FM SN is 0000000002094258 [21:57:38]wFMCommunicate request_size=9 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 16 00 00 04 BC C2 00 00 [21:57:38]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:57:38]RAPDU: 90 00 [21:57:38]wFMCommunicate OK [21:57:38]FM PIN OK [21:57:38]wFMCommunicate request_size=8 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 14 04 00 03 02 00 01 [21:57:38]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:57:38]RAPDU: 90 00 [21:57:38]wFMCommunicate OK [21:57:38]wFMCommunicate request_size=13 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:57:38]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 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:57:38]RAPDU: 90 00 [21:57:38]wFMCommunicate OK [21:57:38]wFMCommunicate request_size=4 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 11 00 00 [21:57:38]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 17 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [21:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:57:38]wFMCommunicate OK [21:57:38]DocumentArchiveInit [21:57:38]Start Httpd... [21:57:38]Httpd thread 3067202916 created [21:57:38]Write to MH i2c: 01 00 00 0F 00 0F [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: 01 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: 01 07 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:57:38]MH Int Process started [21:57:38]Allocated Socket 7 [21:57:38]Bind OK [21:57:38]Listen OK [21:57:38]httpd running on port 8080 [21:57:38]Waiting for new connection... [21:57:38]OFD Sender: No OFD packet to send [21:57:42]accept exits with 8 [21:57:42]New connection [21:57:42]New thread 3066916196 created [21:57:42]Waiting for new connection... [21:57:42] Sock 8.Parse request [21:57:42]Sock 8.Check first char [21:57:42]Sock 8.First char is OK [21:57:42]request: POST /json_proto HTTP/1.0 [21:57:42]Method: POST [21:57:42]URL: /json_proto [21:57:42]Method is POST - this is cgi request [21:57:42]url: /json_proto [21:57:42]query_string will be loaded in cgi processing [21:57:42]execute_cgi json_proto POST (null) [21:57:42]execute_cgi path=json_proto method=POST [21:57:42]POST find Content-Length [21:57:42]Host: 172.17.47.195:8080 [21:57:42]Content-Length: 215 [21:57:42]Content-Type: application/json [21:57:42] [21:57:42]POST finish read [21:57:42]Found Content-Length = 215 [21:57:42]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" ] } } [21:57:42]execute_script... [21:57:42]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" ] } } [21:57:42]POST & json_proto [21:57:42]process_json_proto [21:57:42]json parsed OK: [21:57:42]protocol is kg_v1.0 [21:57:42]action value=get_value [21:57:42]process_action get_value [21:57:42]cmd_get_value [21:57:42]process_action get_value done [21:57:42]requested_data is exist [21:57:42]produce_requested_data [21:57:42]requested_item kkm.sn is exist - process it [21:57:42]requested_item kkm.ver is exist - process it [21:57:42]requested_item fm.sn is exist - process it [21:57:42]wFMCommunicate request_size=4 [21:57:42]MH_SAM_APDU [21:57:42]CAPDU: 80 11 00 00 [21:57:42]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:57:42]Write i2c OK [21:57:42]MH_I2C_Read... [21:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:42]Read from MH i2c: E2 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 17 00 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [21:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [21:57:42]wFMCommunicate OK [21:57:42]requested_item fd.num is exist - process it [21:57:42]SAM_PROTO_GetFieldsCounters [21:57:42]wFMCommunicate request_size=4 [21:57:42]MH_SAM_APDU [21:57:42]CAPDU: 80 13 00 00 [21:57:42]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:57:42]Write i2c OK [21:57:42]MH_I2C_Read... [21:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:42]Read from MH i2c: E2 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 62 00 [21:57:42]MH_I2C_Read... [21:57:42]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 52 1E 00 00 0E 04 04 00 46 00 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 41 [21:57:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 52 1E 00 00 0E 04 04 00 46 00 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 [21:57:42]wFMCommunicate OK [21:57:42]SAM_PROTO_GetFieldsCounters done [21:57:42]requested_item shift.num is exist - process it [21:57:42]requested_item shift.opened is exist - process it [21:57:42]req_shift_opened [21:57:42]FM_GetShiftState [21:57:42]SAM_PROTO_GetShiftState [21:57:42]wFMCommunicate request_size=4 [21:57:42]MH_SAM_APDU [21:57:42]CAPDU: 80 13 01 00 [21:57:42]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:57:42]Write i2c OK [21:57:42]MH_I2C_Read... [21:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:42]Read from MH i2c: E2 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 0E 00 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [21:57:42]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [21:57:42]wFMCommunicate OK [21:57:42]SAM_PROTO_GetShiftState done [21:57:42]FM_GetShiftState done [21:57:42]req_shift_opened done [21:57:42]requested_item shift.open_date is exist - process it [21:57:42]req_shift_open_date [21:57:42]req_shift_open_date done [21:57:42]produce_requested_data done [21:57:42]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7762,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [21:57:42]process_action_free get_value [21:57:42]json_value_free [21:57:42]json_value_free done [21:57:42]process_json_proto returns [21:57:42]Send response to host [21:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7762,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [21:57:42]free response buf [21:57:42]execute_script done [21:57:42]execute_script returns [21:57:42]free content buf [21:57:42]Sock 8.Close socket [21:57:42]Sock 8.Thread stoped [21:57:42]accept exits with 10 [21:57:42]New connection [21:57:42]New thread 3066772836 created [21:57:42]Thread 3066916196 joined [21:57:42]Waiting for new connection... [21:57:42] Sock 10.Parse request [21:57:42]Sock 10.Check first char [21:57:42]Sock 10.First char is OK [21:57:42]request: POST /json_proto HTTP/1.0 [21:57:42]Method: POST [21:57:42]URL: /json_proto [21:57:42]Method is POST - this is cgi request [21:57:42]url: /json_proto [21:57:42]query_string will be loaded in cgi processing [21:57:42]execute_cgi json_proto POST (null) [21:57:42]execute_cgi path=json_proto method=POST [21:57:42]POST find Content-Length [21:57:42]Host: 172.17.47.195:8080 [21:57:42]Content-Length: 331 [21:57:42]Content-Type: application/json [21:57:42] [21:57:42]POST finish read [21:57:42]Found Content-Length = 331 [21:57:42]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" ] } } [21:57:42]execute_script... [21:57:42]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" ] } } [21:57:42]POST & json_proto [21:57:42]process_json_proto [21:57:42]json parsed OK: [21:57:42]protocol is kg_v1.0 [21:57:42]action value=get_value [21:57:42]process_action get_value [21:57:43]cmd_get_value [21:57:43]process_action get_value done [21:57:43]requested_data is exist [21:57:43]produce_requested_data [21:57:43]requested_item fm.sale.total is exist - process it [21:57:43]SAM_PROTO_GetFMData [21:57:43]wFMCommunicate request_size=4 [21:57:43]MH_SAM_APDU [21:57:43]CAPDU: 80 13 03 00 [21:57:43]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]OFD Sender: No OFD packet to send [21:57:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:57:43]Read from MH i2c: E2 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 FD 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 C6 1D 00 00 69 04 A0 00 6F 04 04 00 99 1D 00 00 B1 04 04 00 39 03 50 31 70 04 04 00 F8 7F 5E 29 72 04 04 00 41 83 F1 07 00 04 7C 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 A5 E7 3C 05 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 7D BD 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 23 [21:57:43]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 C6 1D 00 00 69 04 A0 00 6F 04 04 00 99 1D 00 00 B1 04 04 00 39 03 50 31 70 04 04 00 F8 7F 5E 29 72 04 04 00 41 83 F1 07 00 04 7C 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 A5 E7 3C 05 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 7D BD 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [21:57:43]wFMCommunicate OK [21:57:43]wFMCommunicate request_size=4 [21:57:43]MH_SAM_APDU [21:57:43]CAPDU: 80 17 00 00 [21:57:43]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:57:43]Read from MH i2c: E2 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 FD 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [21:57:43]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [21:57:43]wFMCommunicate OK [21:57:43]wFMCommunicate request_size=4 [21:57:43]MH_SAM_APDU [21:57:43]CAPDU: 80 17 00 00 [21:57:43]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:57:44]Read from MH i2c: E2 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 FD 00 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [21:57:44]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:57:44]wFMCommunicate OK [21:57:44]wFMCommunicate request_size=4 [21:57:44]MH_SAM_APDU [21:57:44]CAPDU: 80 17 00 00 [21:57:44]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:57:44]Write i2c OK [21:57:44]MH_I2C_Read... [21:57:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:57:44]Read from MH i2c: E2 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 FD 00 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [21:57:44]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:57:44]wFMCommunicate OK [21:57:44]wFMCommunicate request_size=4 [21:57:44]MH_SAM_APDU [21:57:44]CAPDU: 80 17 00 00 [21:57:44]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:57:44]Write i2c OK [21:57:44]MH_I2C_Read... [21:57:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [21:57:44]Read from MH i2c: E2 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 DE 00 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [21:57:44]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:57:44]wFMCommunicate OK [21:57:44]SAM_PROTO_GetFMData done [21:57:44]requested_item fm.sale_refund.total is exist - process it [21:57:44]requested_item fm.buy.total is exist - process it [21:57:44]requested_item shift.sale.total is exist - process it [21:57:44]SAM_PROTO_GetShiftData [21:57:44]wFMCommunicate request_size=4 [21:57:44]MH_SAM_APDU [21:57:44]CAPDU: 80 13 02 00 [21:57:44]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:57:44]Write i2c OK [21:57:44]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 FD 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 3D 31 F8 70 04 03 00 88 7E E4 72 04 03 00 B5 B2 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6C 5D 1A 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 67 32 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 17 [21:57:45]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 3D 31 F8 70 04 03 00 88 7E E4 72 04 03 00 B5 B2 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6C 5D 1A 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 67 32 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [21:57:45]wFMCommunicate OK [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 17 00 00 [21:57:45]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 FD 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 EC [21:57:45]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 90 00 [21:57:45]wFMCommunicate OK [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 17 00 00 [21:57:45]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 FD 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [21:57:45]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:57:45]wFMCommunicate OK [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 17 00 00 [21:57:45]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:57:46]Read from MH i2c: E2 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: E2 FD 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [21:57:46]RAPDU: 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 90 00 [21:57:46]wFMCommunicate OK [21:57:46]wFMCommunicate request_size=4 [21:57:46]MH_SAM_APDU [21:57:46]CAPDU: 80 17 00 00 [21:57:46]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [21:57:46]Read from MH i2c: E2 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: E2 D4 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [21:57:46]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:57:46]wFMCommunicate OK [21:57:46]SAM_PROTO_GetShiftData done [21:57:46]requested_item shift.sale.total_cash is exist - process it [21:57:46]requested_item shift.sale_refund.total is exist - process it [21:57:46]requested_item shift.sale_refund.total_cash is exist - process it [21:57:46]requested_item shift.buy.total is exist - process it [21:57:46]requested_item shift.buy.total_cash is exist - process it [21:57:46]produce_requested_data done [21:57:46]produce_requested_data return {"fm.sale.total":8273272.89,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":162655.33,"shift.sale.total_cash":149746.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:57:46]process_action_free get_value [21:57:46]json_value_free [21:57:46]json_value_free done [21:57:46]process_json_proto returns [21:57:46]Send response to host [21:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8273272.89,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":162655.33,"shift.sale.total_cash":149746.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:57:46]free response buf [21:57:46]execute_script done [21:57:46]execute_script returns [21:57:46]free content buf [21:57:46]Sock 10.Close socket [21:57:46]Sock 10.Thread stoped [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:17]recv_with_timeout no data received [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:30]recv_with_timeout no data received [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:14]recv_with_timeout no data received [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]recv_with_timeout no data received [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:02:59]recv_with_timeout no data received [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:43]OFD Sender: No OFD packet to send [22:03:44]accept exits with 8 [22:03:44]New connection [22:03:44]New thread 3066916196 created [22:03:44]Thread 3066772836 joined [22:03:44]Waiting for new connection... [22:03:44] Sock 8.Parse request [22:03:44]Sock 8.Check first char [22:03:44]Sock 8.First char is OK [22:03:44]request: POST /json_proto HTTP/1.0 [22:03:44]Method: POST [22:03:44]URL: /json_proto [22:03:44]Method is POST - this is cgi request [22:03:44]url: /json_proto [22:03:44]query_string will be loaded in cgi processing [22:03:44]execute_cgi json_proto POST (null) [22:03:44]execute_cgi path=json_proto method=POST [22:03:44]POST find Content-Length [22:03:44]Host: 172.17.47.195:8080 [22:03:44]Content-Length: 677 [22:03:44]Content-Type: application/json [22:03:44] [22:03:44]POST finish read [22:03:44]Found Content-Length = 677 [22:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:44]execute_script... [22:03: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)872031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:44]POST & json_proto [22:03:44]process_json_proto [22:03:44]json parsed OK: [22:03:44]protocol is kg_v1.0 [22:03:44]action value=close_receipt [22:03:44]process_action close_receipt [22:03:44]cmd_close_receipt [22:03:44]MH_GetDate [22:03:44]Write to MH i2c: F0 00 00 1D 00 0C [22:03:44]Write i2c OK [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: F0 [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: F0 09 00 [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: F0 09 00 1D 00 00 41 94 F0 66 96 2E 95 66 FF [22:03:44]GetLastDocTimeStamp 1727041201 [22:03:44]current date 1727042625 [22:03:44]FM_GetShiftState [22:03:44]SAM_PROTO_GetShiftState [22:03:44]wFMCommunicate request_size=4 [22:03:44]MH_SAM_APDU [22:03:44]CAPDU: 80 13 01 00 [22:03:44]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [22:03:44]Write i2c OK [22:03:44]MH_I2C_Read... [22:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:45]Read from MH i2c: E2 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: E2 0E 00 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [22:03:45]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:03:45]wFMCommunicate OK [22:03:45]SAM_PROTO_GetShiftState done [22:03:45]FM_GetShiftState done [22:03:45]opened in 1726964224 [22:03:45]opened+sec_in_day 1727050624 [22:03:45]quantity*price = 30035 [22:03:45]sum+1 = 30036 [22:03:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 161 22.09.2024 22:03 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7763 ФПД: 225534580855538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T220345&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7763&fm=225534580855538&tin=02508201610067®Number=0000000000190446&sum=30000 [22:03:46]StoreToDocumentArchive [22:03:46]shift 70 fd 7763 [22:03:46]save to /storage/0070/doc_00007763 [22:03:46]save last doc name /storage/0070/doc_00007763 to /storage/kkm_last_doc_name [22:03:46]save OK [22:03:46]Clear old archive folders... [22:03:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:46]tlvbuf is 00383BD0 [22:03:46]SAM_PROTO_ClearQueue [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 09 00 00 [22:03:46]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:46]Read from MH i2c: E2 03 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [22:03:46]RAPDU: 90 00 [22:03:46]wFMCommunicate OK [22:03:46]SAM_PROTO_ClearQueue done [22:03:46]KKMCreateOFDPacket [22:03:46]OFDProtocolAddRootSTLVToBuf [22:03:46]FM_MakeSignedData [22:03:46]FM_MakeSignedData [22:03:46]SAM_PROTO_SignData [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 0D 01 02 [22:03:46]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [22:03:46]RAPDU: 90 00 [22:03:46]wFMCommunicate OK [22:03:46]wFMCommunicate request_size=255 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 41 94 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 53 1E 00 00 35 04 06 00 CD [22:03:46]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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 41 94 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 53 1E 00 00 35 04 06 00 CD 00 00 90 [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [22:03:46]RAPDU: 90 00 [22:03:46]wFMCommunicate OK [22:03:46]wFMCommunicate request_size=10 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 0D 02 02 05 1F 5C 93 92 F2 [22:03:46]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 1F 5C 93 92 F2 00 00 44 [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [22:03:46]RAPDU: 90 00 [22:03:46]wFMCommunicate OK [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 0D 03 02 [22:03:46]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 0B 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 0B 00 2F 00 00 78 5E 59 A8 9F F5 1E 57 90 00 8B [22:03:46]RAPDU: 78 5E 59 A8 9F F5 1E 57 90 00 [22:03:46]wFMCommunicate OK [22:03:46]SAM_PROTO_SignData done [22:03:46]FM_MakeSignedData done [22:03:46]CreateOFDProtocolMessage [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 11 00 00 [22:03:46]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 17 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [22:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [22:03:46]wFMCommunicate OK [22:03:46]CreateOFDProtocolMessage done [22:03:46]OFDSenderStorePacket 7763 [22:03:46]StoreOFDPacket docnum=7763 [22:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 1A 73 07 01 FF D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 41 94 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 53 1E 00 00 35 04 06 00 CD 1F 5C 93 92 F2 78 5E 59 A8 9F F5 1E 57 [22:03:46]CheckFolder [22:03:46]dirname=/storage/ofd_packets [22:03:46]CheckFolder done [22:03:46]ProducePacketName [22:03:46]name=ofd_packets/00007763 [22:03:46]NVStorageSaveData ofd_packets/00007763 [22:03:46]File name is /storage/ofd_packets/00007763 [22:03:46]Write 301 bytes [22:03:46]NVStorageSaveData done [22:03:46]OFDSenderStorePacket done [22:03:46]KKMCreateOFDPacket done [22:03:46]NVStorageSaveData kkm_last_timestamp [22:03:46]File name is /storage/kkm_last_timestamp [22:03:46]Write 4 bytes [22:03:46]NVStorageSaveData done [22:03:46]ExternCall_PrintAddStr [22:03:46]wPrintStart [22:03:46]Write to MH i2c: 01 00 00 31 00 31 [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: 01 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: 01 07 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [22:03:46]RasterBufferAndPrint [22:03:46]line Счет N : (1)872031 [22:03:46]line ИНН: 02508201610067 [22:03:46]line Контрольно-Кассовый Чек [22:03:46]line ПРОДАЖА [22:03:46]line ТРК (МРК, ГНК) : 33 [22:03:46]line Товар: 2710124130 [22:03:46]line Аи-92-К-5 [22:03:46]line 4.430 * 67.80 [22:03:46]line = 300.35 [22:03:46]line НДС 12% НСП 1% [22:03:46]line > о реализуемом товаре [22:03:46]line ОКРУГЛЕНИЕ: -0.35 [22:03:46]line ИТОГО: 300.00 [22:03:46]line Внесено: 300.00 [22:03:46]line СДАЧА: 0.00 [22:03:46]line НСП 1% : 2.66 [22:03:46]line НДС 12% : 31.90 [22:03:46]line Наличными: 300.00 [22:03:46]line Безнал.: 0.00 [22:03:46]line Место: АЗС № 137 "Партнер Нефть" [22:03:46]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [22:03:46]line СНО: Общий режим [22:03:46]line Чек 161 22.09.2024 22:03 [22:03:46]line Смена: 70 ФФД: 1.0 [22:03:46]line ЗНМ: 0300000041 [22:03:46]line РНМ: 0000000000190446 [22:03:46]line Версия ККМ: v1.0 [22:03:46]line ФМ: 0000000002094258 [22:03:46]line ФД: 7763 [22:03:46]line ФПД: 225534580855538 [22:03:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T220345&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7763&fm=225534580855538&tin=02508201610067®Number=0000000000190446&sum=30000 [22:03:47]OFD Sender: Processing packet 7763 [packets to send 51, broken 50] [22:03:47]ProducePacketName [22:03:47]name=ofd_packets/00007763 [22:03:47]OFD Sender: To server: pG, [22:03:47]CommunicateWithHost lk.salyk.kg:30040 [22:03:47]ConnectInit lk.salyk.kg [22:03:47]written 0, free lines is 4095 [22:03:47]Write to MH i2c: 01 00 00 5C 00 5C [22:03:47]Write i2c OK [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: 01 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: 01 07 00 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F3 0C 62 [22:03:47]RasterBufferAndPrint [22:03:47]line [22:03:47]line [22:03:47]line [22:03:47]line [22:03:47]line [22:03:47]written 0, free lines is 3321 [22:03:47]MH_Cut [22:03:47]Write to MH i2c: D1 01 00 63 00 01 35 [22:03:47]Write i2c OK [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: D1 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: D1 01 00 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: D1 01 00 63 00 00 34 [22:03:47]Write to MH i2c: 01 00 00 64 00 64 [22:03:47]Write i2c OK [22:03:47]MH_I2C_Read... [22:03:48]*** Cut start [22:03:48]*** Purtial cut [22:03:48]*** Stage 1: CUTSNS_PIN = 1 [22:03:48]Connected sock=11 [22:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 1A 73 07 01 FF D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 41 94 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 53 1E 00 00 35 04 06 00 CD 1F 5C 93 92 F2 78 5E 59 A8 9F F5 1E 57 [22:03:48]Read from MH i2c: 01 [22:03:48]MH_I2C_Read... [22:03:48]*** Stop cut motor [22:03:48]*** Cut end [22:03:48]Read from MH i2c: 01 07 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [22:03:48]process_action close_receipt done [22:03:48]requested_data is exist [22:03:48]produce_requested_data [22:03:48]requested_item fm.sn is exist - process it [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 11 00 00 [22:03:48]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 17 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [22:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [22:03:48]wFMCommunicate OK [22:03:48]requested_item fd.num is exist - process it [22:03:48]SAM_PROTO_GetFieldsCounters [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 13 00 00 [22:03:48]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 62 00 [22:03:48]MH_I2C_Read... [22:03:48]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 53 1E 00 00 0E 04 04 00 46 00 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 9A [22:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 53 1E 00 00 0E 04 04 00 46 00 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:03:48]wFMCommunicate OK [22:03:48]SAM_PROTO_GetFieldsCounters done [22:03:48]requested_item shift.num is exist - process it [22:03:48]requested_item shift.opened is exist - process it [22:03:48]req_shift_opened [22:03:48]FM_GetShiftState [22:03:48]SAM_PROTO_GetShiftState [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 13 01 00 [22:03:48]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 0E 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A7 [22:03:48]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:03:48]wFMCommunicate OK [22:03:48]SAM_PROTO_GetShiftState done [22:03:48]FM_GetShiftState done [22:03:48]req_shift_opened done [22:03:48]requested_item shift.open_date is exist - process it [22:03:48]req_shift_open_date [22:03:48]req_shift_open_date done [22:03:48]produce_requested_data done [22:03:48]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7763,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [22:03:48]process_action_free close_receipt [22:03:48]json_value_free [22:03:48]json_value_free done [22:03:48]process_json_proto returns [22:03:48]Send response to host [22:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7763,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [22:03:48]free response buf [22:03:48]execute_script done [22:03:48]execute_script returns [22:03:48]free content buf [22:03:48]Sock 8.Close socket [22:03:48]Sock 8.Thread stoped [22:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 90 99 47 00 D9 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 53 1E 00 00 F4 03 04 00 01 3F F0 66 B6 04 01 00 00 4B AF 9C 98 7A 75 81 CF [22:03:51]CommunicateWithHost err = 0 [22:03:51]CheckOFDResponse [22:03:51]1017 (14) - 77093643461234 [22:03:51]1041 (16) - 0000000002094258 [22:03:51]1040 (4) - 7763 [22:03:51]1012 (4) - 22.09.2024 16:00 [22:03:51]1206 (1) - 0 [22:03:51]OFD Sender: Remove packet 7763 [22:03:51]ProducePacketName [22:03:51]name=ofd_packets/00007763 [22:03:51]NVStorageDeleteData [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:19]recv_with_timeout no data received [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:04]recv_with_timeout no data received [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:34]recv_with_timeout no data received [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:44]recv_with_timeout no data received [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]recv_with_timeout no data received [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]recv_with_timeout no data received [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]recv_with_timeout no data received [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:34]accept exits with 10 [22:08:34]New connection [22:08:34]New thread 3066772836 created [22:08:34]Thread 3066916196 joined [22:08:34]Waiting for new connection... [22:08:34] Sock 10.Parse request [22:08:34]Sock 10.Check first char [22:08:34]Sock 10.First char is OK [22:08:34]request: POST /json_proto HTTP/1.0 [22:08:34]Method: POST [22:08:34]URL: /json_proto [22:08:34]Method is POST - this is cgi request [22:08:34]url: /json_proto [22:08:34]query_string will be loaded in cgi processing [22:08:34]execute_cgi json_proto POST (null) [22:08:34]execute_cgi path=json_proto method=POST [22:08:34]POST find Content-Length [22:08:34]Host: 172.17.47.195:8080 [22:08:34]Content-Length: 803 [22:08:34]Content-Type: application/json [22:08:34] [22:08:34]POST finish read [22:08:34]Found Content-Length = 803 [22:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872033", "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" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:34]execute_script... [22:08:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872033", "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" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:34]POST & json_proto [22:08:34]process_json_proto [22:08:34]json parsed OK: [22:08:34]protocol is kg_v1.0 [22:08:34]action value=close_receipt [22:08:34]process_action close_receipt [22:08:34]cmd_close_receipt [22:08:34]MH_GetDate [22:08:34]Write to MH i2c: F0 00 00 68 00 57 [22:08:34]Write i2c OK [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: F0 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: F0 09 00 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: F0 09 00 68 00 00 63 95 F0 66 96 2E 95 66 6D [22:08:34]GetLastDocTimeStamp 1727042625 [22:08:34]current date 1727042915 [22:08:34]FM_GetShiftState [22:08:34]SAM_PROTO_GetShiftState [22:08:34]wFMCommunicate request_size=4 [22:08:34]MH_SAM_APDU [22:08:34]CAPDU: 80 13 01 00 [22:08:34]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [22:08:34]Write i2c OK [22:08:34]MH_I2C_Read... [22:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:34]Read from MH i2c: E2 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 0E 00 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [22:08:34]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:08:34]wFMCommunicate OK [22:08:34]SAM_PROTO_GetShiftState done [22:08:34]FM_GetShiftState done [22:08:34]opened in 1726964224 [22:08:34]opened+sec_in_day 1727050624 [22:08:34]quantity*price = 200010 [22:08:34]sum+1 = 200011 [22:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 162 22.09.2024 22:08 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094258 ФД: 7764 ФПД: 46779595416779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T220835&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7764&fm=46779595416779&tin=02508201610067®Number=0000000000190446&sum=200010 [22:08:35]StoreToDocumentArchive [22:08:35]shift 70 fd 7764 [22:08:35]save to /storage/0070/doc_00007764 [22:08:35]save last doc name /storage/0070/doc_00007764 to /storage/kkm_last_doc_name [22:08:35]save OK [22:08:35]Clear old archive folders... [22:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:35]tlvbuf is 0037A7C0 [22:08:35]SAM_PROTO_ClearQueue [22:08:35]wFMCommunicate request_size=4 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 09 00 00 [22:08:35]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [22:08:35]RAPDU: 90 00 [22:08:35]wFMCommunicate OK [22:08:35]SAM_PROTO_ClearQueue done [22:08:35]KKMCreateOFDPacket [22:08:35]OFDProtocolAddRootSTLVToBuf [22:08:35]FM_MakeSignedData [22:08:35]FM_MakeSignedData [22:08:35]SAM_PROTO_SignData [22:08:35]wFMCommunicate request_size=4 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 0D 01 02 [22:08:35]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [22:08:35]RAPDU: 90 00 [22:08:35]wFMCommunicate OK [22:08:35]wFMCommunicate request_size=255 [22:08:35]MH_SAM_APDU [22:08: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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 63 95 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 54 1E 00 00 35 04 06 00 2A [22:08:35]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 63 95 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 54 1E 00 00 35 04 06 00 2A 00 00 56 [22:08:35]recv_with_timeout no data received [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [22:08:35]RAPDU: 90 00 [22:08:35]wFMCommunicate OK [22:08:35]wFMCommunicate request_size=10 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 0D 02 02 05 8B B9 2A E4 CB [22:08:35]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 8B B9 2A E4 CB 00 00 1A [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [22:08:35]RAPDU: 90 00 [22:08:35]wFMCommunicate OK [22:08:35]wFMCommunicate request_size=4 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 0D 03 02 [22:08:35]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:36]Read from MH i2c: E2 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 0B 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 0B 00 7A 00 00 FB 6B 99 CC 08 48 B0 DC 90 00 9D [22:08:36]RAPDU: FB 6B 99 CC 08 48 B0 DC 90 00 [22:08:36]wFMCommunicate OK [22:08:36]SAM_PROTO_SignData done [22:08:36]FM_MakeSignedData done [22:08:36]CreateOFDProtocolMessage [22:08:36]wFMCommunicate request_size=4 [22:08:36]MH_SAM_APDU [22:08:36]CAPDU: 80 11 00 00 [22:08:36]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:36]Read from MH i2c: E2 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 17 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [22:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [22:08:36]wFMCommunicate OK [22:08:36]CreateOFDProtocolMessage done [22:08:36]OFDSenderStorePacket 7764 [22:08:36]StoreOFDPacket docnum=7764 [22:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 5C 41 07 01 36 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 63 95 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 54 1E 00 00 35 04 06 00 2A 8B B9 2A E4 CB FB 6B 99 CC 08 48 B0 DC [22:08:36]CheckFolder [22:08:36]dirname=/storage/ofd_packets [22:08:36]CheckFolder done [22:08:36]ProducePacketName [22:08:36]name=ofd_packets/00007764 [22:08:36]NVStorageSaveData ofd_packets/00007764 [22:08:36]File name is /storage/ofd_packets/00007764 [22:08:36]Write 301 bytes [22:08:36]NVStorageSaveData done [22:08:36]OFDSenderStorePacket done [22:08:36]KKMCreateOFDPacket done [22:08:36]NVStorageSaveData kkm_last_timestamp [22:08:36]File name is /storage/kkm_last_timestamp [22:08:36]Write 4 bytes [22:08:36]NVStorageSaveData done [22:08:36]ExternCall_PrintAddStr [22:08:36]wPrintStart [22:08:36]Write to MH i2c: 01 00 00 7C 00 7C [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 07 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [22:08:36]RasterBufferAndPrint [22:08:36]line Счет N : (1)872033 [22:08:36]line ИНН: 02508201610067 [22:08:36]line Контрольно-Кассовый Чек [22:08:36]line ПРОДАЖА [22:08:36]line ТРК (МРК, ГНК) : 53 [22:08:36]line Товар: 2710124130 [22:08:36]line Аи-92-К-5 [22:08:36]line 29.500 * 67.80 [22:08:36]line = 2000.10 [22:08:36]line НДС 12% НСП 1% [22:08:36]line > о реализуемом товаре [22:08:36]line ИТОГО: 2000.10 [22:08:36]line НСП 1% : 17.70 [22:08:36]line НДС 12% : 212.40 [22:08:36]line Наличными: 0.00 [22:08:36]line Безнал.: 2000.10 [22:08:36]line Место: АЗС № 137 "Партнер Нефть" [22:08:36]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [22:08:36]line СНО: Общий режим [22:08:36]line Чек 162 22.09.2024 22:08 [22:08:36]line Смена: 70 ФФД: 1.0 [22:08:36]line ЗНМ: 0300000041 [22:08:36]line РНМ: 0000000000190446 [22:08:36]line Версия ККМ: v1.0 [22:08:36]line Платежная система: O! деньги [22:08:36]line ФМ: 0000000002094258 [22:08:36]line ФД: 7764 [22:08:36]line ФПД: 46779595416779 [22:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T220835&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7764&fm=46779595416779&tin=02508201610067®Number=0000000000190446&sum=200010 [22:08:36]OFD Sender: Processing packet 7764 [packets to send 51, broken 50] [22:08:36]ProducePacketName [22:08:36]name=ofd_packets/00007764 [22:08:36]OFD Sender: To server: pG, [22:08:36]CommunicateWithHost lk.salyk.kg:30040 [22:08:36]ConnectInit lk.salyk.kg [22:08:36]written 0, free lines is 4095 [22:08:36]Write to MH i2c: 01 00 00 A6 00 A6 [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 07 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 FA 0C B3 [22:08:36]RasterBufferAndPrint [22:08:36]line [22:08:36]line [22:08:36]line [22:08:36]line [22:08:36]line [22:08:36]written 0, free lines is 3328 [22:08:36]MH_Cut [22:08:36]Write to MH i2c: D1 01 00 AD 00 01 7F [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: D1 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: D1 01 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: D1 01 00 AD 00 00 7E [22:08:36]Write to MH i2c: 01 00 00 AE 00 AE [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:37]*** Cut start [22:08:37]*** Purtial cut [22:08:37]*** Stage 1: CUTSNS_PIN = 1 [22:08:37]Read from MH i2c: 01 [22:08:37]MH_I2C_Read... [22:08:37]*** Stop cut motor [22:08:37]*** Cut end [22:08:37]Read from MH i2c: 01 07 00 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [22:08:37]process_action close_receipt done [22:08:37]requested_data is exist [22:08:37]produce_requested_data [22:08:37]requested_item fm.sn is exist - process it [22:08:37]wFMCommunicate request_size=4 [22:08:37]MH_SAM_APDU [22:08:37]CAPDU: 80 11 00 00 [22:08:37]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [22:08:37]Write i2c OK [22:08:37]MH_I2C_Read... [22:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:37]Read from MH i2c: E2 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 17 00 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7A [22:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [22:08:37]wFMCommunicate OK [22:08:37]requested_item fd.num is exist - process it [22:08:37]SAM_PROTO_GetFieldsCounters [22:08:37]wFMCommunicate request_size=4 [22:08:37]MH_SAM_APDU [22:08:37]CAPDU: 80 13 00 00 [22:08:37]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [22:08:37]Write i2c OK [22:08:37]MH_I2C_Read... [22:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:37]Read from MH i2c: E2 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 62 00 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 54 1E 00 00 0E 04 04 00 46 00 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 E8 [22:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 54 1E 00 00 0E 04 04 00 46 00 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:08:37]wFMCommunicate OK [22:08:37]SAM_PROTO_GetFieldsCounters done [22:08:37]requested_item shift.num is exist - process it [22:08:37]requested_item shift.opened is exist - process it [22:08:37]req_shift_opened [22:08:37]FM_GetShiftState [22:08:37]SAM_PROTO_GetShiftState [22:08:37]wFMCommunicate request_size=4 [22:08:37]MH_SAM_APDU [22:08:37]CAPDU: 80 13 01 00 [22:08:37]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [22:08:37]Write i2c OK [22:08:37]MH_I2C_Read... [22:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:38]Read from MH i2c: E2 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 0E 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F1 [22:08:38]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:08:38]wFMCommunicate OK [22:08:38]SAM_PROTO_GetShiftState done [22:08:38]FM_GetShiftState done [22:08:38]req_shift_opened done [22:08:38]requested_item shift.open_date is exist - process it [22:08:38]req_shift_open_date [22:08:38]req_shift_open_date done [22:08:38]produce_requested_data done [22:08:38]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7764,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [22:08:38]process_action_free close_receipt [22:08:38]json_value_free [22:08:38]json_value_free done [22:08:38]process_json_proto returns [22:08:38]Send response to host [22:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7764,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [22:08:38]free response buf [22:08:38]execute_script done [22:08:38]execute_script returns [22:08:38]free content buf [22:08:38]Sock 10.Close socket [22:08:38]Sock 10.Thread stoped [22:08:40]Connected sock=8 [22:08:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 5C 41 07 01 36 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 63 95 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 54 1E 00 00 35 04 06 00 2A 8B B9 2A E4 CB FB 6B 99 CC 08 48 B0 DC [22:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 A8 B5 47 00 CA 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 32 30 39 34 32 35 38 10 04 04 00 54 1E 00 00 F4 03 04 00 25 40 F0 66 B6 04 01 00 00 94 1B 91 97 7F 42 01 7B [22:08:41]CommunicateWithHost err = 0 [22:08:41]CheckOFDResponse [22:08:41]1017 (14) - 77093643461234 [22:08:41]1041 (16) - 0000000002094258 [22:08:41]1040 (4) - 7764 [22:08:41]1012 (4) - 22.09.2024 16:04 [22:08:41]1206 (1) - 0 [22:08:41]OFD Sender: Remove packet 7764 [22:08:41]ProducePacketName [22:08:41]name=ofd_packets/00007764 [22:08:41]NVStorageDeleteData [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:48]recv_with_timeout no data received [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:21]recv_with_timeout no data received [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:35]recv_with_timeout no data received [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:05]recv_with_timeout no data received [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:22]recv_with_timeout no data received [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:46]recv_with_timeout no data received [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:41]recv_with_timeout no data received [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:14:59]recv_with_timeout no data received [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:43]recv_with_timeout no data received [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:14]recv_with_timeout no data received [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:48]recv_with_timeout no data received [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:21]recv_with_timeout no data received [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]recv_with_timeout no data received [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:15]recv_with_timeout no data received [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]recv_with_timeout no data received [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:13]recv_with_timeout no data received [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:33]recv_with_timeout no data received [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]recv_with_timeout no data received [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:14]recv_with_timeout no data received [22:22:18]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:40]recv_with_timeout no data received [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:51]recv_with_timeout no data received [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:02]recv_with_timeout no data received [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:42]recv_with_timeout no data received [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:51]recv_with_timeout no data received [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:09]recv_with_timeout no data received [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:37]recv_with_timeout no data received [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:16]recv_with_timeout no data received [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]accept exits with 9 [22:33:23]New connection [22:33:23]New thread 3066916196 created [22:33:23]Thread 3066772836 joined [22:33:23]Waiting for new connection... [22:33:23] Sock 9.Parse request [22:33:23]Sock 9.Check first char [22:33:23]Sock 9.First char is OK [22:33:23]request: POST /json_proto HTTP/1.0 [22:33:23]Method: POST [22:33:23]URL: /json_proto [22:33:23]Method is POST - this is cgi request [22:33:23]url: /json_proto [22:33:23]query_string will be loaded in cgi processing [22:33:23]execute_cgi json_proto POST (null) [22:33:23]execute_cgi path=json_proto method=POST [22:33:23]POST find Content-Length [22:33:23]Host: 172.17.47.195:8080 [22:33:23]Content-Length: 682 [22:33:23]Content-Type: application/json [22:33:23] [22:33:23]POST finish read [22:33:23]Found Content-Length = 682 [22:33:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:23]execute_script... [22:33: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)872037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:23]POST & json_proto [22:33:23]process_json_proto [22:33:23]json parsed OK: [22:33:23]protocol is kg_v1.0 [22:33:23]action value=close_receipt [22:33:23]process_action close_receipt [22:33:23]cmd_close_receipt [22:33:23]MH_GetDate [22:33:23]Write to MH i2c: F0 00 00 B2 00 A1 [22:33:23]Write i2c OK [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: F0 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: F0 09 00 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: F0 09 00 B2 00 00 34 9B F0 66 96 2E 95 66 8E [22:33:23]GetLastDocTimeStamp 1727042915 [22:33:23]current date 1727044404 [22:33:23]FM_GetShiftState [22:33:23]SAM_PROTO_GetShiftState [22:33:23]wFMCommunicate request_size=4 [22:33:23]MH_SAM_APDU [22:33:23]CAPDU: 80 13 01 00 [22:33:23]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [22:33:23]Write i2c OK [22:33:23]MH_I2C_Read... [22:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:23]Read from MH i2c: E2 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: E2 0E 00 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 F3 [22:33:23]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:33:23]wFMCommunicate OK [22:33:23]SAM_PROTO_GetShiftState done [22:33:23]FM_GetShiftState done [22:33:23]opened in 1726964224 [22:33:23]opened+sec_in_day 1727050624 [22:33:23]quantity*price = 100005 [22:33:23]sum+1 = 100006 [22:33:23]Check (price>sum+1) || (price+1 о реализуемом товаре [22:52:21]line ОКРУГЛЕНИЕ: -0.05 [22:52:21]line ИТОГО: 1000.00 [22:52:21]line Внесено: 1000.00 [22:52:21]line СДАЧА: 0.00 [22:52:21]line НСП 1% : 8.85 [22:52:21]line НДС 12% : 106.20 [22:52:21]line Наличными: 1000.00 [22:52:21]line Безнал.: 0.00 [22:52:21]line Место: АЗС № 137 "Партнер Нефть" [22:52:21]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [22:52:21]line СНО: Общий режим [22:52:21]line Чек 163 22.09.2024 22:33 [22:52:21]line Смена: 70 ФФД: 1.0 [22:52:21]line ЗНМ: 0300000041 [22:52:21]line РНМ: 0000000000190446 [22:52:21]line Версия ККМ: v1.0 [22:52:21]line ФМ: 0000000002094258 [22:52:21]line ФД: 7765 [22:52:21]line ФПД: 20320297482742 [22:52:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223324&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7765&fm=20320297482742&tin=02508201610067®Number=0000000000190446&sum=100000 [22:52:22]written 0, free lines is 4095 [22:52:22]Write to MH i2c: 01 00 00 48 00 48 [22:52:22]Write i2c OK [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: 01 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: 01 07 00 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F9 0C 54 [22:52:22]RasterBufferAndPrint [22:52:22]line [22:52:22]line [22:52:22]line [22:52:22]line [22:52:22]line [22:52:22]written 0, free lines is 3333 [22:52:22]MH_Cut [22:52:22]Write to MH i2c: D1 01 00 4F 00 01 21 [22:52:22]Write i2c OK [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: D1 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: D1 01 00 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: D1 01 00 4F 00 00 20 [22:52:22]Write to MH i2c: 01 00 00 50 00 50 [22:52:22]Write i2c OK [22:52:22]MH_I2C_Read... [22:52:23]*** Cut start [22:52:23]*** Purtial cut [22:52:23]*** Stage 1: CUTSNS_PIN = 1 [22:52:23]OFD Sender: No OFD packet to send [22:52:23]Read from MH i2c: 01 [22:52:23]MH_I2C_Read... [22:52:23]*** Stop cut motor [22:52:23]Read from MH i2c: 01 07 00 [22:52:23]MH_I2C_Read... [22:52:23]*** Cut end [22:52:23]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [22:52:23]process_action print_doc done [22:52:23]requested_data is exist [22:52:23]produce_requested_data [22:52:23]produce_requested_data return (null) [22:52:23]process_action_free print_doc [22:52:23]json_value_free [22:52:23]json_value_free done [22:52:23]process_json_proto returns [22:52:23]Send response to host [22:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [22:52:23]free response buf [22:52:23]execute_script done [22:52:23]execute_script returns [22:52:23]free content buf [22:52:23]Sock 9.Close socket [22:52:23]Sock 9.Thread stoped [22:52:28]OFD Sender: No OFD packet to send [22:52:29]recv_with_timeout no data received [22:52:33]OFD Sender: No OFD packet to send [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:52]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:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:16]accept exits with 7 [22:53:16]New connection [22:53:16]New thread 3066568036 created [22:53:16]Thread 3066711396 joined [22:53:16]Waiting for new connection... [22:53:16] Sock 7.Parse request [22:53:16]Sock 7.Check first char [22:53:16]Sock 7.First char is OK [22:53:16]request: POST /json_proto HTTP/1.0 [22:53:16]Method: POST [22:53:16]URL: /json_proto [22:53:16]Method is POST - this is cgi request [22:53:16]url: /json_proto [22:53:16]query_string will be loaded in cgi processing [22:53:16]execute_cgi json_proto POST (null) [22:53:16]execute_cgi path=json_proto method=POST [22:53:16]POST find Content-Length [22:53:16]Host: 172.17.47.195:8080 [22:53:16]Content-Length: 683 [22:53:16]Content-Type: application/json [22:53:16] [22:53:16]POST finish read [22:53:16]Found Content-Length = 683 [22:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.040, "sum" : 765.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 765.00, "total" : 765.00, "payments": [ { "type": 0, "sum" : 765.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:16]execute_script... [22:53:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.040, "sum" : 765.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 765.00, "total" : 765.00, "payments": [ { "type": 0, "sum" : 765.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:16]POST & json_proto [22:53:16]process_json_proto [22:53:16]json parsed OK: [22:53:16]protocol is kg_v1.0 [22:53:16]action value=close_receipt [22:53:16]process_action close_receipt [22:53:16]cmd_close_receipt [22:53:16]MH_GetDate [22:53:16]Write to MH i2c: F0 00 00 51 00 40 [22:53:16]Write i2c OK [22:53:16]MH_I2C_Read... [22:53:16]Read from MH i2c: F0 [22:53:16]MH_I2C_Read... [22:53:16]Read from MH i2c: F0 09 00 [22:53:16]MH_I2C_Read... [22:53:16]Read from MH i2c: F0 09 00 51 00 00 DD 9F F0 66 96 2E 95 66 DA [22:53:16]GetLastDocTimeStamp 1727044404 [22:53:16]current date 1727045597 [22:53:16]FM_GetShiftState [22:53:16]SAM_PROTO_GetShiftState [22:53:16]wFMCommunicate request_size=4 [22:53:16]MH_SAM_APDU [22:53:16]CAPDU: 80 13 01 00 [22:53:16]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [22:53:16]Write i2c OK [22:53:16]MH_I2C_Read... [22:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:16]Read from MH i2c: E2 [22:53:16]MH_I2C_Read... [22:53:16]Read from MH i2c: E2 0E 00 [22:53:16]MH_I2C_Read... [22:53:16]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 92 [22:53:16]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:53:16]wFMCommunicate OK [22:53:16]SAM_PROTO_GetShiftState done [22:53:16]FM_GetShiftState done [22:53:16]opened in 1726964224 [22:53:16]opened+sec_in_day 1727050624 [22:53:16]quantity*price = 76504 [22:53:16]sum+1 = 76506 [22:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 765.00 Внесено: 765.00 СДАЧА: 0.00 НСП 1% : 6.77 НДС 12% : 81.24 Наличными: 765.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 164 22.09.2024 22:53 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7766 ФПД: 92862820833009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T225317&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7766&fm=92862820833009&tin=02508201610067®Number=0000000000190446&sum=76500 [22:53:17]StoreToDocumentArchive [22:53:17]shift 70 fd 7766 [22:53:17]save to /storage/0070/doc_00007766 [22:53:17]save last doc name /storage/0070/doc_00007766 to /storage/kkm_last_doc_name [22:53:17]save OK [22:53:17]Clear old archive folders... [22:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:53:17]tlvbuf is 00FDDC50 [22:53:17]SAM_PROTO_ClearQueue [22:53:17]wFMCommunicate request_size=4 [22:53:17]MH_SAM_APDU [22:53:17]CAPDU: 80 09 00 00 [22:53:17]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:17]Read from MH i2c: E2 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [22:53:17]RAPDU: 90 00 [22:53:17]wFMCommunicate OK [22:53:17]SAM_PROTO_ClearQueue done [22:53:17]KKMCreateOFDPacket [22:53:17]OFDProtocolAddRootSTLVToBuf [22:53:17]FM_MakeSignedData [22:53:17]FM_MakeSignedData [22:53:17]SAM_PROTO_SignData [22:53:17]wFMCommunicate request_size=4 [22:53:17]MH_SAM_APDU [22:53:17]CAPDU: 80 0D 01 02 [22:53:17]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:18]Read from MH i2c: E2 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 03 00 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [22:53:18]RAPDU: 90 00 [22:53:18]wFMCommunicate OK [22:53:18]wFMCommunicate request_size=255 [22:53:18]MH_SAM_APDU [22: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 34 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D9 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 1F 00 00 00 00 07 04 06 00 D4 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 DD 9F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 56 1E 00 00 35 04 06 00 [22:53:18]Write to MH i2c: E2 02 01 61 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 34 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D9 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 1F 00 00 00 00 07 04 06 00 D4 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 DD 9F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 56 1E 00 00 35 04 06 00 00 00 0E [22:53:18]Write i2c OK [22:53:18]MH_I2C_Read... [22:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:18]Read from MH i2c: E2 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 03 00 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [22:53:18]RAPDU: 90 00 [22:53:18]wFMCommunicate OK [22:53:18]wFMCommunicate request_size=11 [22:53:18]MH_SAM_APDU [22:53:18]CAPDU: 80 0D 02 02 06 54 75 4F 72 D6 F1 [22:53:18]Write to MH i2c: E2 0E 00 62 00 80 0D 02 02 06 00 54 75 4F 72 D6 F1 00 00 39 [22:53:18]Write i2c OK [22:53:18]MH_I2C_Read... [22:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:18]Read from MH i2c: E2 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 03 00 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [22:53:18]RAPDU: 90 00 [22:53:18]wFMCommunicate OK [22:53:18]wFMCommunicate request_size=4 [22:53:18]MH_SAM_APDU [22:53:18]CAPDU: 80 0D 03 02 [22:53:18]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [22:53:18]Write i2c OK [22:53:18]MH_I2C_Read... [22:53:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:18]Read from MH i2c: E2 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 0B 00 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 0B 00 63 00 00 97 4F F3 D3 C9 7C 4A 21 90 00 3B [22:53:18]RAPDU: 97 4F F3 D3 C9 7C 4A 21 90 00 [22:53:18]wFMCommunicate OK [22:53:18]SAM_PROTO_SignData done [22:53:18]FM_MakeSignedData done [22:53:18]CreateOFDProtocolMessage [22:53:18]wFMCommunicate request_size=4 [22:53:18]MH_SAM_APDU [22:53:18]CAPDU: 80 11 00 00 [22:53:18]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [22:53:18]Write i2c OK [22:53:18]MH_I2C_Read... [22:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:18]Read from MH i2c: E2 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 17 00 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 2F [22:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [22:53:18]wFMCommunicate OK [22:53:18]CreateOFDProtocolMessage done [22:53:18]OFDSenderStorePacket 7766 [22:53:18]StoreOFDPacket docnum=7766 [22:53:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 50 2C 08 01 0E 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D9 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 1F 00 00 00 00 07 04 06 00 D4 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 DD 9F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 56 1E 00 00 35 04 06 00 54 75 4F 72 D6 F1 97 4F F3 D3 C9 7C 4A 21 [22:53:18]CheckFolder [22:53:18]dirname=/storage/ofd_packets [22:53:18]CheckFolder done [22:53:18]ProducePacketName [22:53:18]name=ofd_packets/00007766 [22:53:18]NVStorageSaveData ofd_packets/00007766 [22:53:18]File name is /storage/ofd_packets/00007766 [22:53:18]Write 302 bytes [22:53:18]NVStorageSaveData done [22:53:18]OFDSenderStorePacket done [22:53:18]KKMCreateOFDPacket done [22:53:18]NVStorageSaveData kkm_last_timestamp [22:53:18]File name is /storage/kkm_last_timestamp [22:53:18]Write 4 bytes [22:53:18]NVStorageSaveData done [22:53:18]ExternCall_PrintAddStr [22:53:18]wPrintStart [22:53:18]Write to MH i2c: 01 00 00 65 00 65 [22:53:18]Write i2c OK [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: 01 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: 01 07 00 [22:53:18]MH_I2C_Read... [22:53:18]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [22:53:18]RasterBufferAndPrint [22:53:18]line Счет N : (1)872043 [22:53:18]line ИНН: 02508201610067 [22:53:18]line Контрольно-Кассовый Чек [22:53:18]line ПРОДАЖА [22:53:18]line ТРК (МРК, ГНК) : 44 [22:53:18]line Товар: 2710194210 [22:53:18]line ДТ(л)-К-4 [22:53:18]line 10.040 * 76.20 [22:53:18]line = 765.05 [22:53:18]line НДС 12% НСП 1% [22:53:18]line > о реализуемом товаре [22:53:18]line ОКРУГЛЕНИЕ: -0.05 [22:53:18]line ИТОГО: 765.00 [22:53:18]line Внесено: 765.00 [22:53:18]line СДАЧА: 0.00 [22:53:18]line НСП 1% : 6.77 [22:53:18]line НДС 12% : 81.24 [22:53:18]line Наличными: 765.00 [22:53:18]line Безнал.: 0.00 [22:53:18]line Место: АЗС № 137 "Партнер Нефть" [22:53:18]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [22:53:18]line СНО: Общий режим [22:53:18]line Чек 164 22.09.2024 22:53 [22:53:18]line Смена: 70 ФФД: 1.0 [22:53:18]line ЗНМ: 0300000041 [22:53:18]line РНМ: 0000000000190446 [22:53:18]line Версия ККМ: v1.0 [22:53:18]line ФМ: 0000000002094258 [22:53:18]line ФД: 7766 [22:53:18]line ФПД: 92862820833009 [22:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T225317&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7766&fm=92862820833009&tin=02508201610067®Number=0000000000190446&sum=76500 [22:53:18]OFD Sender: Processing packet 7766 [packets to send 51, broken 50] [22:53:18]ProducePacketName [22:53:18]name=ofd_packets/00007766 [22:53:18]OFD Sender: To server: pG, [22:53:18]CommunicateWithHost lk.salyk.kg:30040 [22:53:18]ConnectInit lk.salyk.kg [22:53:18]written 0, free lines is 4095 [22:53:19]Write to MH i2c: 01 00 00 90 00 90 [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: 01 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: 01 07 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 EC 0C 8F [22:53:19]RasterBufferAndPrint [22:53:19]line [22:53:19]line [22:53:19]line [22:53:19]line [22:53:19]line [22:53:19]written 0, free lines is 3314 [22:53:19]MH_Cut [22:53:19]Write to MH i2c: D1 01 00 97 00 01 69 [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: D1 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: D1 01 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: D1 01 00 97 00 00 68 [22:53:19]Write to MH i2c: 01 00 00 98 00 98 [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** Cut start [22:53:19]*** Purtial cut [22:53:19]*** Stage 1: CUTSNS_PIN = 1 [22:53:20]Read from MH i2c: 01 [22:53:20]MH_I2C_Read... [22:53:20]*** Stop cut motor [22:53:20]*** Cut end [22:53:20]Read from MH i2c: 01 07 00 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [22:53:20]process_action close_receipt done [22:53:20]requested_data is exist [22:53:20]produce_requested_data [22:53:20]requested_item fm.sn is exist - process it [22:53:20]wFMCommunicate request_size=4 [22:53:20]MH_SAM_APDU [22:53:20]CAPDU: 80 11 00 00 [22:53:20]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [22:53:20]Write i2c OK [22:53:20]MH_I2C_Read... [22:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:20]Read from MH i2c: E2 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: E2 17 00 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 64 [22:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [22:53:20]wFMCommunicate OK [22:53:20]requested_item fd.num is exist - process it [22:53:20]SAM_PROTO_GetFieldsCounters [22:53:20]wFMCommunicate request_size=4 [22:53:20]MH_SAM_APDU [22:53:20]CAPDU: 80 13 00 00 [22:53:20]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [22:53:20]Write i2c OK [22:53:20]MH_I2C_Read... [22:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:20]Read from MH i2c: E2 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: E2 62 00 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 56 1E 00 00 0E 04 04 00 46 00 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 DA [22:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 56 1E 00 00 0E 04 04 00 46 00 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:53:20]wFMCommunicate OK [22:53:20]SAM_PROTO_GetFieldsCounters done [22:53:20]requested_item shift.num is exist - process it [22:53:20]requested_item shift.opened is exist - process it [22:53:20]req_shift_opened [22:53:20]FM_GetShiftState [22:53:20]SAM_PROTO_GetShiftState [22:53:20]wFMCommunicate request_size=4 [22:53:20]MH_SAM_APDU [22:53:20]CAPDU: 80 13 01 00 [22:53:20]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [22:53:20]Write i2c OK [22:53:20]MH_I2C_Read... [22:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:20]Read from MH i2c: E2 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: E2 0E 00 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 DB [22:53:20]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:53:20]wFMCommunicate OK [22:53:20]SAM_PROTO_GetShiftState done [22:53:20]FM_GetShiftState done [22:53:20]req_shift_opened done [22:53:20]requested_item shift.open_date is exist - process it [22:53:20]req_shift_open_date [22:53:20]req_shift_open_date done [22:53:20]produce_requested_data done [22:53:20]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7766,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [22:53:20]process_action_free close_receipt [22:53:20]json_value_free [22:53:20]json_value_free done [22:53:20]process_json_proto returns [22:53:20]Send response to host [22:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7766,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [22:53:20]free response buf [22:53:20]execute_script done [22:53:20]execute_script returns [22:53:20]free content buf [22:53:20]Sock 7.Close socket [22:53:20]Sock 7.Thread stoped [22:53:29]Connected sock=11 [22:53:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 50 2C 08 01 0E 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D9 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 1F 00 00 00 00 07 04 06 00 D4 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 DD 9F F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 56 1E 00 00 35 04 06 00 54 75 4F 72 D6 F1 97 4F F3 D3 C9 7C 4A 21 [22:53:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 FE A4 47 00 35 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 56 1E 00 00 F4 03 04 00 A6 4A F0 66 B6 04 01 00 00 15 04 86 3F DC 3B 06 67 [22:53:33]CommunicateWithHost err = 0 [22:53:33]CheckOFDResponse [22:53:33]1017 (14) - 77093643461234 [22:53:33]1041 (16) - 0000000002094258 [22:53:33]1040 (4) - 7766 [22:53:33]1012 (4) - 22.09.2024 16:49 [22:53:33]1206 (1) - 0 [22:53:33]OFD Sender: Remove packet 7766 [22:53:33]ProducePacketName [22:53:33]name=ofd_packets/00007766 [22:53:33]NVStorageDeleteData [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]accept exits with 10 [22:54:08]New connection [22:54:08]New thread 3066711396 created [22:54:08]Thread 3066568036 joined [22:54:08]Waiting for new connection... [22:54:08] Sock 10.Parse request [22:54:08]Sock 10.Check first char [22:54:08]Sock 10.First char is OK [22:54:08]request: POST /json_proto HTTP/1.0 [22:54:08]Method: POST [22:54:08]URL: /json_proto [22:54:08]Method is POST - this is cgi request [22:54:08]url: /json_proto [22:54:08]query_string will be loaded in cgi processing [22:54:08]execute_cgi json_proto POST (null) [22:54:08]execute_cgi path=json_proto method=POST [22:54:08]POST find Content-Length [22:54:08]Host: 172.17.47.195:8080 [22:54:08]Content-Length: 682 [22:54:08]Content-Type: application/json [22:54:08] [22:54:08]POST finish read [22:54:08]Found Content-Length = 682 [22:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872045", "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" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:08]execute_script... [22:54: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)872045", "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" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:08]POST & json_proto [22:54:08]process_json_proto [22:54:08]json parsed OK: [22:54:08]protocol is kg_v1.0 [22:54:08]action value=close_receipt [22:54:08]process_action close_receipt [22:54:08]cmd_close_receipt [22:54:08]MH_GetDate [22:54:08]Write to MH i2c: F0 00 00 9C 00 8B [22:54:08]Write i2c OK [22:54:08]MH_I2C_Read... [22:54:08]Read from MH i2c: F0 [22:54:08]MH_I2C_Read... [22:54:08]Read from MH i2c: F0 09 00 [22:54:08]MH_I2C_Read... [22:54:08]Read from MH i2c: F0 09 00 9C 00 00 10 A0 F0 66 96 2E 95 66 59 [22:54:08]GetLastDocTimeStamp 1727045597 [22:54:08]current date 1727045648 [22:54:08]FM_GetShiftState [22:54:08]SAM_PROTO_GetShiftState [22:54:08]wFMCommunicate request_size=4 [22:54:08]MH_SAM_APDU [22:54:08]CAPDU: 80 13 01 00 [22:54:08]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [22:54:08]Write i2c OK [22:54:08]MH_I2C_Read... [22:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:08]Read from MH i2c: E2 [22:54:08]MH_I2C_Read... [22:54:08]Read from MH i2c: E2 0E 00 [22:54:08]MH_I2C_Read... [22:54:08]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 DD [22:54:08]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:54:08]wFMCommunicate OK [22:54:08]SAM_PROTO_GetShiftState done [22:54:08]FM_GetShiftState done [22:54:08]opened in 1726964224 [22:54:08]opened+sec_in_day 1727050624 [22:54:08]quantity*price = 130040 [22:54:08]sum+1 = 130041 [22:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 165 22.09.2024 22:54 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7767 ФПД: 138594681568886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T225408&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7767&fm=138594681568886&tin=02508201610067®Number=0000000000190446&sum=130000 [22:54:09]StoreToDocumentArchive [22:54:09]shift 70 fd 7767 [22:54:09]save to /storage/0070/doc_00007767 [22:54:09]save last doc name /storage/0070/doc_00007767 to /storage/kkm_last_doc_name [22:54:09]save OK [22:54:09]Clear old archive folders... [22:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:09]tlvbuf is 00FE16A0 [22:54:09]SAM_PROTO_ClearQueue [22:54:09]wFMCommunicate request_size=4 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 09 00 00 [22:54:09]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 03 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [22:54:09]RAPDU: 90 00 [22:54:09]wFMCommunicate OK [22:54:09]SAM_PROTO_ClearQueue done [22:54:09]KKMCreateOFDPacket [22:54:09]OFDProtocolAddRootSTLVToBuf [22:54:09]FM_MakeSignedData [22:54:09]FM_MakeSignedData [22:54:09]SAM_PROTO_SignData [22:54:09]wFMCommunicate request_size=4 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 0D 01 02 [22:54:09]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 03 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [22:54:09]RAPDU: 90 00 [22:54:09]wFMCommunicate OK [22:54:09]wFMCommunicate request_size=255 [22:54:09]MH_SAM_APDU [22:54: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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 10 A0 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 57 1E 00 00 35 04 06 00 7E [22:54:09]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 10 A0 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 57 1E 00 00 35 04 06 00 7E 00 00 11 [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 03 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [22:54:09]RAPDU: 90 00 [22:54:09]wFMCommunicate OK [22:54:09]wFMCommunicate request_size=10 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 0D 02 02 05 0D 16 C3 3E 76 [22:54:09]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 0D 16 C3 3E 76 00 00 CB [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 03 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [22:54:09]RAPDU: 90 00 [22:54:09]wFMCommunicate OK [22:54:09]wFMCommunicate request_size=4 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 0D 03 02 [22:54:09]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 0B 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 0B 00 AE 00 00 10 BE 90 76 3A E3 F6 83 90 00 94 [22:54:09]RAPDU: 10 BE 90 76 3A E3 F6 83 90 00 [22:54:09]wFMCommunicate OK [22:54:09]SAM_PROTO_SignData done [22:54:09]FM_MakeSignedData done [22:54:09]CreateOFDProtocolMessage [22:54:09]wFMCommunicate request_size=4 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 11 00 00 [22:54:09]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 17 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7A [22:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [22:54:09]wFMCommunicate OK [22:54:09]CreateOFDProtocolMessage done [22:54:09]OFDSenderStorePacket 7767 [22:54:09]StoreOFDPacket docnum=7767 [22:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 0F F5 07 01 A4 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 10 A0 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 57 1E 00 00 35 04 06 00 7E 0D 16 C3 3E 76 10 BE 90 76 3A E3 F6 83 [22:54:09]CheckFolder [22:54:09]dirname=/storage/ofd_packets [22:54:09]CheckFolder done [22:54:09]ProducePacketName [22:54:09]name=ofd_packets/00007767 [22:54:09]NVStorageSaveData ofd_packets/00007767 [22:54:09]File name is /storage/ofd_packets/00007767 [22:54:09]Write 301 bytes [22:54:09]NVStorageSaveData done [22:54:09]OFDSenderStorePacket done [22:54:09]KKMCreateOFDPacket done [22:54:09]NVStorageSaveData kkm_last_timestamp [22:54:09]File name is /storage/kkm_last_timestamp [22:54:09]Write 4 bytes [22:54:09]NVStorageSaveData done [22:54:09]ExternCall_PrintAddStr [22:54:09]wPrintStart [22:54:09]Write to MH i2c: 01 00 00 B0 00 B0 [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: 01 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: 01 07 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [22:54:09]RasterBufferAndPrint [22:54:09]line Счет N : (1)872045 [22:54:09]line ИНН: 02508201610067 [22:54:09]line Контрольно-Кассовый Чек [22:54:09]line ПРОДАЖА [22:54:09]line ТРК (МРК, ГНК) : 63 [22:54:09]line Товар: 2710124130 [22:54:09]line Аи-92-К-5 [22:54:09]line 19.180 * 67.80 [22:54:09]line = 1300.40 [22:54:09]line НДС 12% НСП 1% [22:54:09]line > о реализуемом товаре [22:54:09]line ОКРУГЛЕНИЕ: -0.40 [22:54:09]line ИТОГО: 1300.00 [22:54:09]line Внесено: 1300.00 [22:54:09]line СДАЧА: 0.00 [22:54:09]line НСП 1% : 11.51 [22:54:09]line НДС 12% : 138.10 [22:54:09]line Наличными: 1300.00 [22:54:09]line Безнал.: 0.00 [22:54:09]line Место: АЗС № 137 "Партнер Нефть" [22:54:09]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [22:54:09]line СНО: Общий режим [22:54:09]line Чек 165 22.09.2024 22:54 [22:54:09]line Смена: 70 ФФД: 1.0 [22:54:09]line ЗНМ: 0300000041 [22:54:09]line РНМ: 0000000000190446 [22:54:09]line Версия ККМ: v1.0 [22:54:09]line ФМ: 0000000002094258 [22:54:09]line ФД: 7767 [22:54:09]line ФПД: 138594681568886 [22:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T225408&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7767&fm=138594681568886&tin=02508201610067®Number=0000000000190446&sum=130000 [22:54:10]OFD Sender: Processing packet 7767 [packets to send 51, broken 50] [22:54:10]ProducePacketName [22:54:10]name=ofd_packets/00007767 [22:54:10]OFD Sender: To server: pG, [22:54:10]CommunicateWithHost lk.salyk.kg:30040 [22:54:10]ConnectInit lk.salyk.kg [22:54:10]written 0, free lines is 4095 [22:54:10]Write to MH i2c: 01 00 00 DB 00 DB [22:54:10]Write i2c OK [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: 01 [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: 01 07 00 [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 ED 0C DB [22:54:10]RasterBufferAndPrint [22:54:10]line [22:54:10]line [22:54:10]line [22:54:10]line [22:54:10]line [22:54:10]written 0, free lines is 3315 [22:54:10]MH_Cut [22:54:10]Write to MH i2c: D1 01 00 E2 00 01 B4 [22:54:10]Write i2c OK [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: D1 [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: D1 01 00 [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: D1 01 00 E2 00 00 B3 [22:54:10]Write to MH i2c: 01 00 00 E3 00 E3 [22:54:10]Write i2c OK [22:54:10]MH_I2C_Read... [22:54:11]*** Cut start [22:54:11]*** Purtial cut [22:54:11]*** Stage 1: CUTSNS_PIN = 1 [22:54:11]Read from MH i2c: 01 [22:54:11]MH_I2C_Read... [22:54:11]*** Stop cut motor [22:54:11]*** Cut end [22:54:11]Read from MH i2c: 01 07 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [22:54:11]process_action close_receipt done [22:54:11]requested_data is exist [22:54:11]produce_requested_data [22:54:11]requested_item fm.sn is exist - process it [22:54:11]wFMCommunicate request_size=4 [22:54:11]MH_SAM_APDU [22:54:11]CAPDU: 80 11 00 00 [22:54:11]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:11]Read from MH i2c: E2 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 17 00 [22:54:11]MH_I2C_Read... [22:54:11]Connected sock=9 [22:54:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 0F F5 07 01 A4 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 10 A0 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 57 1E 00 00 35 04 06 00 7E 0D 16 C3 3E 76 10 BE 90 76 3A E3 F6 83 [22:54:11]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 AF [22:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [22:54:11]wFMCommunicate OK [22:54:11]requested_item fd.num is exist - process it [22:54:11]SAM_PROTO_GetFieldsCounters [22:54:11]wFMCommunicate request_size=4 [22:54:11]MH_SAM_APDU [22:54:11]CAPDU: 80 13 00 00 [22:54:11]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:11]Read from MH i2c: E2 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 62 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 57 1E 00 00 0E 04 04 00 46 00 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 29 [22:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 57 1E 00 00 0E 04 04 00 46 00 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 [22:54:11]wFMCommunicate OK [22:54:11]SAM_PROTO_GetFieldsCounters done [22:54:11]requested_item shift.num is exist - process it [22:54:11]requested_item shift.opened is exist - process it [22:54:11]req_shift_opened [22:54:11]FM_GetShiftState [22:54:11]SAM_PROTO_GetShiftState [22:54:11]wFMCommunicate request_size=4 [22:54:11]MH_SAM_APDU [22:54:11]CAPDU: 80 13 01 00 [22:54:11]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:11]Read from MH i2c: E2 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 0E 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 26 [22:54:11]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [22:54:11]wFMCommunicate OK [22:54:11]SAM_PROTO_GetShiftState done [22:54:11]FM_GetShiftState done [22:54:11]req_shift_opened done [22:54:11]requested_item shift.open_date is exist - process it [22:54:11]req_shift_open_date [22:54:11]req_shift_open_date done [22:54:11]produce_requested_data done [22:54:11]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7767,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [22:54:11]process_action_free close_receipt [22:54:11]json_value_free [22:54:11]json_value_free done [22:54:11]process_json_proto returns [22:54:11]Send response to host [22:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7767,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [22:54:11]free response buf [22:54:11]execute_script done [22:54:11]execute_script returns [22:54:11]free content buf [22:54:11]Sock 10.Close socket [22:54:11]Sock 10.Thread stoped [22:54:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 79 3B 47 00 FF 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 57 1E 00 00 F4 03 04 00 CF 4A F0 66 B6 04 01 00 00 92 27 DF A8 94 03 13 B8 [22:54:14]CommunicateWithHost err = 0 [22:54:14]CheckOFDResponse [22:54:14]1017 (14) - 77093643461234 [22:54:14]1041 (16) - 0000000002094258 [22:54:14]1040 (4) - 7767 [22:54:14]1012 (4) - 22.09.2024 16:50 [22:54:14]1206 (1) - 0 [22:54:14]OFD Sender: Remove packet 7767 [22:54:14]ProducePacketName [22:54:14]name=ofd_packets/00007767 [22:54:14]NVStorageDeleteData [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:25]recv_with_timeout no data received [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:06]recv_with_timeout no data received [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]recv_with_timeout no data received [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]recv_with_timeout no data received [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:21]accept exits with 7 [23:00:21]New connection [23:00:21]New thread 3066568036 created [23:00:21]Thread 3066711396 joined [23:00:21]Waiting for new connection... [23:00:21] Sock 7.Parse request [23:00:21]Sock 7.Check first char [23:00:21]Sock 7.First char is OK [23:00:21]request: POST /json_proto HTTP/1.0 [23:00:21]Method: POST [23:00:21]URL: /json_proto [23:00:21]Method is POST - this is cgi request [23:00:21]url: /json_proto [23:00:21]query_string will be loaded in cgi processing [23:00:21]execute_cgi json_proto POST (null) [23:00:21]execute_cgi path=json_proto method=POST [23:00:21]POST find Content-Length [23:00:21]Host: 172.17.47.195:8080 [23:00:21]Content-Length: 682 [23:00:21]Content-Type: application/json [23:00:21] [23:00:21]POST finish read [23:00:21]Found Content-Length = 682 [23:00:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:21]execute_script... [23:00:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:21]POST & json_proto [23:00:21]process_json_proto [23:00:21]json parsed OK: [23:00:21]protocol is kg_v1.0 [23:00:21]action value=close_receipt [23:00:21]process_action close_receipt [23:00:21]cmd_close_receipt [23:00:21]MH_GetDate [23:00:21]Write to MH i2c: F0 00 00 E7 00 D6 [23:00:21]Write i2c OK [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: F0 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: F0 09 00 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: F0 09 00 E7 00 00 86 A1 F0 66 96 2E 95 66 1B [23:00:21]GetLastDocTimeStamp 1727045648 [23:00:21]current date 1727046022 [23:00:21]FM_GetShiftState [23:00:21]SAM_PROTO_GetShiftState [23:00:21]wFMCommunicate request_size=4 [23:00:21]MH_SAM_APDU [23:00:21]CAPDU: 80 13 01 00 [23:00:21]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [23:00:21]Write i2c OK [23:00:21]MH_I2C_Read... [23:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:21]Read from MH i2c: E2 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: E2 0E 00 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 28 [23:00:21]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [23:00:21]wFMCommunicate OK [23:00:21]SAM_PROTO_GetShiftState done [23:00:21]FM_GetShiftState done [23:00:21]opened in 1726964224 [23:00:21]opened+sec_in_day 1727050624 [23:00:21]quantity*price = 100005 [23:00:21]sum+1 = 100006 [23:00:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 166 22.09.2024 23:00 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7768 ФПД: 149603146778227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T230022&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7768&fm=149603146778227&tin=02508201610067®Number=0000000000190446&sum=100000 [23:00:22]StoreToDocumentArchive [23:00:22]shift 70 fd 7768 [23:00:22]save to /storage/0070/doc_00007768 [23:00:22]save last doc name /storage/0070/doc_00007768 to /storage/kkm_last_doc_name [23:00:22]save OK [23:00:22]Clear old archive folders... [23:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:22]tlvbuf is 00F9A510 [23:00:22]SAM_PROTO_ClearQueue [23:00:22]wFMCommunicate request_size=4 [23:00:22]MH_SAM_APDU [23:00:22]CAPDU: 80 09 00 00 [23:00:22]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [23:00:22]Write i2c OK [23:00:22]MH_I2C_Read... [23:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:22]Read from MH i2c: E2 [23:00:22]MH_I2C_Read... [23:00:22]Read from MH i2c: E2 03 00 [23:00:22]MH_I2C_Read... [23:00:22]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [23:00:22]RAPDU: 90 00 [23:00:22]wFMCommunicate OK [23:00:22]SAM_PROTO_ClearQueue done [23:00:22]KKMCreateOFDPacket [23:00:22]OFDProtocolAddRootSTLVToBuf [23:00:22]FM_MakeSignedData [23:00:22]FM_MakeSignedData [23:00:22]SAM_PROTO_SignData [23:00:22]wFMCommunicate request_size=4 [23:00:22]MH_SAM_APDU [23:00:22]CAPDU: 80 0D 01 02 [23:00:22]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [23:00:22]Write i2c OK [23:00:22]MH_I2C_Read... [23:00:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:23]Read from MH i2c: E2 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 03 00 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [23:00:23]RAPDU: 90 00 [23:00:23]wFMCommunicate OK [23:00:23]wFMCommunicate request_size=255 [23:00:23]MH_SAM_APDU [23:00: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 86 A1 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 58 1E 00 00 35 04 06 00 88 [23:00:23]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 86 A1 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 58 1E 00 00 35 04 06 00 88 00 00 E1 [23:00:23]Write i2c OK [23:00:23]MH_I2C_Read... [23:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:23]Read from MH i2c: E2 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 03 00 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [23:00:23]RAPDU: 90 00 [23:00:23]wFMCommunicate OK [23:00:23]wFMCommunicate request_size=10 [23:00:23]MH_SAM_APDU [23:00:23]CAPDU: 80 0D 02 02 05 10 32 6B C6 73 [23:00:23]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 10 32 6B C6 73 00 00 62 [23:00:23]Write i2c OK [23:00:23]MH_I2C_Read... [23:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:23]Read from MH i2c: E2 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 03 00 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [23:00:23]RAPDU: 90 00 [23:00:23]wFMCommunicate OK [23:00:23]wFMCommunicate request_size=4 [23:00:23]MH_SAM_APDU [23:00:23]CAPDU: 80 0D 03 02 [23:00:23]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [23:00:23]Write i2c OK [23:00:23]MH_I2C_Read... [23:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:23]Read from MH i2c: E2 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 0B 00 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 0B 00 F9 00 00 FC F3 D6 65 8F 4E 71 52 90 00 3F [23:00:23]RAPDU: FC F3 D6 65 8F 4E 71 52 90 00 [23:00:23]wFMCommunicate OK [23:00:23]SAM_PROTO_SignData done [23:00:23]FM_MakeSignedData done [23:00:23]CreateOFDProtocolMessage [23:00:23]wFMCommunicate request_size=4 [23:00:23]MH_SAM_APDU [23:00:23]CAPDU: 80 11 00 00 [23:00:23]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [23:00:23]Write i2c OK [23:00:23]MH_I2C_Read... [23:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:23]Read from MH i2c: E2 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 17 00 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C5 [23:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:00:23]wFMCommunicate OK [23:00:23]CreateOFDProtocolMessage done [23:00:23]OFDSenderStorePacket 7768 [23:00:23]StoreOFDPacket docnum=7768 [23:00:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 23 80 07 01 9D 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 86 A1 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 58 1E 00 00 35 04 06 00 88 10 32 6B C6 73 FC F3 D6 65 8F 4E 71 52 [23:00:23]CheckFolder [23:00:23]dirname=/storage/ofd_packets [23:00:23]CheckFolder done [23:00:23]ProducePacketName [23:00:23]name=ofd_packets/00007768 [23:00:23]NVStorageSaveData ofd_packets/00007768 [23:00:23]File name is /storage/ofd_packets/00007768 [23:00:23]Write 301 bytes [23:00:23]NVStorageSaveData done [23:00:23]OFDSenderStorePacket done [23:00:23]KKMCreateOFDPacket done [23:00:23]NVStorageSaveData kkm_last_timestamp [23:00:23]File name is /storage/kkm_last_timestamp [23:00:23]Write 4 bytes [23:00:23]NVStorageSaveData done [23:00:23]ExternCall_PrintAddStr [23:00:23]wPrintStart [23:00:23]Write to MH i2c: 01 00 00 FB 00 FB [23:00:23]Write i2c OK [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: 01 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: 01 07 00 [23:00:23]MH_I2C_Read... [23:00:23]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [23:00:23]RasterBufferAndPrint [23:00:23]line Счет N : (1)872048 [23:00:23]line ИНН: 02508201610067 [23:00:23]line Контрольно-Кассовый Чек [23:00:23]line ПРОДАЖА [23:00:23]line ТРК (МРК, ГНК) : 43 [23:00:23]line Товар: 2710124130 [23:00:23]line Аи-92-К-5 [23:00:23]line 14.750 * 67.80 [23:00:23]line = 1000.05 [23:00:23]line НДС 12% НСП 1% [23:00:23]line > о реализуемом товаре [23:00:23]line ОКРУГЛЕНИЕ: -0.05 [23:00:23]line ИТОГО: 1000.00 [23:00:23]line Внесено: 1000.00 [23:00:23]line СДАЧА: 0.00 [23:00:23]line НСП 1% : 8.85 [23:00:23]line НДС 12% : 106.20 [23:00:23]line Наличными: 1000.00 [23:00:23]line Безнал.: 0.00 [23:00:23]line Место: АЗС № 137 "Партнер Нефть" [23:00:23]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [23:00:23]line СНО: Общий режим [23:00:23]line Чек 166 22.09.2024 23:00 [23:00:23]line Смена: 70 ФФД: 1.0 [23:00:23]line ЗНМ: 0300000041 [23:00:23]line РНМ: 0000000000190446 [23:00:23]line Версия ККМ: v1.0 [23:00:23]line ФМ: 0000000002094258 [23:00:23]line ФД: 7768 [23:00:23]line ФПД: 149603146778227 [23:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T230022&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7768&fm=149603146778227&tin=02508201610067®Number=0000000000190446&sum=100000 [23:00:23]OFD Sender: Processing packet 7768 [packets to send 51, broken 50] [23:00:23]ProducePacketName [23:00:23]name=ofd_packets/00007768 [23:00:23]OFD Sender: To server: pG, [23:00:23]CommunicateWithHost lk.salyk.kg:30040 [23:00:23]ConnectInit lk.salyk.kg [23:00:23]written 0, free lines is 4095 [23:00:24]Write to MH i2c: 01 00 00 26 01 27 [23:00:24]Write i2c OK [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: 01 [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: 01 07 00 [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 F3 0C 2D [23:00:24]RasterBufferAndPrint [23:00:24]line [23:00:24]line [23:00:24]line [23:00:24]line [23:00:24]line [23:00:24]written 0, free lines is 3321 [23:00:24]MH_Cut [23:00:24]Write to MH i2c: D1 01 00 2D 01 01 00 [23:00:24]Write i2c OK [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: D1 [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: D1 01 00 [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: D1 01 00 2D 01 00 FF [23:00:24]Write to MH i2c: 01 00 00 2E 01 2F [23:00:24]Write i2c OK [23:00:24]MH_I2C_Read... [23:00:24]*** Cut start [23:00:24]*** Purtial cut [23:00:24]*** Stage 1: CUTSNS_PIN = 1 [23:00:25]Read from MH i2c: 01 [23:00:25]MH_I2C_Read... [23:00:25]*** Stop cut motor [23:00:25]*** Cut end [23:00:25]Read from MH i2c: 01 07 00 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [23:00:25]process_action close_receipt done [23:00:25]requested_data is exist [23:00:25]produce_requested_data [23:00:25]requested_item fm.sn is exist - process it [23:00:25]wFMCommunicate request_size=4 [23:00:25]MH_SAM_APDU [23:00:25]CAPDU: 80 11 00 00 [23:00:25]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [23:00:25]Write i2c OK [23:00:25]MH_I2C_Read... [23:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:25]Read from MH i2c: E2 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: E2 17 00 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [23:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:00:25]wFMCommunicate OK [23:00:25]requested_item fd.num is exist - process it [23:00:25]SAM_PROTO_GetFieldsCounters [23:00:25]wFMCommunicate request_size=4 [23:00:25]MH_SAM_APDU [23:00:25]CAPDU: 80 13 00 00 [23:00:25]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [23:00:25]Write i2c OK [23:00:25]MH_I2C_Read... [23:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:25]Read from MH i2c: E2 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: E2 62 00 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 58 1E 00 00 0E 04 04 00 46 00 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 79 [23:00:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 58 1E 00 00 0E 04 04 00 46 00 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:00:25]wFMCommunicate OK [23:00:25]SAM_PROTO_GetFieldsCounters done [23:00:25]requested_item shift.num is exist - process it [23:00:25]requested_item shift.opened is exist - process it [23:00:25]req_shift_opened [23:00:25]FM_GetShiftState [23:00:25]SAM_PROTO_GetShiftState [23:00:25]wFMCommunicate request_size=4 [23:00:25]MH_SAM_APDU [23:00:25]CAPDU: 80 13 01 00 [23:00:25]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [23:00:25]Write i2c OK [23:00:25]MH_I2C_Read... [23:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:25]Read from MH i2c: E2 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: E2 0E 00 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 72 [23:00:25]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [23:00:25]wFMCommunicate OK [23:00:25]SAM_PROTO_GetShiftState done [23:00:25]FM_GetShiftState done [23:00:25]req_shift_opened done [23:00:25]requested_item shift.open_date is exist - process it [23:00:25]req_shift_open_date [23:00:25]req_shift_open_date done [23:00:25]produce_requested_data done [23:00:25]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7768,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [23:00:25]process_action_free close_receipt [23:00:25]json_value_free [23:00:25]json_value_free done [23:00:25]process_json_proto returns [23:00:25]Send response to host [23:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7768,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [23:00:25]free response buf [23:00:25]execute_script done [23:00:25]execute_script returns [23:00:25]free content buf [23:00:25]Sock 7.Close socket [23:00:25]Sock 7.Thread stoped [23:00:26]Connected sock=11 [23:00:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 23 80 07 01 9D 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 86 A1 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 58 1E 00 00 35 04 06 00 88 10 32 6B C6 73 FC F3 D6 65 8F 4E 71 52 [23:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 37 CB 47 00 04 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 32 30 39 34 32 35 38 10 04 04 00 58 1E 00 00 F4 03 04 00 46 4C F0 66 B6 04 01 00 00 0E 6C 83 9E 11 82 BF 1E [23:00:26]CommunicateWithHost err = 0 [23:00:26]CheckOFDResponse [23:00:26]1017 (14) - 77093643461234 [23:00:26]1041 (16) - 0000000002094258 [23:00:26]1040 (4) - 7768 [23:00:26]1012 (4) - 22.09.2024 16:56 [23:00:26]1206 (1) - 0 [23:00:26]OFD Sender: Remove packet 7768 [23:00:26]ProducePacketName [23:00:26]name=ofd_packets/00007768 [23:00:26]NVStorageDeleteData [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:54]recv_with_timeout no data received [23:00:57]OFD Sender: No OFD packet to send [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:55]recv_with_timeout no data received [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:12]OFD Sender: No OFD packet to send [23:02:15]recv_with_timeout no data received [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: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:40]accept exits with 10 [23:04:40]New connection [23:04:40]New thread 3066711396 created [23:04:40]Thread 3066568036 joined [23:04:40]Waiting for new connection... [23:04:40] Sock 10.Parse request [23:04:40]Sock 10.Check first char [23:04:40]Sock 10.First char is OK [23:04:40]request: POST /json_proto HTTP/1.0 [23:04:40]Method: POST [23:04:40]URL: /json_proto [23:04:40]Method is POST - this is cgi request [23:04:40]url: /json_proto [23:04:40]query_string will be loaded in cgi processing [23:04:40]execute_cgi json_proto POST (null) [23:04:40]execute_cgi path=json_proto method=POST [23:04:40]POST find Content-Length [23:04:40]Host: 172.17.47.195:8080 [23:04:40]Content-Length: 687 [23:04:40]Content-Type: application/json [23:04:40] [23:04:40]POST finish read [23:04:40]Found Content-Length = 687 [23:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:40]execute_script... [23:04: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)872049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:40]POST & json_proto [23:04:40]process_json_proto [23:04:40]json parsed OK: [23:04:40]protocol is kg_v1.0 [23:04:40]action value=close_receipt [23:04:40]process_action close_receipt [23:04:40]cmd_close_receipt [23:04:40]MH_GetDate [23:04:40]Write to MH i2c: F0 00 00 32 01 22 [23:04:40]Write i2c OK [23:04:40]MH_I2C_Read... [23:04:40]Read from MH i2c: F0 [23:04:40]MH_I2C_Read... [23:04:40]Read from MH i2c: F0 09 00 [23:04:40]MH_I2C_Read... [23:04:40]Read from MH i2c: F0 09 00 32 01 00 88 A2 F0 66 96 2E 95 66 6A [23:04:40]GetLastDocTimeStamp 1727046022 [23:04:40]current date 1727046280 [23:04:40]FM_GetShiftState [23:04:40]SAM_PROTO_GetShiftState [23:04:40]wFMCommunicate request_size=4 [23:04:40]MH_SAM_APDU [23:04:40]CAPDU: 80 13 01 00 [23:04:40]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [23:04:40]Write i2c OK [23:04:40]MH_I2C_Read... [23:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:40]Read from MH i2c: E2 [23:04:40]MH_I2C_Read... [23:04:40]Read from MH i2c: E2 0E 00 [23:04:40]MH_I2C_Read... [23:04:40]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 74 [23:04:40]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [23:04:40]wFMCommunicate OK [23:04:40]SAM_PROTO_GetShiftState done [23:04:40]FM_GetShiftState done [23:04:40]opened in 1726964224 [23:04:40]opened+sec_in_day 1727050624 [23:04:40]quantity*price = 100050 [23:04:40]sum+1 = 100052 [23:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 167 22.09.2024 23:04 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7769 ФПД: 266267064848718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T230440&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7769&fm=266267064848718&tin=02508201610067®Number=0000000000190446&sum=100000 [23:04:41]StoreToDocumentArchive [23:04:41]shift 70 fd 7769 [23:04:41]save to /storage/0070/doc_00007769 [23:04:41]save last doc name /storage/0070/doc_00007769 to /storage/kkm_last_doc_name [23:04:41]save OK [23:04:41]Clear old archive folders... [23:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:04:41]tlvbuf is 00FA3E50 [23:04:41]SAM_PROTO_ClearQueue [23:04:41]wFMCommunicate request_size=4 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 09 00 00 [23:04:41]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 03 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [23:04:41]RAPDU: 90 00 [23:04:41]wFMCommunicate OK [23:04:41]SAM_PROTO_ClearQueue done [23:04:41]KKMCreateOFDPacket [23:04:41]OFDProtocolAddRootSTLVToBuf [23:04:41]FM_MakeSignedData [23:04:41]FM_MakeSignedData [23:04:41]SAM_PROTO_SignData [23:04:41]wFMCommunicate request_size=4 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 0D 01 02 [23:04:41]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 03 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [23:04:41]RAPDU: 90 00 [23:04:41]wFMCommunicate OK [23:04:41]wFMCommunicate request_size=255 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 88 A2 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 59 1E 00 00 35 04 06 00 [23:04:41]Write to MH i2c: E2 02 01 42 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 88 A2 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 59 1E 00 00 35 04 06 00 00 00 08 [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 03 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [23:04:41]RAPDU: 90 00 [23:04:41]wFMCommunicate OK [23:04:41]wFMCommunicate request_size=11 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 0D 02 02 06 F2 2B 21 D0 D1 4E [23:04:41]Write to MH i2c: E2 0E 00 43 01 80 0D 02 02 06 00 F2 2B 21 D0 D1 4E 00 00 F7 [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 03 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [23:04:41]RAPDU: 90 00 [23:04:41]wFMCommunicate OK [23:04:41]wFMCommunicate request_size=4 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 0D 03 02 [23:04:41]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 0B 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 0B 00 44 01 00 07 88 1B ED C7 D8 94 44 90 00 CF [23:04:41]RAPDU: 07 88 1B ED C7 D8 94 44 90 00 [23:04:41]wFMCommunicate OK [23:04:41]SAM_PROTO_SignData done [23:04:41]FM_MakeSignedData done [23:04:41]CreateOFDProtocolMessage [23:04:41]wFMCommunicate request_size=4 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 11 00 00 [23:04:41]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 17 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 11 [23:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:04:41]wFMCommunicate OK [23:04:41]CreateOFDProtocolMessage done [23:04:41]OFDSenderStorePacket 7769 [23:04:41]StoreOFDPacket docnum=7769 [23:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 EA 2D 08 01 A5 95 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 88 A2 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 59 1E 00 00 35 04 06 00 F2 2B 21 D0 D1 4E 07 88 1B ED C7 D8 94 44 [23:04:41]CheckFolder [23:04:41]dirname=/storage/ofd_packets [23:04:41]CheckFolder done [23:04:41]ProducePacketName [23:04:41]name=ofd_packets/00007769 [23:04:41]NVStorageSaveData ofd_packets/00007769 [23:04:41]File name is /storage/ofd_packets/00007769 [23:04:41]Write 302 bytes [23:04:41]NVStorageSaveData done [23:04:41]OFDSenderStorePacket done [23:04:41]KKMCreateOFDPacket done [23:04:41]NVStorageSaveData kkm_last_timestamp [23:04:41]File name is /storage/kkm_last_timestamp [23:04:41]Write 4 bytes [23:04:41]NVStorageSaveData done [23:04:41]ExternCall_PrintAddStr [23:04:41]wPrintStart [23:04:41]Write to MH i2c: 01 00 00 46 01 47 [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: 01 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: 01 07 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [23:04:41]RasterBufferAndPrint [23:04:41]line Счет N : (1)872049 [23:04:41]line ИНН: 02508201610067 [23:04:41]line Контрольно-Кассовый Чек [23:04:41]line ПРОДАЖА [23:04:41]line ТРК (МРК, ГНК) : 21 [23:04:41]line Товар: 2710194210 [23:04:41]line ДТ(л)-К-4 [23:04:41]line 13.130 * 76.20 [23:04:41]line = 1000.51 [23:04:41]line НДС 12% НСП 1% [23:04:41]line > о реализуемом товаре [23:04:41]line ОКРУГЛЕНИЕ: -0.51 [23:04:41]line ИТОГО: 1000.00 [23:04:41]line Внесено: 1000.00 [23:04:41]line СДАЧА: 0.00 [23:04:41]line НСП 1% : 8.85 [23:04:41]line НДС 12% : 106.25 [23:04:41]line Наличными: 1000.00 [23:04:41]line Безнал.: 0.00 [23:04:41]line Место: АЗС № 137 "Партнер Нефть" [23:04:41]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [23:04:41]line СНО: Общий режим [23:04:41]line Чек 167 22.09.2024 23:04 [23:04:41]line Смена: 70 ФФД: 1.0 [23:04:41]line ЗНМ: 0300000041 [23:04:41]line РНМ: 0000000000190446 [23:04:41]line Версия ККМ: v1.0 [23:04:41]line ФМ: 0000000002094258 [23:04:41]line ФД: 7769 [23:04:41]line ФПД: 266267064848718 [23:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T230440&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7769&fm=266267064848718&tin=02508201610067®Number=0000000000190446&sum=100000 [23:04:42]OFD Sender: Processing packet 7769 [packets to send 51, broken 50] [23:04:42]ProducePacketName [23:04:42]name=ofd_packets/00007769 [23:04:42]OFD Sender: To server: pG, [23:04:42]CommunicateWithHost lk.salyk.kg:30040 [23:04:42]ConnectInit lk.salyk.kg [23:04:42]written 0, free lines is 4095 [23:04:42]Connected sock=7 [23:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 EA 2D 08 01 A5 95 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 88 A2 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 59 1E 00 00 35 04 06 00 F2 2B 21 D0 D1 4E 07 88 1B ED C7 D8 94 44 [23:04:42]Write to MH i2c: 01 00 00 71 01 72 [23:04:42]Write i2c OK [23:04:42]MH_I2C_Read... [23:04:42]Read from MH i2c: 01 [23:04:42]MH_I2C_Read... [23:04:42]Read from MH i2c: 01 07 00 [23:04:42]MH_I2C_Read... [23:04:42]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 ED 0C 72 [23:04:42]RasterBufferAndPrint [23:04:42]line [23:04:42]line [23:04:42]line [23:04:42]line [23:04:42]line [23:04:42]written 0, free lines is 3315 [23:04:42]MH_Cut [23:04:42]Write to MH i2c: D1 01 00 78 01 01 4B [23:04:42]Write i2c OK [23:04:42]MH_I2C_Read... [23:04:42]Read from MH i2c: D1 [23:04:42]MH_I2C_Read... [23:04:42]Read from MH i2c: D1 01 00 [23:04:42]MH_I2C_Read... [23:04:42]Read from MH i2c: D1 01 00 78 01 00 4A [23:04:42]Write to MH i2c: 01 00 00 79 01 7A [23:04:42]Write i2c OK [23:04:42]MH_I2C_Read... [23:04:43]*** Cut start [23:04:43]*** Purtial cut [23:04:43]*** Stage 1: CUTSNS_PIN = 1 [23:04:43]Read from MH i2c: 01 [23:04:43]MH_I2C_Read... [23:04:43]*** Stop cut motor [23:04:43]*** Cut end [23:04:43]Read from MH i2c: 01 07 00 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [23:04:43]process_action close_receipt done [23:04:43]requested_data is exist [23:04:43]produce_requested_data [23:04:43]requested_item fm.sn is exist - process it [23:04:43]wFMCommunicate request_size=4 [23:04:43]MH_SAM_APDU [23:04:43]CAPDU: 80 11 00 00 [23:04:43]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [23:04:43]Write i2c OK [23:04:43]MH_I2C_Read... [23:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:43]Read from MH i2c: E2 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: E2 17 00 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [23:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:04:43]wFMCommunicate OK [23:04:43]requested_item fd.num is exist - process it [23:04:43]SAM_PROTO_GetFieldsCounters [23:04:43]wFMCommunicate request_size=4 [23:04:43]MH_SAM_APDU [23:04:43]CAPDU: 80 13 00 00 [23:04:43]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [23:04:43]Write i2c OK [23:04:43]MH_I2C_Read... [23:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:43]Read from MH i2c: E2 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: E2 62 00 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 59 1E 00 00 0E 04 04 00 46 00 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 C8 [23:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 59 1E 00 00 0E 04 04 00 46 00 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:04:43]wFMCommunicate OK [23:04:43]SAM_PROTO_GetFieldsCounters done [23:04:43]requested_item shift.num is exist - process it [23:04:43]requested_item shift.opened is exist - process it [23:04:43]req_shift_opened [23:04:43]FM_GetShiftState [23:04:43]SAM_PROTO_GetShiftState [23:04:43]wFMCommunicate request_size=4 [23:04:43]MH_SAM_APDU [23:04:43]CAPDU: 80 13 01 00 [23:04:43]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [23:04:43]Write i2c OK [23:04:43]MH_I2C_Read... [23:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:43]Read from MH i2c: E2 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: E2 0E 00 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 BD [23:04:43]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [23:04:43]wFMCommunicate OK [23:04:43]SAM_PROTO_GetShiftState done [23:04:43]FM_GetShiftState done [23:04:43]req_shift_opened done [23:04:43]requested_item shift.open_date is exist - process it [23:04:43]req_shift_open_date [23:04:43]req_shift_open_date done [23:04:43]produce_requested_data done [23:04:43]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7769,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [23:04:43]process_action_free close_receipt [23:04:43]json_value_free [23:04:43]json_value_free done [23:04:43]process_json_proto returns [23:04:43]Send response to host [23:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7769,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [23:04:43]free response buf [23:04:43]execute_script done [23:04:43]execute_script returns [23:04:43]free content buf [23:04:43]Sock 10.Close socket [23:04:43]Sock 10.Thread stoped [23:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 C7 10 47 00 36 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 59 1E 00 00 F4 03 04 00 46 4D F0 66 B6 04 01 00 00 8F A7 5D 07 17 54 05 5A [23:04:44]CommunicateWithHost err = 0 [23:04:44]CheckOFDResponse [23:04:44]1017 (14) - 77093643461234 [23:04:44]1041 (16) - 0000000002094258 [23:04:44]1040 (4) - 7769 [23:04:44]1012 (4) - 22.09.2024 17:00 [23:04:44]1206 (1) - 0 [23:04:44]OFD Sender: Remove packet 7769 [23:04:44]ProducePacketName [23:04:44]name=ofd_packets/00007769 [23:04:44]NVStorageDeleteData [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]recv_with_timeout no data received [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:43]recv_with_timeout no data received [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]recv_with_timeout no data received [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:17]recv_with_timeout no data received [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:30]recv_with_timeout no data received [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:37]accept exits with 9 [23:09:37]New connection [23:09:37]New thread 3066568036 created [23:09:37]Thread 3066711396 joined [23:09:37]Waiting for new connection... [23:09:37] Sock 9.Parse request [23:09:37]Sock 9.Check first char [23:09:37]Sock 9.First char is OK [23:09:37]request: POST /json_proto HTTP/1.0 [23:09:37]Method: POST [23:09:37]URL: /json_proto [23:09:37]Method is POST - this is cgi request [23:09:37]url: /json_proto [23:09:37]query_string will be loaded in cgi processing [23:09:37]execute_cgi json_proto POST (null) [23:09:37]execute_cgi path=json_proto method=POST [23:09:37]POST find Content-Length [23:09:37]Host: 172.17.47.195:8080 [23:09:37]Content-Length: 986 [23:09:37]Content-Type: application/json [23:09:37] [23:09:37]POST finish read [23:09:37]Found Content-Length = 986 [23:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 75.20, "quantity" : 93.090, "sum" : 7000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 93.09 \u0441\u043E\u043C", "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:37]execute_script... [23:09:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 75.20, "quantity" : 93.090, "sum" : 7000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 137\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 93.09 \u0441\u043E\u043C", "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:37]POST & json_proto [23:09:37]process_json_proto [23:09:37]json parsed OK: [23:09:37]protocol is kg_v1.0 [23:09:37]action value=close_receipt [23:09:37]process_action close_receipt [23:09:37]cmd_close_receipt [23:09:37]MH_GetDate [23:09:37]Write to MH i2c: F0 00 00 7D 01 6D [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: F0 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: F0 09 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: F0 09 00 7D 01 00 B2 A3 F0 66 96 2E 95 66 E0 [23:09:37]GetLastDocTimeStamp 1727046280 [23:09:37]current date 1727046578 [23:09:37]FM_GetShiftState [23:09:37]SAM_PROTO_GetShiftState [23:09:37]wFMCommunicate request_size=4 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 13 01 00 [23:09:37]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:38]Read from MH i2c: E2 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: E2 0E 00 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 BF [23:09:38]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [23:09:38]wFMCommunicate OK [23:09:38]SAM_PROTO_GetShiftState done [23:09:38]FM_GetShiftState done [23:09:38]opened in 1726964224 [23:09:38]opened+sec_in_day 1727050624 [23:09:38]quantity*price = 700036 [23:09:38]sum+1 = 700038 [23:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.40 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 168 22.09.2024 23:09 Смена: 70 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 Дисконтная программа ДТ номер 137 сэкономлено 93.09 сом ФМ: 0000000002094258 ФД: 7770 ФПД: 151797925838610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T230938&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7770&fm=151797925838610&tin=02508201610067®Number=0000000000190446&sum=700000 [23:09:39]StoreToDocumentArchive [23:09:39]shift 70 fd 7770 [23:09:39]save to /storage/0070/doc_00007770 [23:09:39]save last doc name /storage/0070/doc_00007770 to /storage/kkm_last_doc_name [23:09:39]save OK [23:09:39]Clear old archive folders... [23:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:09:39]tlvbuf is 00F9D260 [23:09:39]SAM_PROTO_ClearQueue [23:09:39]wFMCommunicate request_size=4 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 09 00 00 [23:09:39]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 03 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [23:09:39]RAPDU: 90 00 [23:09:39]wFMCommunicate OK [23:09:39]SAM_PROTO_ClearQueue done [23:09:39]KKMCreateOFDPacket [23:09:39]OFDProtocolAddRootSTLVToBuf [23:09:39]FM_MakeSignedData [23:09:39]FM_MakeSignedData [23:09:39]SAM_PROTO_SignData [23:09:39]wFMCommunicate request_size=4 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 0D 01 02 [23:09:39]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 03 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [23:09:39]RAPDU: 90 00 [23:09:39]wFMCommunicate OK [23:09:39]wFMCommunicate request_size=255 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 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 B2 A3 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5A 1E 00 00 35 04 06 00 [23:09:39]Write to MH i2c: E2 02 01 8D 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 34 FF 03 08 00 03 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 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 B2 A3 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5A 1E 00 00 35 04 06 00 00 00 22 [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 03 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [23:09:39]RAPDU: 90 00 [23:09:39]wFMCommunicate OK [23:09:39]wFMCommunicate request_size=11 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 0D 02 02 06 8A 0F 35 72 7F 12 [23:09:39]Write to MH i2c: E2 0E 00 8E 01 80 0D 02 02 06 00 8A 0F 35 72 7F 12 00 00 E6 [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 03 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [23:09:39]RAPDU: 90 00 [23:09:39]wFMCommunicate OK [23:09:39]wFMCommunicate request_size=4 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 0D 03 02 [23:09:39]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 0B 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 0B 00 8F 01 00 6A 57 3B 39 55 B6 5C 73 90 00 1B [23:09:39]RAPDU: 6A 57 3B 39 55 B6 5C 73 90 00 [23:09:39]wFMCommunicate OK [23:09:39]SAM_PROTO_SignData done [23:09:39]FM_MakeSignedData done [23:09:39]CreateOFDProtocolMessage [23:09:39]wFMCommunicate request_size=4 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 11 00 00 [23:09:39]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 17 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5C [23:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:09:39]wFMCommunicate OK [23:09:39]CreateOFDProtocolMessage done [23:09:39]OFDSenderStorePacket 7770 [23:09:39]StoreOFDPacket docnum=7770 [23:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D0 C0 08 01 C3 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 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 B2 A3 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5A 1E 00 00 35 04 06 00 8A 0F 35 72 7F 12 6A 57 3B 39 55 B6 5C 73 [23:09:39]CheckFolder [23:09:39]dirname=/storage/ofd_packets [23:09:39]CheckFolder done [23:09:39]ProducePacketName [23:09:39]name=ofd_packets/00007770 [23:09:39]NVStorageSaveData ofd_packets/00007770 [23:09:39]File name is /storage/ofd_packets/00007770 [23:09:39]Write 302 bytes [23:09:39]NVStorageSaveData done [23:09:39]OFDSenderStorePacket done [23:09:39]KKMCreateOFDPacket done [23:09:39]NVStorageSaveData kkm_last_timestamp [23:09:39]File name is /storage/kkm_last_timestamp [23:09:39]Write 4 bytes [23:09:39]NVStorageSaveData done [23:09:39]ExternCall_PrintAddStr [23:09:39]wPrintStart [23:09:39]Write to MH i2c: 01 00 00 91 01 92 [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: 01 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: 01 07 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [23:09:39]RasterBufferAndPrint [23:09:39]line Счет N : (1)872051 [23:09:39]line ИНН: 02508201610067 [23:09:39]line Контрольно-Кассовый Чек [23:09:39]line ПРОДАЖА [23:09:39]line ТРК (МРК, ГНК) : 34 [23:09:39]line Товар: 2710194210 [23:09:39]line ДТ(л)-К-4 [23:09:39]line 93.090 * 75.20 [23:09:39]line = 7000.37 [23:09:39]line НДС 12% НСП 1% [23:09:39]line > о реализуемом товаре [23:09:39]line ОКРУГЛЕНИЕ: -0.37 [23:09:39]line ИТОГО: 7000.00 [23:09:39]line Внесено: 7000.00 [23:09:39]line СДАЧА: 0.00 [23:09:39]line НСП 1% : 61.95 [23:09:39]line НДС 12% : 743.40 [23:09:39]line Наличными: 7000.00 [23:09:39]line Безнал.: 0.00 [23:09:39]line Место: АЗС № 137 "Партнер Нефть" [23:09:39]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [23:09:39]line СНО: Общий режим [23:09:39]line Чек 168 22.09.2024 23:09 [23:09:39]line Смена: 70 ФФД: 1.0 [23:09:39]line ЗНМ: 0300000041 [23:09:39]line РНМ: 0000000000190446 [23:09:39]line Версия ККМ: v1.0 [23:09:39]line [23:09:39]line Дисконтная программа [23:09:39]line ДТ [23:09:39]line номер 137 [23:09:39]line сэкономлено 93.09 сом [23:09:39]line ФМ: 0000000002094258 [23:09:39]line ФД: 7770 [23:09:39]line ФПД: 151797925838610 [23:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T230938&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7770&fm=151797925838610&tin=02508201610067®Number=0000000000190446&sum=700000 [23:09:40]OFD Sender: Processing packet 7770 [packets to send 51, broken 50] [23:09:40]ProducePacketName [23:09:40]name=ofd_packets/00007770 [23:09:40]OFD Sender: To server: pG, [23:09:40]CommunicateWithHost lk.salyk.kg:30040 [23:09:40]ConnectInit lk.salyk.kg [23:09:40]written 0, free lines is 4095 [23:09:40]Write to MH i2c: 01 00 00 C1 01 C2 [23:09:40]Write i2c OK [23:09:40]MH_I2C_Read... [23:09:40]Read from MH i2c: 01 [23:09:40]MH_I2C_Read... [23:09:40]Read from MH i2c: 01 07 00 [23:09:40]MH_I2C_Read... [23:09:40]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 96 0C 6B [23:09:40]RasterBufferAndPrint [23:09:40]line [23:09:40]line [23:09:40]line [23:09:40]line [23:09:40]line [23:09:40]written 0, free lines is 3228 [23:09:40]MH_Cut [23:09:40]Write to MH i2c: D1 01 00 C8 01 01 9B [23:09:40]Write i2c OK [23:09:40]MH_I2C_Read... [23:09:40]Read from MH i2c: D1 [23:09:40]MH_I2C_Read... [23:09:40]Read from MH i2c: D1 01 00 [23:09:40]MH_I2C_Read... [23:09:40]Read from MH i2c: D1 01 00 C8 01 00 9A [23:09:40]Write to MH i2c: 01 00 00 C9 01 CA [23:09:40]Write i2c OK [23:09:40]MH_I2C_Read... [23:09:40]Connected sock=7 [23:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 D0 C0 08 01 C3 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 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 B2 A3 F0 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5A 1E 00 00 35 04 06 00 8A 0F 35 72 7F 12 6A 57 3B 39 55 B6 5C 73 [23:09:41]*** Cut start [23:09:41]*** Purtial cut [23:09:41]*** Stage 1: CUTSNS_PIN = 1 [23:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 10 A8 47 00 CF 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 32 30 39 34 32 35 38 10 04 04 00 5A 1E 00 00 F4 03 04 00 70 4E F0 66 B6 04 01 00 00 37 80 D3 38 C7 59 21 6F [23:09:41]CommunicateWithHost err = 0 [23:09:41]CheckOFDResponse [23:09:41]1017 (14) - 77093643461234 [23:09:41]1041 (16) - 0000000002094258 [23:09:41]1040 (4) - 7770 [23:09:41]1012 (4) - 22.09.2024 17:05 [23:09:41]1206 (1) - 0 [23:09:41]OFD Sender: Remove packet 7770 [23:09:41]ProducePacketName [23:09:41]name=ofd_packets/00007770 [23:09:41]NVStorageDeleteData [23:09:41]Read from MH i2c: 01 [23:09:41]MH_I2C_Read... [23:09:41]*** Stop cut motor [23:09:41]*** Cut end [23:09:41]Read from MH i2c: 01 07 00 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 FF 0F DF [23:09:41]process_action close_receipt done [23:09:41]requested_data is exist [23:09:41]produce_requested_data [23:09:41]requested_item fm.sn is exist - process it [23:09:41]wFMCommunicate request_size=4 [23:09:41]MH_SAM_APDU [23:09:41]CAPDU: 80 11 00 00 [23:09:41]Write to MH i2c: E2 08 00 CA 01 80 11 00 00 00 00 00 00 45 [23:09:41]Write i2c OK [23:09:41]MH_I2C_Read... [23:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:41]Read from MH i2c: E2 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 17 00 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 17 00 CA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 96 [23:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:09:41]wFMCommunicate OK [23:09:41]requested_item fd.num is exist - process it [23:09:41]SAM_PROTO_GetFieldsCounters [23:09:41]wFMCommunicate request_size=4 [23:09:41]MH_SAM_APDU [23:09:41]CAPDU: 80 13 00 00 [23:09:41]Write to MH i2c: E2 08 00 CB 01 80 13 00 00 00 00 00 00 48 [23:09:41]Write i2c OK [23:09:41]MH_I2C_Read... [23:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:41]Read from MH i2c: E2 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 62 00 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 62 00 CB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5A 1E 00 00 0E 04 04 00 46 00 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 1C [23:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5A 1E 00 00 0E 04 04 00 46 00 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:09:41]wFMCommunicate OK [23:09:41]SAM_PROTO_GetFieldsCounters done [23:09:41]requested_item shift.num is exist - process it [23:09:41]requested_item shift.opened is exist - process it [23:09:41]req_shift_opened [23:09:41]FM_GetShiftState [23:09:41]SAM_PROTO_GetShiftState [23:09:41]wFMCommunicate request_size=4 [23:09:41]MH_SAM_APDU [23:09:41]CAPDU: 80 13 01 00 [23:09:41]Write to MH i2c: E2 08 00 CC 01 80 13 01 00 00 00 00 00 4A [23:09:41]Write i2c OK [23:09:41]MH_I2C_Read... [23:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:41]Read from MH i2c: E2 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 0E 00 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 0E 00 CC 01 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 0D [23:09:41]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [23:09:41]wFMCommunicate OK [23:09:41]SAM_PROTO_GetShiftState done [23:09:41]FM_GetShiftState done [23:09:41]req_shift_opened done [23:09:41]requested_item shift.open_date is exist - process it [23:09:41]req_shift_open_date [23:09:41]req_shift_open_date done [23:09:41]produce_requested_data done [23:09:41]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7770,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [23:09:41]process_action_free close_receipt [23:09:41]json_value_free [23:09:41]json_value_free done [23:09:41]process_json_proto returns [23:09:41]Send response to host [23:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7770,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [23:09:41]free response buf [23:09:41]execute_script done [23:09:41]execute_script returns [23:09:41]free content buf [23:09:41]Sock 9.Close socket [23:09:41]Sock 9.Thread stoped [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:00]recv_with_timeout no data received [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:10]recv_with_timeout no data received [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:08]recv_with_timeout no data received [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]recv_with_timeout no data received [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:36]recv_with_timeout no data received [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:07]recv_with_timeout no data received [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:26]recv_with_timeout no data received [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]recv_with_timeout no data received [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:07]recv_with_timeout no data received [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]recv_with_timeout no data received [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:43]recv_with_timeout no data received [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:00]recv_with_timeout no data received [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:40]recv_with_timeout no data received [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:00]recv_with_timeout no data received [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:09]recv_with_timeout no data received [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:41]recv_with_timeout no data received [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:26]recv_with_timeout no data received [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:05]recv_with_timeout no data received [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39: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: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: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: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:36]recv_with_timeout no data received [23:41:38]OFD Sender: No OFD packet to send [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:41:59]recv_with_timeout no data received [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [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:51]recv_with_timeout no data received [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:10]recv_with_timeout no data received [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [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: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:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [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:38]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:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]recv_with_timeout no data received [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:49]recv_with_timeout no data received [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:00]recv_with_timeout no data received [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:18]OFD Sender: No OFD packet to send [23:46:20]recv_with_timeout no data received [23:46:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [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: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:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [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:40]recv_with_timeout no data received [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:50]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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: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: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:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]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: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: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:14]recv_with_timeout no data received [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]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:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:36]recv_with_timeout no data received [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:02]recv_with_timeout no data received [23:59:04]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5996747+1721052822=1727049569 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 61 AF F0 66 96 2E 95 66 24 [23:59:29]Current date/time: 22.09.2024 23:59 [23:59:29]FM_Init [23:59:29]wFMConnect [23:59:29]MH_SAM_On [23:59:29]Write to MH i2c: E0 00 00 08 00 E7 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_init finished! [23:59:29]*** atr: [23:59:29]*** 0F 3B D5 18 FF 81 91 FE [23:59:29]*** 1F C3 80 73 C8 21 10 0A [23:59:29]*** 00 00 00 00 00 00 00 00 [23:59:29]*** 00 00 00 00 00 00 00 00 [23:59:29]*** 00 00 00 00 00 00 00 00 [23:59:29]*** 00 00 00 00 00 00 00 00 [23:59:29]*** 00 00 00 00 00 00 00 00 [23:59:29]*** 00 00 00 00 00 00 00 00 [23:59:29]Read from MH i2c: E0 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E0 10 00 [23:59:29]MH_I2C_Read... [23:59:29]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:59:29]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:59:29]wFMCommunicate request_size=10 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:59:29]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 03 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:59:29]RAPDU: 90 00 [23:59:29]wFMCommunicate OK [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 11 00 00 [23:59:29]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 17 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D5 [23:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:59:29]wFMCommunicate OK [23:59:29]Detected FM SN is 0000000002094258 [23:59:29]Stored FM SN is 0000000002094258 [23:59:29]wFMCommunicate request_size=9 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 16 00 00 04 BC C2 00 00 [23:59:29]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 BC C2 00 00 00 00 10 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 03 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:59:29]RAPDU: 90 00 [23:59:29]wFMCommunicate OK [23:59:29]FM PIN OK [23:59:29]wFMCommunicate request_size=8 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 14 04 00 03 02 00 01 [23:59:29]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 03 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:59:29]RAPDU: 90 00 [23:59:29]wFMCommunicate OK [23:59:29]wFMCommunicate request_size=13 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:59:29]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:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 03 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:59:29]RAPDU: 90 00 [23:59:29]wFMCommunicate OK [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 11 00 00 [23:59:29]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 17 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D9 [23:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:59:29]wFMCommunicate OK [23:59:29]DocumentArchiveInit [23:59:29]Start Httpd... [23:59:29]Httpd thread 3067469156 created [23:59:29]Write to MH i2c: 01 00 00 0F 00 0F [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: 01 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: 01 07 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:59:29]MH Int Process started [23:59:29]Allocated Socket 8 [23:59:29]Bind OK [23:59:29]Listen OK [23:59:29]httpd running on port 8080 [23:59:29]Waiting for new connection... [23:59:29]OFD Sender: No OFD packet to send [23:59:31]accept exits with 9 [23:59:31]New connection [23:59:31]New thread 3067182436 created [23:59:31]Waiting for new connection... [23:59:31] Sock 9.Parse request [23:59:31]Sock 9.Check first char [23:59:31]Sock 9.First char is OK [23:59:31]request: POST /json_proto HTTP/1.0 [23:59:31]Method: POST [23:59:31]URL: /json_proto [23:59:31]Method is POST - this is cgi request [23:59:31]url: /json_proto [23:59:31]query_string will be loaded in cgi processing [23:59:31]execute_cgi json_proto POST (null) [23:59:31]execute_cgi path=json_proto method=POST [23:59:31]POST find Content-Length [23:59:31]Host: 172.17.47.195:8080 [23:59:31]Content-Length: 215 [23:59:31]Content-Type: application/json [23:59:31] [23:59:31]POST finish read [23:59:31]Found Content-Length = 215 [23:59:31]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:59:31]execute_script... [23:59:31]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:59:31]POST & json_proto [23:59:31]process_json_proto [23:59:31]json parsed OK: [23:59:31]protocol is kg_v1.0 [23:59:31]action value=get_value [23:59:31]process_action get_value [23:59:31]cmd_get_value [23:59:31]process_action get_value done [23:59:31]requested_data is exist [23:59:31]produce_requested_data [23:59:31]requested_item kkm.sn is exist - process it [23:59:31]requested_item kkm.ver is exist - process it [23:59:31]requested_item fm.sn is exist - process it [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 11 00 00 [23:59:31]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:31]Read from MH i2c: E2 17 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DB [23:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [23:59:31]wFMCommunicate OK [23:59:31]requested_item fd.num is exist - process it [23:59:31]SAM_PROTO_GetFieldsCounters [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 00 00 [23:59:31]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 62 00 [23:59:31]MH_I2C_Read... [23:59:31]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5A 1E 00 00 0E 04 04 00 46 00 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 61 [23:59:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5A 1E 00 00 0E 04 04 00 46 00 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:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetFieldsCounters done [23:59:31]requested_item shift.num is exist - process it [23:59:31]requested_item shift.opened is exist - process it [23:59:31]req_shift_opened [23:59:31]FM_GetShiftState [23:59:31]SAM_PROTO_GetShiftState [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 01 00 [23:59:31]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 0E 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 52 [23:59:31]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetShiftState done [23:59:31]FM_GetShiftState done [23:59:31]req_shift_opened done [23:59:31]requested_item shift.open_date is exist - process it [23:59:31]req_shift_open_date [23:59:31]req_shift_open_date done [23:59:31]produce_requested_data done [23:59:31]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7770,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [23:59:31]process_action_free get_value [23:59:31]json_value_free [23:59:31]json_value_free done [23:59:31]process_json_proto returns [23:59:31]Send response to host [23:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7770,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [23:59:31]free response buf [23:59:31]execute_script done [23:59:31]execute_script returns [23:59:31]free content buf [23:59:31]Sock 9.Close socket [23:59:31]Sock 9.Thread stoped [23:59:31]accept exits with 7 [23:59:31]New connection [23:59:31]New thread 3067039076 created [23:59:31]Thread 3067182436 joined [23:59:31]Waiting for new connection... [23:59:31] Sock 7.Parse request [23:59:31]Sock 7.Check first char [23:59:31]Sock 7.First char is OK [23:59:31]request: POST /json_proto HTTP/1.0 [23:59:31]Method: POST [23:59:31]URL: /json_proto [23:59:31]Method is POST - this is cgi request [23:59:31]url: /json_proto [23:59:31]query_string will be loaded in cgi processing [23:59:31]execute_cgi json_proto POST (null) [23:59:31]execute_cgi path=json_proto method=POST [23:59:31]POST find Content-Length [23:59:31]Host: 172.17.47.195:8080 [23:59:31]Content-Length: 331 [23:59:31]Content-Type: application/json [23:59:31] [23:59:31]POST finish read [23:59:31]Found Content-Length = 331 [23:59: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" ] } } [23:59:31]execute_script... [23:59: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" ] } } [23:59:31]POST & json_proto [23:59:31]process_json_proto [23:59:31]json parsed OK: [23:59:31]protocol is kg_v1.0 [23:59:31]action value=get_value [23:59:31]process_action get_value [23:59:31]cmd_get_value [23:59:31]process_action get_value done [23:59:31]requested_data is exist [23:59:31]produce_requested_data [23:59:31]requested_item fm.sale.total is exist - process it [23:59:31]SAM_PROTO_GetFMData [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 03 00 [23:59:31]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 CE 1D 00 00 69 04 A0 00 6F 04 04 00 A1 1D 00 00 B1 04 04 00 97 EE 65 31 70 04 04 00 0C 5E 71 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 9E 3B 3F 05 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 27 EF 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 1D [23:59:32]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CE 1D 00 00 69 04 A0 00 6F 04 04 00 A1 1D 00 00 B1 04 04 00 97 EE 65 31 70 04 04 00 0C 5E 71 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 9E 3B 3F 05 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 27 EF 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 D9 [23:59:32]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [23:59:32]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [23:59:32]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 DE 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [23:59:33]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:33]wFMCommunicate OK [23:59:33]SAM_PROTO_GetFMData done [23:59:33]requested_item fm.sale_refund.total is exist - process it [23:59:33]requested_item fm.buy.total is exist - process it [23:59:33]requested_item shift.sale.total is exist - process it [23:59:33]SAM_PROTO_GetShiftData [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 13 02 00 [23:59:33]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 9B 1C 0E 01 70 04 03 00 9C 5C F7 72 04 03 00 FF BF 16 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 65 B1 1C 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 11 64 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 0A [23:59:33]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 9B 1C 0E 01 70 04 03 00 9C 5C F7 72 04 03 00 FF BF 16 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 65 B1 1C 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 11 64 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 F7 [23:59:33]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [23:59:34]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:34]wFMCommunicate OK [23:59:34]wFMCommunicate request_size=4 [23:59:34]MH_SAM_APDU [23:59:34]CAPDU: 80 17 00 00 [23:59:34]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:59:34]Write i2c OK [23:59:34]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 [23:59:34]MH_I2C_Read... [23:59:34]OFD Sender: No OFD packet to send [23:59:34]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [23:59:34]RAPDU: 03 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 90 00 [23:59:34]wFMCommunicate OK [23:59:34]wFMCommunicate request_size=4 [23:59:34]MH_SAM_APDU [23:59:34]CAPDU: 80 17 00 00 [23:59:34]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:59:34]Write i2c OK [23:59:34]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 D5 00 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [23:59:34]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:34]wFMCommunicate OK [23:59:34]SAM_PROTO_GetShiftData done [23:59:34]requested_item shift.sale.total_cash is exist - process it [23:59:34]requested_item shift.sale_refund.total is exist - process it [23:59:34]requested_item shift.sale_refund.total_cash is exist - process it [23:59:34]requested_item shift.buy.total is exist - process it [23:59:34]requested_item shift.buy.total_cash is exist - process it [23:59:34]produce_requested_data done [23:59:34]produce_requested_data return {"fm.sale.total":8287637.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177020.43,"shift.sale.total_cash":162111.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:59:34]process_action_free get_value [23:59:34]json_value_free [23:59:34]json_value_free done [23:59:34]process_json_proto returns [23:59:34]Send response to host [23:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8287637.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177020.43,"shift.sale.total_cash":162111.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:59:34]free response buf [23:59:34]execute_script done [23:59:34]execute_script returns [23:59:34]free content buf [23:59:34]Sock 7.Close socket [23:59:34]Sock 7.Thread stoped [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:02]recv_with_timeout no data received [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:43]recv_with_timeout no data received [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:36]recv_with_timeout no data received [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:21]accept exits with 9 [00:04:21]New connection [00:04:21]New thread 3067182436 created [00:04:21]Thread 3067039076 joined [00:04:21]Waiting for new connection... [00:04:21] Sock 9.Parse request [00:04:21]Sock 9.Check first char [00:04:21]Sock 9.First char is OK [00:04:21]request: POST /json_proto HTTP/1.0 [00:04:21]Method: POST [00:04:21]URL: /json_proto [00:04:21]Method is POST - this is cgi request [00:04:21]url: /json_proto [00:04:21]query_string will be loaded in cgi processing [00:04:21]execute_cgi json_proto POST (null) [00:04:21]execute_cgi path=json_proto method=POST [00:04:21]POST find Content-Length [00:04:21]Host: 172.17.47.195:8080 [00:04:21]Content-Length: 677 [00:04:21]Content-Type: application/json [00:04:21] [00:04:21]POST finish read [00:04:21]Found Content-Length = 677 [00:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:21]execute_script... [00:04: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)872056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:21]POST & json_proto [00:04:21]process_json_proto [00:04:21]json parsed OK: [00:04:21]protocol is kg_v1.0 [00:04:21]action value=close_receipt [00:04:21]process_action close_receipt [00:04:21]cmd_close_receipt [00:04:21]MH_GetDate [00:04:21]Write to MH i2c: F0 00 00 1D 00 0C [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: F0 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: F0 09 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: F0 09 00 1D 00 00 86 B0 F0 66 96 2E 95 66 60 [00:04:21]GetLastDocTimeStamp 1727046578 [00:04:21]current date 1727049862 [00:04:21]FM_GetShiftState [00:04:21]SAM_PROTO_GetShiftState [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 13 01 00 [00:04:21]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 0E 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 5E [00:04:22]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [00:04:22]wFMCommunicate OK [00:04:22]SAM_PROTO_GetShiftState done [00:04:22]FM_GetShiftState done [00:04:22]opened in 1726964224 [00:04:22]opened+sec_in_day 1727050624 [00:04:22]quantity*price = 50036 [00:04:22]sum+1 = 50037 [00:04:22]Check (price>sum+1) || (price+1 о реализуемом товаре [00:12:37]line ОКРУГЛЕНИЕ: -0.36 [00:12:37]line ИТОГО: 500.00 [00:12:37]line Внесено: 500.00 [00:12:37]line СДАЧА: 0.00 [00:12:37]line НСП 1% : 4.43 [00:12:37]line НДС 12% : 53.14 [00:12:37]line Наличными: 500.00 [00:12:37]line Безнал.: 0.00 [00:12:37]line Место: АЗС № 137 "Партнер Нефть" [00:12:37]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:12:37]line СНО: Общий режим [00:12:37]line Чек 169 23.09.2024 00:04 [00:12:37]line Смена: 70 ФФД: 1.0 [00:12:37]line ЗНМ: 0300000041 [00:12:37]line РНМ: 0000000000190446 [00:12:37]line Версия ККМ: v1.0 [00:12:37]line ФМ: 0000000002094258 [00:12:37]line ФД: 7771 [00:12:37]line ФПД: 41822878429628 [00:12:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T000422&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7771&fm=41822878429628&tin=02508201610067®Number=0000000000190446&sum=50000 [00:12:37]written 0, free lines is 4095 [00:12:37]Write to MH i2c: 01 00 00 48 00 48 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F9 0C 54 [00:12:37]RasterBufferAndPrint [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]written 0, free lines is 3339 [00:12:37]MH_Cut [00:12:37]Write to MH i2c: D1 01 00 4F 00 01 21 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 01 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 01 00 4F 00 00 20 [00:12:37]Write to MH i2c: 01 00 00 50 00 50 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]OFD Sender: No OFD packet to send [00:12:38]*** Cut start [00:12:38]*** Purtial cut [00:12:38]*** Stage 1: CUTSNS_PIN = 1 [00:12:38]Read from MH i2c: 01 [00:12:38]MH_I2C_Read... [00:12:38]*** Stop cut motor [00:12:38]*** Cut end [00:12:38]Read from MH i2c: 01 07 00 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [00:12:38]process_action print_doc done [00:12:38]requested_data is exist [00:12:38]produce_requested_data [00:12:38]produce_requested_data return (null) [00:12:38]process_action_free print_doc [00:12:38]json_value_free [00:12:38]json_value_free done [00:12:38]process_json_proto returns [00:12:38]Send response to host [00:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [00:12:38]free response buf [00:12:38]execute_script done [00:12:38]execute_script returns [00:12:38]free content buf [00:12:38]Sock 7.Close socket [00:12:38]Sock 7.Thread stoped [00:12:42]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:03]recv_with_timeout no data received [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:20]accept exits with 5 [00:13:20]New connection [00:13:20]New thread 3067145572 created [00:13:20]Thread 3067288932 joined [00:13:20]Waiting for new connection... [00:13:20] Sock 5.Parse request [00:13:20]Sock 5.Check first char [00:13:20]Sock 5.First char is OK [00:13:20]request: POST /json_proto HTTP/1.0 [00:13:20]Method: POST [00:13:20]URL: /json_proto [00:13:20]Method is POST - this is cgi request [00:13:20]url: /json_proto [00:13:20]query_string will be loaded in cgi processing [00:13:20]execute_cgi json_proto POST (null) [00:13:20]execute_cgi path=json_proto method=POST [00:13:20]POST find Content-Length [00:13:20]Host: 172.17.47.195:8080 [00:13:20]Content-Length: 215 [00:13:20]Content-Type: application/json [00:13:20] [00:13:20]POST finish read [00:13:20]Found Content-Length = 215 [00:13:20]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:13:20]execute_script... [00:13:20]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:13:20]POST & json_proto [00:13:20]process_json_proto [00:13:20]json parsed OK: [00:13:20]protocol is kg_v1.0 [00:13:20]action value=get_value [00:13:20]process_action get_value [00:13:20]cmd_get_value [00:13:20]process_action get_value done [00:13:20]requested_data is exist [00:13:20]produce_requested_data [00:13:20]requested_item kkm.sn is exist - process it [00:13:20]requested_item kkm.ver is exist - process it [00:13:20]requested_item fm.sn is exist - process it [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 11 00 00 [00:13:20]Write to MH i2c: E2 08 00 51 00 80 11 00 00 00 00 00 00 CB [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 17 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 17 00 51 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 1C [00:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:13:20]wFMCommunicate OK [00:13:20]requested_item fd.num is exist - process it [00:13:20]SAM_PROTO_GetFieldsCounters [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 13 00 00 [00:13:20]Write to MH i2c: E2 08 00 52 00 80 13 00 00 00 00 00 00 CE [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 62 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 62 00 52 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5B 1E 00 00 0E 04 04 00 46 00 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 A6 [00:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5B 1E 00 00 0E 04 04 00 46 00 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 [00:13:20]wFMCommunicate OK [00:13:20]SAM_PROTO_GetFieldsCounters done [00:13:20]requested_item shift.num is exist - process it [00:13:20]requested_item shift.opened is exist - process it [00:13:20]req_shift_opened [00:13:20]FM_GetShiftState [00:13:20]SAM_PROTO_GetShiftState [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 13 01 00 [00:13:20]Write to MH i2c: E2 08 00 53 00 80 13 01 00 00 00 00 00 D0 [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 0E 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 0E 00 53 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 93 [00:13:20]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [00:13:20]wFMCommunicate OK [00:13:20]SAM_PROTO_GetShiftState done [00:13:20]FM_GetShiftState done [00:13:20]req_shift_opened done [00:13:20]requested_item shift.open_date is exist - process it [00:13:20]req_shift_open_date [00:13:20]req_shift_open_date done [00:13:20]produce_requested_data done [00:13:20]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7771,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [00:13:20]process_action_free get_value [00:13:20]json_value_free [00:13:20]json_value_free done [00:13:20]process_json_proto returns [00:13:20]Send response to host [00:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7771,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [00:13:20]free response buf [00:13:20]execute_script done [00:13:20]execute_script returns [00:13:20]free content buf [00:13:20]Sock 5.Close socket [00:13:20]Sock 5.Thread stoped [00:13:20]accept exits with 9 [00:13:20]New connection [00:13:20]New thread 3067288932 created [00:13:20]Thread 3067145572 joined [00:13:20]Waiting for new connection... [00:13:20] Sock 9.Parse request [00:13:20]Sock 9.Check first char [00:13:20]Sock 9.First char is OK [00:13:20]request: POST /json_proto HTTP/1.0 [00:13:20]Method: POST [00:13:20]URL: /json_proto [00:13:20]Method is POST - this is cgi request [00:13:20]url: /json_proto [00:13:20]query_string will be loaded in cgi processing [00:13:20]execute_cgi json_proto POST (null) [00:13:20]execute_cgi path=json_proto method=POST [00:13:20]POST find Content-Length [00:13:20]Host: 172.17.47.195:8080 [00:13:20]Content-Length: 331 [00:13:20]Content-Type: application/json [00:13:20] [00:13:20]POST finish read [00:13:20]Found Content-Length = 331 [00:13:20]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:13:20]execute_script... [00:13:20]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:13:20]POST & json_proto [00:13:20]process_json_proto [00:13:20]json parsed OK: [00:13:20]protocol is kg_v1.0 [00:13:20]action value=get_value [00:13:20]process_action get_value [00:13:20]cmd_get_value [00:13:20]process_action get_value done [00:13:20]requested_data is exist [00:13:20]produce_requested_data [00:13:20]requested_item fm.sale.total is exist - process it [00:13:20]SAM_PROTO_GetFMData [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 13 03 00 [00:13:20]Write to MH i2c: E2 08 00 54 00 80 13 03 00 00 00 00 00 D3 [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 FD 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 FD 00 54 00 00 C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 1B [00:13:21]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [00:13:21]wFMCommunicate OK [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 17 00 00 [00:13:21]Write to MH i2c: E2 08 00 55 00 80 17 00 00 00 00 00 00 D5 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 FD 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 FD 00 55 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 1A [00:13:21]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [00:13:21]wFMCommunicate OK [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 17 00 00 [00:13:21]Write to MH i2c: E2 08 00 56 00 80 17 00 00 00 00 00 00 D6 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 FD 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 FD 00 56 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [00:13:21]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:21]wFMCommunicate OK [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 17 00 00 [00:13:21]Write to MH i2c: E2 08 00 57 00 80 17 00 00 00 00 00 00 D7 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:22]Read from MH i2c: E2 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 FD 00 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 FD 00 57 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [00:13:22]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:22]wFMCommunicate OK [00:13:22]wFMCommunicate request_size=4 [00:13:22]MH_SAM_APDU [00:13:22]CAPDU: 80 17 00 00 [00:13:22]Write to MH i2c: E2 08 00 58 00 80 17 00 00 00 00 00 00 D8 [00:13:22]Write i2c OK [00:13:22]MH_I2C_Read... [00:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:13:22]Read from MH i2c: E2 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 DE 00 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 DE 00 58 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B7 [00:13:22]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:22]wFMCommunicate OK [00:13:22]SAM_PROTO_GetFMData done [00:13:22]requested_item fm.sale_refund.total is exist - process it [00:13:22]requested_item fm.buy.total is exist - process it [00:13:22]requested_item shift.sale.total is exist - process it [00:13:22]SAM_PROTO_GetShiftData [00:13:22]wFMCommunicate request_size=4 [00:13:22]MH_SAM_APDU [00:13:22]CAPDU: 80 13 02 00 [00:13:22]Write to MH i2c: E2 08 00 59 00 80 13 02 00 00 00 00 00 D7 [00:13:22]Write i2c OK [00:13:22]MH_I2C_Read... [00:13:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:22]Read from MH i2c: E2 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 FD 00 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 FD 00 59 00 00 B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 07 [00:13:22]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:13:22]wFMCommunicate OK [00:13:22]wFMCommunicate request_size=4 [00:13:22]MH_SAM_APDU [00:13:22]CAPDU: 80 17 00 00 [00:13:22]Write to MH i2c: E2 08 00 5A 00 80 17 00 00 00 00 00 00 DA [00:13:22]Write i2c OK [00:13:22]MH_I2C_Read... [00:13:23]OFD Sender: No OFD packet to send [00:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:23]Read from MH i2c: E2 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 FD 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 FD 00 5A 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 38 [00:13:23]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:13:23]wFMCommunicate OK [00:13:23]wFMCommunicate request_size=4 [00:13:23]MH_SAM_APDU [00:13:23]CAPDU: 80 17 00 00 [00:13:23]Write to MH i2c: E2 08 00 5B 00 80 17 00 00 00 00 00 00 DB [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:23]Read from MH i2c: E2 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 FD 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 FD 00 5B 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7D [00:13:23]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:23]wFMCommunicate OK [00:13:23]wFMCommunicate request_size=4 [00:13:23]MH_SAM_APDU [00:13:23]CAPDU: 80 17 00 00 [00:13:23]Write to MH i2c: E2 08 00 5C 00 80 17 00 00 00 00 00 00 DC [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:23]Read from MH i2c: E2 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 FD 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 FD 00 5C 00 00 03 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 90 00 65 [00:13:23]RAPDU: 03 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 90 00 [00:13:23]wFMCommunicate OK [00:13:23]wFMCommunicate request_size=4 [00:13:23]MH_SAM_APDU [00:13:23]CAPDU: 80 17 00 00 [00:13:23]Write to MH i2c: E2 08 00 5D 00 80 17 00 00 00 00 00 00 DD [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:13:23]Read from MH i2c: E2 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 D5 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 D5 00 5D 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [00:13:23]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:24]wFMCommunicate OK [00:13:24]SAM_PROTO_GetShiftData done [00:13:24]requested_item shift.sale.total_cash is exist - process it [00:13:24]requested_item shift.sale_refund.total is exist - process it [00:13:24]requested_item shift.sale_refund.total_cash is exist - process it [00:13:24]requested_item shift.buy.total is exist - process it [00:13:24]requested_item shift.buy.total_cash is exist - process it [00:13:24]produce_requested_data done [00:13:24]produce_requested_data return {"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:13:24]process_action_free get_value [00:13:24]json_value_free [00:13:24]json_value_free done [00:13:24]process_json_proto returns [00:13:24]Send response to host [00:13:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:13:24]free response buf [00:13:24]execute_script done [00:13:24]execute_script returns [00:13:24]free content buf [00:13:24]Sock 9.Close socket [00:13:24]Sock 9.Thread stoped [00:13:24]accept exits with 5 [00:13:24]New connection [00:13:24]New thread 3067145572 created [00:13:24]Thread 3067288932 joined [00:13:24]Waiting for new connection... [00:13:24] Sock 5.Parse request [00:13:24]Sock 5.Check first char [00:13:24]Sock 5.First char is OK [00:13:24]request: POST /json_proto HTTP/1.0 [00:13:24]Method: POST [00:13:24]URL: /json_proto [00:13:24]Method is POST - this is cgi request [00:13:24]url: /json_proto [00:13:24]query_string will be loaded in cgi processing [00:13:24]execute_cgi json_proto POST (null) [00:13:24]execute_cgi path=json_proto method=POST [00:13:24]POST find Content-Length [00:13:24]Host: 172.17.47.195:8080 [00:13:24]Content-Length: 331 [00:13:24]Content-Type: application/json [00:13:24] [00:13:24]POST finish read [00:13:24]Found Content-Length = 331 [00:13: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" ] } } [00:13:24]execute_script... [00:13: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" ] } } [00:13:24]POST & json_proto [00:13:24]process_json_proto [00:13:24]json parsed OK: [00:13:24]protocol is kg_v1.0 [00:13:24]action value=get_value [00:13:24]process_action get_value [00:13:24]cmd_get_value [00:13:24]process_action get_value done [00:13:24]requested_data is exist [00:13:24]produce_requested_data [00:13:24]requested_item fm.sale.total is exist - process it [00:13:24]SAM_PROTO_GetFMData [00:13:24]wFMCommunicate request_size=4 [00:13:24]MH_SAM_APDU [00:13:24]CAPDU: 80 13 03 00 [00:13:24]Write to MH i2c: E2 08 00 5E 00 80 13 03 00 00 00 00 00 DD [00:13:24]Write i2c OK [00:13:24]MH_I2C_Read... [00:13:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:24]Read from MH i2c: E2 [00:13:24]MH_I2C_Read... [00:13:24]Read from MH i2c: E2 FD 00 [00:13:24]MH_I2C_Read... [00:13:24]Read from MH i2c: E2 FD 00 5E 00 00 C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 25 [00:13:24]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [00:13:24]wFMCommunicate OK [00:13:24]wFMCommunicate request_size=4 [00:13:24]MH_SAM_APDU [00:13:24]CAPDU: 80 17 00 00 [00:13:24]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [00:13:24]Write i2c OK [00:13:24]MH_I2C_Read... [00:13:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:24]Read from MH i2c: E2 [00:13:24]MH_I2C_Read... [00:13:24]Read from MH i2c: E2 FD 00 [00:13:24]MH_I2C_Read... [00:13:24]Read from MH i2c: E2 FD 00 5F 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 24 [00:13:24]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [00:13:25]wFMCommunicate OK [00:13:25]wFMCommunicate request_size=4 [00:13:25]MH_SAM_APDU [00:13:25]CAPDU: 80 17 00 00 [00:13:25]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [00:13:25]Write i2c OK [00:13:25]MH_I2C_Read... [00:13:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:25]Read from MH i2c: E2 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 FD 00 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 FD 00 60 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [00:13:25]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:25]wFMCommunicate OK [00:13:25]wFMCommunicate request_size=4 [00:13:25]MH_SAM_APDU [00:13:25]CAPDU: 80 17 00 00 [00:13:25]Write to MH i2c: E2 08 00 61 00 80 17 00 00 00 00 00 00 E1 [00:13:25]Write i2c OK [00:13:25]MH_I2C_Read... [00:13:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:25]Read from MH i2c: E2 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 FD 00 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 FD 00 61 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [00:13:25]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:25]wFMCommunicate OK [00:13:25]wFMCommunicate request_size=4 [00:13:25]MH_SAM_APDU [00:13:25]CAPDU: 80 17 00 00 [00:13:25]Write to MH i2c: E2 08 00 62 00 80 17 00 00 00 00 00 00 E2 [00:13:25]Write i2c OK [00:13:25]MH_I2C_Read... [00:13:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:13:25]Read from MH i2c: E2 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 DE 00 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 DE 00 62 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C1 [00:13:26]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:26]wFMCommunicate OK [00:13:26]SAM_PROTO_GetFMData done [00:13:26]requested_item fm.sale_refund.total is exist - process it [00:13:26]requested_item fm.buy.total is exist - process it [00:13:26]requested_item shift.sale.total is exist - process it [00:13:26]SAM_PROTO_GetShiftData [00:13:26]wFMCommunicate request_size=4 [00:13:26]MH_SAM_APDU [00:13:26]CAPDU: 80 13 02 00 [00:13:26]Write to MH i2c: E2 08 00 63 00 80 13 02 00 00 00 00 00 E1 [00:13:26]Write i2c OK [00:13:26]MH_I2C_Read... [00:13:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:26]Read from MH i2c: E2 [00:13:26]MH_I2C_Read... [00:13:26]Read from MH i2c: E2 FD 00 [00:13:26]MH_I2C_Read... [00:13:26]Read from MH i2c: E2 FD 00 63 00 00 B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 11 [00:13:26]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:13:26]wFMCommunicate OK [00:13:26]wFMCommunicate request_size=4 [00:13:26]MH_SAM_APDU [00:13:26]CAPDU: 80 17 00 00 [00:13:26]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [00:13:26]Write i2c OK [00:13:26]MH_I2C_Read... [00:13:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:26]Read from MH i2c: E2 [00:13:26]MH_I2C_Read... [00:13:26]Read from MH i2c: E2 FD 00 [00:13:26]MH_I2C_Read... [00:13:26]Read from MH i2c: E2 FD 00 64 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 42 [00:13:26]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:13:27]wFMCommunicate OK [00:13:27]wFMCommunicate request_size=4 [00:13:27]MH_SAM_APDU [00:13:27]CAPDU: 80 17 00 00 [00:13:27]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [00:13:27]Write i2c OK [00:13:27]MH_I2C_Read... [00:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:27]Read from MH i2c: E2 [00:13:27]MH_I2C_Read... [00:13:27]Read from MH i2c: E2 FD 00 [00:13:27]MH_I2C_Read... [00:13:27]Read from MH i2c: E2 FD 00 65 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [00:13:27]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:27]wFMCommunicate OK [00:13:27]wFMCommunicate request_size=4 [00:13:27]MH_SAM_APDU [00:13:27]CAPDU: 80 17 00 00 [00:13:27]Write to MH i2c: E2 08 00 66 00 80 17 00 00 00 00 00 00 E6 [00:13:27]Write i2c OK [00:13:27]MH_I2C_Read... [00:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:27]Read from MH i2c: E2 [00:13:27]MH_I2C_Read... [00:13:27]Read from MH i2c: E2 FD 00 [00:13:27]MH_I2C_Read... [00:13:27]Read from MH i2c: E2 FD 00 66 00 00 03 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 90 00 6F [00:13:27]RAPDU: 03 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 90 00 [00:13:27]wFMCommunicate OK [00:13:27]wFMCommunicate request_size=4 [00:13:27]MH_SAM_APDU [00:13:27]CAPDU: 80 17 00 00 [00:13:27]Write to MH i2c: E2 08 00 67 00 80 17 00 00 00 00 00 00 E7 [00:13:27]Write i2c OK [00:13:27]MH_I2C_Read... [00:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:13:28]Read from MH i2c: E2 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: E2 D5 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: E2 D5 00 67 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:13:28]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:28]wFMCommunicate OK [00:13:28]SAM_PROTO_GetShiftData done [00:13:28]requested_item shift.sale.total_cash is exist - process it [00:13:28]requested_item shift.sale_refund.total is exist - process it [00:13:28]requested_item shift.sale_refund.total_cash is exist - process it [00:13:28]requested_item shift.buy.total is exist - process it [00:13:28]requested_item shift.buy.total_cash is exist - process it [00:13:28]produce_requested_data done [00:13:28]produce_requested_data return {"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:13:28]process_action_free get_value [00:13:28]json_value_free [00:13:28]json_value_free done [00:13:28]process_json_proto returns [00:13:28]Send response to host [00:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:13:28]free response buf [00:13:28]execute_script done [00:13:28]execute_script returns [00:13:28]free content buf [00:13:28]Sock 5.Close socket [00:13:28]Sock 5.Thread stoped [00:13:28]OFD Sender: No OFD packet to send [00:13:28]accept exits with 9 [00:13:28]New connection [00:13:28]New thread 3067288932 created [00:13:28]Thread 3067145572 joined [00:13:28]Waiting for new connection... [00:13:28] Sock 9.Parse request [00:13:28]Sock 9.Check first char [00:13:28]Sock 9.First char is OK [00:13:28]request: POST /json_proto HTTP/1.0 [00:13:28]Method: POST [00:13:28]URL: /json_proto [00:13:28]Method is POST - this is cgi request [00:13:28]url: /json_proto [00:13:28]query_string will be loaded in cgi processing [00:13:28]execute_cgi json_proto POST (null) [00:13:28]execute_cgi path=json_proto method=POST [00:13:28]POST find Content-Length [00:13:28]Host: 172.17.47.195:8080 [00:13:28]Content-Length: 239 [00:13:28]Content-Type: application/json [00:13:28] [00:13:28]POST finish read [00:13:28]Found Content-Length = 239 [00:13:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0448\u0438\u0435\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:28]execute_script... [00:13:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0448\u0438\u0435\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:28]POST & json_proto [00:13:28]process_json_proto [00:13:28]json parsed OK: [00:13:28]protocol is kg_v1.0 [00:13:28]action value=x_report [00:13:28]process_action x_report [00:13:28]cmd_x_report [00:13:28]MH_GetDate [00:13:28]Write to MH i2c: F0 00 00 68 00 57 [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: F0 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: F0 09 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: F0 09 00 68 00 00 A8 B2 F0 66 96 2E 95 66 CF [00:13:28]GetLastDocTimeStamp 1727049862 [00:13:28]current date 1727050408 [00:13:28]FM_GetShiftState [00:13:28]SAM_PROTO_GetShiftState [00:13:28]wFMCommunicate request_size=4 [00:13:28]MH_SAM_APDU [00:13:28]CAPDU: 80 13 01 00 [00:13:28]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:28]Read from MH i2c: E2 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: E2 0E 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 A9 [00:13:28]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [00:13:28]wFMCommunicate OK [00:13:28]SAM_PROTO_GetShiftState done [00:13:28]FM_GetShiftState done [00:13:28]KKMCreateXReportDocument [00:13:28]Load OK [00:13:28]Malloc new data [00:13:28]MH_GetDate [00:13:28]Write to MH i2c: F0 00 00 6A 00 59 [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: F0 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: F0 09 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: F0 09 00 6A 00 00 A9 B2 F0 66 96 2E 95 66 D2 [00:13:28]Malloc new data [00:13:28]Malloc new data [00:13:28]wFMCommunicate request_size=4 [00:13:28]MH_SAM_APDU [00:13:28]CAPDU: 80 11 00 00 [00:13:28]Write to MH i2c: E2 08 00 6B 00 80 11 00 00 00 00 00 00 E5 [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:28]Read from MH i2c: E2 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: E2 17 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: E2 17 00 6B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 36 [00:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:13:28]wFMCommunicate OK [00:13:28]SAM_PROTO_GetFieldsCounters [00:13:28]wFMCommunicate request_size=4 [00:13:28]MH_SAM_APDU [00:13:28]CAPDU: 80 13 00 00 [00:13:28]Write to MH i2c: E2 08 00 6C 00 80 13 00 00 00 00 00 00 E8 [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:28]Read from MH i2c: E2 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: E2 62 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: E2 62 00 6C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5B 1E 00 00 0E 04 04 00 46 00 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 C0 [00:13:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5B 1E 00 00 0E 04 04 00 46 00 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 [00:13:28]wFMCommunicate OK [00:13:28]SAM_PROTO_GetFieldsCounters done [00:13:28]Malloc new data [00:13:28]Malloc new data [00:13:28]Malloc new data [00:13:28]KKMCreateXReportDocument OK [00:13:28]KKMSetXReportData OK [00:13:28]KKMPrepareXReportFMData [00:13:28]SAM_PROTO_GetShiftData [00:13:28]wFMCommunicate request_size=4 [00:13:28]MH_SAM_APDU [00:13:28]CAPDU: 80 13 02 00 [00:13:28]Write to MH i2c: E2 08 00 6D 00 80 13 02 00 00 00 00 00 EB [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:29]Read from MH i2c: E2 [00:13:29]MH_I2C_Read... [00:13:29]Read from MH i2c: E2 FD 00 [00:13:29]MH_I2C_Read... [00:13:29]Read from MH i2c: E2 FD 00 6D 00 00 B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 1B [00:13:29]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:13:29]wFMCommunicate OK [00:13:29]wFMCommunicate request_size=4 [00:13:29]MH_SAM_APDU [00:13:29]CAPDU: 80 17 00 00 [00:13:29]Write to MH i2c: E2 08 00 6E 00 80 17 00 00 00 00 00 00 EE [00:13:29]Write i2c OK [00:13:29]MH_I2C_Read... [00:13:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:29]Read from MH i2c: E2 [00:13:29]MH_I2C_Read... [00:13:29]Read from MH i2c: E2 FD 00 [00:13:29]MH_I2C_Read... [00:13:29]Read from MH i2c: E2 FD 00 6E 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 4C [00:13:29]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:13:29]wFMCommunicate OK [00:13:29]wFMCommunicate request_size=4 [00:13:29]MH_SAM_APDU [00:13:29]CAPDU: 80 17 00 00 [00:13:29]Write to MH i2c: E2 08 00 6F 00 80 17 00 00 00 00 00 00 EF [00:13:29]Write i2c OK [00:13:29]MH_I2C_Read... [00:13:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:30]Read from MH i2c: E2 [00:13:30]MH_I2C_Read... [00:13:30]Read from MH i2c: E2 FD 00 [00:13:30]MH_I2C_Read... [00:13:30]Read from MH i2c: E2 FD 00 6F 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 91 [00:13:30]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:30]wFMCommunicate OK [00:13:30]wFMCommunicate request_size=4 [00:13:30]MH_SAM_APDU [00:13:30]CAPDU: 80 17 00 00 [00:13:30]Write to MH i2c: E2 08 00 70 00 80 17 00 00 00 00 00 00 F0 [00:13:30]Write i2c OK [00:13:30]MH_I2C_Read... [00:13:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:30]Read from MH i2c: E2 [00:13:30]MH_I2C_Read... [00:13:30]Read from MH i2c: E2 FD 00 [00:13:30]MH_I2C_Read... [00:13:30]Read from MH i2c: E2 FD 00 70 00 00 03 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 90 00 79 [00:13:30]RAPDU: 03 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 90 00 [00:13:30]wFMCommunicate OK [00:13:30]wFMCommunicate request_size=4 [00:13:30]MH_SAM_APDU [00:13:30]CAPDU: 80 17 00 00 [00:13:30]Write to MH i2c: E2 08 00 71 00 80 17 00 00 00 00 00 00 F1 [00:13:30]Write i2c OK [00:13:30]MH_I2C_Read... [00:13:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:13:31]Read from MH i2c: E2 [00:13:31]MH_I2C_Read... [00:13:31]Read from MH i2c: E2 D5 00 [00:13:31]MH_I2C_Read... [00:13:31]Read from MH i2c: E2 D5 00 71 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D2 [00:13:31]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:31]wFMCommunicate OK [00:13:31]SAM_PROTO_GetShiftData done [00:13:31]1194 (1204) - счетчики итогов смены [00:13:31] 1134 (4) - 169 - количество чеков со всеми признаками расчетов [00:13:31] 1129 (157) - счетчики операций «приход» [00:13:31] 1135 (4) - 168 - количество чеков по признаку расчетов [00:13:31] 1201 (4) - 177520.43 - общая итоговая сумма в чеках [00:13:31] 1136 (3) - 162611.00 - итоговая сумма в чеках наличными [00:13:31] 1138 (3) - 14909.43 - итоговая сумма в чеках безналичными [00:13:31] 1024 (123) - суммы налогов [00:13:31] 1006 (9) - суммы НДС [00:13:31] 1010 (1) - 0% - код ставки НДС [00:13:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:31] 1006 (12) - суммы НДС [00:13:31] 1010 (1) - 12% - код ставки НДС [00:13:31] 1011 (3) - 18857.35 - сумма НДС по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 0% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (12) - суммы НСП [00:13:31] 1014 (1) - 1% - код ставки НСП [00:13:31] 1015 (3) - 1571.32 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 2% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 3% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 5% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 0,50% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 1,50% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1130 (149) - счетчики операций «возврат прихода» [00:13:31] 1135 (4) - 1 - количество чеков по признаку расчетов [00:13:31] 1201 (2) - 339.00 - общая итоговая сумма в чеках [00:13:31] 1136 (2) - 339.00 - итоговая сумма в чеках наличными [00:13:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:13:31] 1024 (121) - суммы налогов [00:13:31] 1006 (9) - суммы НДС [00:13:31] 1010 (1) - 0% - код ставки НДС [00:13:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:31] 1006 (11) - суммы НДС [00:13:31] 1010 (1) - 12% - код ставки НДС [00:13:31] 1011 (2) - 36.00 - сумма НДС по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 0% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (11) - суммы НСП [00:13:31] 1014 (1) - 1% - код ставки НСП [00:13:31] 1015 (2) - 3.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 2% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 3% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 5% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 0,50% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 1,50% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1131 (141) - счетчики операций «расход» [00:13:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:13:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:13:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:13:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:13:31] 1024 (117) - суммы налогов [00:13:31] 1006 (9) - суммы НДС [00:13:31] 1010 (1) - 0% - код ставки НДС [00:13:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:31] 1006 (9) - суммы НДС [00:13:31] 1010 (1) - 12% - код ставки НДС [00:13:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 0% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 1% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 2% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 3% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 5% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 0,50% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 1,50% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1132 (141) - счетчики операций «возврат расхода» [00:13:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:13:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:13:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:13:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:13:31] 1024 (117) - суммы налогов [00:13:31] 1006 (9) - суммы НДС [00:13:31] 1010 (1) - 0% - код ставки НДС [00:13:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:31] 1006 (9) - суммы НДС [00:13:31] 1010 (1) - 12% - код ставки НДС [00:13:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 0% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 1% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 2% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 3% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 5% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 0,50% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1007 (9) - суммы НСП [00:13:31] 1014 (1) - 1,50% - код ставки НСП [00:13:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:31] 1133 (588) - - счетчики коррекции - не используются [00:13:31]SetTLVBufToDocument [00:13:31]Processing tag 1194 (04AA) [00:13:31]Load OK [00:13:31]SetTLVBufToDocument [00:13:31]Processing tag 1134 (046E) [00:13:31]Malloc new data [00:13:31]Processing tag 1129 (0469) [00:13:31]Load OK [00:13:31]SetTLVBufToDocument [00:13:31]Processing tag 1135 (046F) [00:13:31]Malloc new data [00:13:31]Processing tag 1201 (04B1) [00:13:31]Malloc new data [00:13:31]Processing tag 1136 (0470) [00:13:31]Malloc new data [00:13:31]Processing tag 1138 (0472) [00:13:31]Malloc new data [00:13:31]Processing tag 1024 (0400) [00:13:31]Load OK [00:13:31]SetTLVBufToDocument [00:13:31]Processing tag 1006 (03EE) [00:13:31]Load OK [00:13:31]SetTLVBufToDocument [00:13:31]Processing tag 1010 (03F2) [00:13:31]Malloc new data [00:13:31]Processing tag 1011 (03F3) [00:13:31]Malloc new data [00:13:31]SetTLVBufToDocument err=0 [00:13:31]Processing tag 1006 (03EE) [00:13:31]Load OK [00:13:31]SetTLVBufToDocument [00:13:31]Processing tag 1010 (03F2) [00:13:31]Malloc new data [00:13:31]Processing tag 1011 (03F3) [00:13:31]Malloc new data [00:13:31]SetTLVBufToDocument err=0 [00:13:31]Processing tag 1007 (03EF) [00:13:31]Load OK [00:13:31]SetTLVBufToDocument [00:13:31]Processing tag 1014 (03F6) [00:13:31]Malloc new data [00:13:31]Processing tag 1015 (03F7) [00:13:31]Malloc new data [00:13:31]SetTLVBufToDocument err=0 [00:13:31]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1130 (046A) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1135 (046F) [00:13:32]Malloc new data [00:13:32]Processing tag 1201 (04B1) [00:13:32]Malloc new data [00:13:32]Processing tag 1136 (0470) [00:13:32]Malloc new data [00:13:32]Processing tag 1138 (0472) [00:13:32]Malloc new data [00:13:32]Processing tag 1024 (0400) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1006 (03EE) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1010 (03F2) [00:13:32]Malloc new data [00:13:32]Processing tag 1011 (03F3) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1006 (03EE) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1010 (03F2) [00:13:32]Malloc new data [00:13:32]Processing tag 1011 (03F3) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1131 (046B) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1135 (046F) [00:13:32]Malloc new data [00:13:32]Processing tag 1201 (04B1) [00:13:32]Malloc new data [00:13:32]Processing tag 1136 (0470) [00:13:32]Malloc new data [00:13:32]Processing tag 1138 (0472) [00:13:32]Malloc new data [00:13:32]Processing tag 1024 (0400) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1006 (03EE) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1010 (03F2) [00:13:32]Malloc new data [00:13:32]Processing tag 1011 (03F3) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1006 (03EE) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1010 (03F2) [00:13:32]Malloc new data [00:13:32]Processing tag 1011 (03F3) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1132 (046C) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1135 (046F) [00:13:32]Malloc new data [00:13:32]Processing tag 1201 (04B1) [00:13:32]Malloc new data [00:13:32]Processing tag 1136 (0470) [00:13:32]Malloc new data [00:13:32]Processing tag 1138 (0472) [00:13:32]Malloc new data [00:13:32]Processing tag 1024 (0400) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1006 (03EE) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1010 (03F2) [00:13:32]Malloc new data [00:13:32]Processing tag 1011 (03F3) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1006 (03EE) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1010 (03F2) [00:13:32]Malloc new data [00:13:32]Processing tag 1011 (03F3) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1007 (03EF) [00:13:32]Load OK [00:13:32]SetTLVBufToDocument [00:13:32]Processing tag 1014 (03F6) [00:13:32]Malloc new data [00:13:32]Processing tag 1015 (03F7) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Processing tag 1133 (046D) [00:13:32]Malloc new data [00:13:32]SetTLVBufToDocument err=0 [00:13:32]SetTLVBufToDocument err=0 [00:13:32]Malloc new data [00:13:32]SAM_PROTO_GetFMData [00:13:32]wFMCommunicate request_size=4 [00:13:32]MH_SAM_APDU [00:13:32]CAPDU: 80 13 03 00 [00:13:32]Write to MH i2c: E2 08 00 72 00 80 13 03 00 00 00 00 00 F1 [00:13:32]Write i2c OK [00:13:32]MH_I2C_Read... [00:13:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:32]Read from MH i2c: E2 [00:13:32]MH_I2C_Read... [00:13:32]Read from MH i2c: E2 FD 00 [00:13:32]MH_I2C_Read... [00:13:32]Read from MH i2c: E2 FD 00 72 00 00 C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 39 [00:13:33]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [00:13:33]wFMCommunicate OK [00:13:33]wFMCommunicate request_size=4 [00:13:33]MH_SAM_APDU [00:13:33]CAPDU: 80 17 00 00 [00:13:33]Write to MH i2c: E2 08 00 73 00 80 17 00 00 00 00 00 00 F3 [00:13:33]Write i2c OK [00:13:33]MH_I2C_Read... [00:13:33]OFD Sender: No OFD packet to send [00:13:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:33]Read from MH i2c: E2 [00:13:33]MH_I2C_Read... [00:13:33]Read from MH i2c: E2 FD 00 [00:13:33]MH_I2C_Read... [00:13:33]Read from MH i2c: E2 FD 00 73 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 38 [00:13:33]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [00:13:33]wFMCommunicate OK [00:13:33]wFMCommunicate request_size=4 [00:13:33]MH_SAM_APDU [00:13:33]CAPDU: 80 17 00 00 [00:13:33]Write to MH i2c: E2 08 00 74 00 80 17 00 00 00 00 00 00 F4 [00:13:33]Write i2c OK [00:13:33]MH_I2C_Read... [00:13:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:34]Read from MH i2c: E2 [00:13:34]MH_I2C_Read... [00:13:34]Read from MH i2c: E2 FD 00 [00:13:34]MH_I2C_Read... [00:13:34]Read from MH i2c: E2 FD 00 74 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [00:13:34]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:34]wFMCommunicate OK [00:13:34]wFMCommunicate request_size=4 [00:13:34]MH_SAM_APDU [00:13:34]CAPDU: 80 17 00 00 [00:13:34]Write to MH i2c: E2 08 00 75 00 80 17 00 00 00 00 00 00 F5 [00:13:34]Write i2c OK [00:13:34]MH_I2C_Read... [00:13:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:34]Read from MH i2c: E2 [00:13:34]MH_I2C_Read... [00:13:34]Read from MH i2c: E2 FD 00 [00:13:34]MH_I2C_Read... [00:13:34]Read from MH i2c: E2 FD 00 75 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [00:13:34]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:34]wFMCommunicate OK [00:13:34]wFMCommunicate request_size=4 [00:13:34]MH_SAM_APDU [00:13:34]CAPDU: 80 17 00 00 [00:13:34]Write to MH i2c: E2 08 00 76 00 80 17 00 00 00 00 00 00 F6 [00:13:34]Write i2c OK [00:13:34]MH_I2C_Read... [00:13:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:13:35]Read from MH i2c: E2 [00:13:35]MH_I2C_Read... [00:13:35]Read from MH i2c: E2 DE 00 [00:13:35]MH_I2C_Read... [00:13:35]Read from MH i2c: E2 DE 00 76 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D5 [00:13:35]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:35]wFMCommunicate OK [00:13:35]SAM_PROTO_GetFMData done [00:13:35]FM_GetFMData:85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:13:36]oper:6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:13:36]total:E7 B1 66 31 [00:13:36]Malloc new data [00:13:36]oper:6F 04 04 00 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 [00:13:36]total:3C 5C 66 01 [00:13:36]Malloc new data [00:13:36]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:13:36]total: [00:13:36]Malloc new data [00:13:36]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:13:36]total: [00:13:36]Malloc new data [00:13:36]KKMPrepareXReportFMData err=0 [00:13:36]Х отчет ИНН: 02508201610067 Кассир: Эшиев К. 23.09.2024 00:13 Смена: 10 РНМ: 0000000000190446 ЗНМ: 0300000041 СНО: Общий режим Всего чеков: 169 ИТОГИ ПРИХОД Чеков: 168 Общий итог: 177520.43 Итого наличными: 162611.00 Итого безнал.: 14909.43 НДС 0% : 0.00 НДС 12% : 18857.35 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1571.32 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 339.00 Итого наличными: 339.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 36.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3.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 Нал. в кассе: 162272.00 НС Приход: 8288137.99 НС Возвр.Прихода: 234855.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094258 [00:13:36]StoreToDocumentArchive [00:13:36]MH_GetDate [00:13:36]Write to MH i2c: F0 00 00 77 00 66 [00:13:36]Write i2c OK [00:13:36]MH_I2C_Read... [00:13:36]Read from MH i2c: F0 [00:13:36]MH_I2C_Read... [00:13:36]Read from MH i2c: F0 09 00 [00:13:36]MH_I2C_Read... [00:13:36]Read from MH i2c: F0 09 00 77 00 00 B0 B2 F0 66 96 2E 95 66 E6 [00:13:36]shift 10 fd 1727050416 [00:13:36]Create dir for shift 0010 [00:13:36]save to /storage/0010/doc_1727050416 [00:13:36]save last doc name /storage/0010/doc_1727050416 to /storage/kkm_last_doc_name [00:13:36]save OK [00:13:36]Clear old archive folders... [00:13:36]NVStorageSaveData kkm_last_timestamp [00:13:36]File name is /storage/kkm_last_timestamp [00:13:36]Write 4 bytes [00:13:36]NVStorageSaveData done [00:13:36]ExternCall_PrintAddStr [00:13:36]wPrintStart [00:13:36]Write to MH i2c: 01 00 00 78 00 78 [00:13:36]Write i2c OK [00:13:36]MH_I2C_Read... [00:13:36]Read from MH i2c: 01 [00:13:36]MH_I2C_Read... [00:13:36]Read from MH i2c: 01 07 00 [00:13:36]MH_I2C_Read... [00:13:36]Read from MH i2c: 01 07 00 78 00 00 00 00 00 00 FF 0F 8D [00:13:36]RasterBufferAndPrint [00:13:36]line Х отчет [00:13:36]line ИНН: 02508201610067 [00:13:36]line Кассир: Эшиев К. [00:13:36]line 23.09.2024 00:13 [00:13:36]line Смена: 10 [00:13:36]line РНМ: 0000000000190446 [00:13:36]line ЗНМ: 0300000041 [00:13:36]line СНО: Общий режим [00:13:36]line Всего чеков: 169 [00:13:36]line ИТОГИ ПРИХОД [00:13:36]line Чеков: 168 [00:13:36]line Общий итог: 177520.43 [00:13:36]line Итого наличными: 162611.00 [00:13:36]line Итого безнал.: 14909.43 [00:13:36]line НДС 0% : 0.00 [00:13:36]line НДС 12% : 18857.35 [00:13:36]line НСП 0% : 0.00 [00:13:36]line НСП 1,50% : 0.00 [00:13:36]line НСП 0,50% : 0.00 [00:13:36]line НСП 5% : 0.00 [00:13:36]line НСП 3% : 0.00 [00:13:36]line НСП 2% : 0.00 [00:13:36]line НСП 1% : 1571.32 [00:13:36]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:13:36]line Чеков: 1 [00:13:36]line Общий итог: 339.00 [00:13:36]line Итого наличными: 339.00 [00:13:36]line Итого безнал.: 0.00 [00:13:36]line НДС 0% : 0.00 [00:13:36]line НДС 12% : 36.00 [00:13:36]line НСП 0% : 0.00 [00:13:36]line НСП 1,50% : 0.00 [00:13:36]line НСП 0,50% : 0.00 [00:13:36]line НСП 5% : 0.00 [00:13:36]line НСП 3% : 0.00 [00:13:36]line НСП 2% : 0.00 [00:13:36]line НСП 1% : 3.00 [00:13:36]line ИТОГИ РАСХОД [00:13:36]line Чеков: 0 [00:13:36]line Общий итог: 0.00 [00:13:36]line Итого наличными: 0.00 [00:13:36]line Итого безнал.: 0.00 [00:13:36]line НДС 0% : 0.00 [00:13:36]line НДС 12% : 0.00 [00:13:36]line НСП 0% : 0.00 [00:13:36]line НСП 1,50% : 0.00 [00:13:36]line НСП 0,50% : 0.00 [00:13:36]line НСП 5% : 0.00 [00:13:36]line НСП 3% : 0.00 [00:13:36]line НСП 2% : 0.00 [00:13:36]line НСП 1% : 0.00 [00:13:36]line ИТОГИ ВОЗВРАТ РАСХОДА [00:13:36]line Чеков: 0 [00:13:36]line Общий итог: 0.00 [00:13:36]line Итого наличными: 0.00 [00:13:36]line Итого безнал.: 0.00 [00:13:36]line НДС 0% : 0.00 [00:13:36]line НДС 12% : 0.00 [00:13:36]line НСП 0% : 0.00 [00:13:36]line НСП 1,50% : 0.00 [00:13:36]line НСП 0,50% : 0.00 [00:13:36]line НСП 5% : 0.00 [00:13:36]line НСП 3% : 0.00 [00:13:36]line НСП 2% : 0.00 [00:13:36]line НСП 1% : 0.00 [00:13:36]line Сумма внесений: 0.00 [00:13:36]line Сумма выплат: 0.00 [00:13:36]line Нал. в кассе: 162272.00 [00:13:36]line НС Приход: 8288137.99 [00:13:36]line НС Возвр.Прихода: 234855.00 [00:13:36]line НС Расход: 0.00 [00:13:36]line НС Возвр.Расхода: 0.00 [00:13:36]line ФМ: 0000000002094258 [00:13:36]written 0, free lines is 4095 [00:13:37]Write to MH i2c: 01 00 00 C3 00 C3 [00:13:37]Write i2c OK [00:13:37]MH_I2C_Read... [00:13:37]Read from MH i2c: 01 [00:13:37]MH_I2C_Read... [00:13:37]Read from MH i2c: 01 07 00 [00:13:37]MH_I2C_Read... [00:13:37]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FE 0A D2 [00:13:37]RasterBufferAndPrint [00:13:37]line [00:13:37]line [00:13:37]line [00:13:37]line [00:13:37]line [00:13:37]written 0, free lines is 2853 [00:13:37]MH_Cut [00:13:37]Write to MH i2c: D1 01 00 CA 00 01 9C [00:13:37]Write i2c OK [00:13:37]MH_I2C_Read... [00:13:37]Read from MH i2c: D1 [00:13:37]MH_I2C_Read... [00:13:37]Read from MH i2c: D1 01 00 [00:13:37]MH_I2C_Read... [00:13:37]Read from MH i2c: D1 01 00 CA 00 00 9B [00:13:37]Write to MH i2c: 01 00 00 CB 00 CB [00:13:37]Write i2c OK [00:13:37]MH_I2C_Read... [00:13:38]*** Cut start [00:13:38]*** Purtial cut [00:13:38]*** Stage 1: CUTSNS_PIN = 1 [00:13:38]OFD Sender: No OFD packet to send [00:13:38]Read from MH i2c: 01 [00:13:38]MH_I2C_Read... [00:13:38]*** Stop cut motor [00:13:38]*** Cut end [00:13:38]Read from MH i2c: 01 07 00 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: 01 07 00 CB 00 00 00 00 00 00 FF 0F E0 [00:13:38]process_action x_report done [00:13:38]requested_data is exist [00:13:38]produce_requested_data [00:13:38]requested_item fd.num is exist - process it [00:13:38]SAM_PROTO_GetFieldsCounters [00:13:38]wFMCommunicate request_size=4 [00:13:38]MH_SAM_APDU [00:13:38]CAPDU: 80 13 00 00 [00:13:38]Write to MH i2c: E2 08 00 CC 00 80 13 00 00 00 00 00 00 48 [00:13:38]Write i2c OK [00:13:38]MH_I2C_Read... [00:13:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:38]Read from MH i2c: E2 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: E2 62 00 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: E2 62 00 CC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5B 1E 00 00 0E 04 04 00 46 00 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 20 [00:13:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5B 1E 00 00 0E 04 04 00 46 00 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 [00:13:38]wFMCommunicate OK [00:13:38]SAM_PROTO_GetFieldsCounters done [00:13:38]requested_item shift.num is exist - process it [00:13:38]requested_item shift.opened is exist - process it [00:13:38]req_shift_opened [00:13:38]FM_GetShiftState [00:13:38]SAM_PROTO_GetShiftState [00:13:38]wFMCommunicate request_size=4 [00:13:38]MH_SAM_APDU [00:13:38]CAPDU: 80 13 01 00 [00:13:38]Write to MH i2c: E2 08 00 CD 00 80 13 01 00 00 00 00 00 4A [00:13:38]Write i2c OK [00:13:38]MH_I2C_Read... [00:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:38]Read from MH i2c: E2 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: E2 0E 00 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: E2 0E 00 CD 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 0D [00:13:38]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [00:13:38]wFMCommunicate OK [00:13:38]SAM_PROTO_GetShiftState done [00:13:38]FM_GetShiftState done [00:13:38]req_shift_opened done [00:13:38]requested_item shift.open_date is exist - process it [00:13:38]req_shift_open_date [00:13:38]req_shift_open_date done [00:13:38]produce_requested_data done [00:13:38]produce_requested_data return {"fd.num":7771,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [00:13:38]process_action_free x_report [00:13:38]json_value_free [00:13:38]json_value_free done [00:13:38]process_json_proto returns [00:13:38]Send response to host [00:13:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":7771,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [00:13:38]free response buf [00:13:38]execute_script done [00:13:38]execute_script returns [00:13:38]free content buf [00:13:38]Sock 9.Close socket [00:13:39]Sock 9.Thread stoped [00:13:39]recv_with_timeout no data received [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:09]accept exits with 5 [00:14:09]New connection [00:14:09]New thread 3067145572 created [00:14:09]Thread 3067288932 joined [00:14:09]Waiting for new connection... [00:14:09] Sock 5.Parse request [00:14:09]Sock 5.Check first char [00:14:09]Sock 5.First char is OK [00:14:09]request: POST /json_proto HTTP/1.0 [00:14:09]Method: POST [00:14:09]URL: /json_proto [00:14:09]Method is POST - this is cgi request [00:14:09]url: /json_proto [00:14:09]query_string will be loaded in cgi processing [00:14:09]execute_cgi json_proto POST (null) [00:14:09]execute_cgi path=json_proto method=POST [00:14:09]POST find Content-Length [00:14:09]Host: 172.17.47.195:8080 [00:14:09]Content-Length: 215 [00:14:09]Content-Type: application/json [00:14:09] [00:14:09]POST finish read [00:14:09]Found Content-Length = 215 [00:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:09]execute_script... [00:14:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:09]POST & json_proto [00:14:09]process_json_proto [00:14:09]json parsed OK: [00:14:09]protocol is kg_v1.0 [00:14:09]action value=get_value [00:14:09]process_action get_value [00:14:09]cmd_get_value [00:14:09]process_action get_value done [00:14:09]requested_data is exist [00:14:09]produce_requested_data [00:14:09]requested_item kkm.sn is exist - process it [00:14:09]requested_item kkm.ver is exist - process it [00:14:09]requested_item fm.sn is exist - process it [00:14:09]wFMCommunicate request_size=4 [00:14:09]MH_SAM_APDU [00:14:09]CAPDU: 80 11 00 00 [00:14:09]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [00:14:09]Write i2c OK [00:14:09]MH_I2C_Read... [00:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:09]Read from MH i2c: E2 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: E2 17 00 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 99 [00:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:14:10]wFMCommunicate OK [00:14:10]requested_item fd.num is exist - process it [00:14:10]SAM_PROTO_GetFieldsCounters [00:14:10]wFMCommunicate request_size=4 [00:14:10]MH_SAM_APDU [00:14:10]CAPDU: 80 13 00 00 [00:14:10]Write to MH i2c: E2 08 00 CF 00 80 13 00 00 00 00 00 00 4B [00:14:10]Write i2c OK [00:14:10]MH_I2C_Read... [00:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:10]Read from MH i2c: E2 [00:14:10]MH_I2C_Read... [00:14:10]Read from MH i2c: E2 62 00 [00:14:10]MH_I2C_Read... [00:14:10]Read from MH i2c: E2 62 00 CF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5B 1E 00 00 0E 04 04 00 46 00 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 [00:14:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5B 1E 00 00 0E 04 04 00 46 00 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 [00:14:10]wFMCommunicate OK [00:14:10]SAM_PROTO_GetFieldsCounters done [00:14:10]requested_item shift.num is exist - process it [00:14:10]requested_item shift.opened is exist - process it [00:14:10]req_shift_opened [00:14:10]FM_GetShiftState [00:14:10]SAM_PROTO_GetShiftState [00:14:10]wFMCommunicate request_size=4 [00:14:10]MH_SAM_APDU [00:14:10]CAPDU: 80 13 01 00 [00:14:10]Write to MH i2c: E2 08 00 D0 00 80 13 01 00 00 00 00 00 4D [00:14:10]Write i2c OK [00:14:10]MH_I2C_Read... [00:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:10]Read from MH i2c: E2 [00:14:10]MH_I2C_Read... [00:14:10]Read from MH i2c: E2 0E 00 [00:14:10]MH_I2C_Read... [00:14:10]Read from MH i2c: E2 0E 00 D0 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 10 [00:14:10]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [00:14:10]wFMCommunicate OK [00:14:10]SAM_PROTO_GetShiftState done [00:14:10]FM_GetShiftState done [00:14:10]req_shift_opened done [00:14:10]requested_item shift.open_date is exist - process it [00:14:10]req_shift_open_date [00:14:10]req_shift_open_date done [00:14:10]produce_requested_data done [00:14:10]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7771,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224} [00:14:10]process_action_free get_value [00:14:10]json_value_free [00:14:10]json_value_free done [00:14:10]process_json_proto returns [00:14:10]Send response to host [00:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7771,"shift.num":70,"shift.opened":1,"shift.open_date":1726964224}}} [00:14:10]free response buf [00:14:10]execute_script done [00:14:10]execute_script returns [00:14:10]free content buf [00:14:10]Sock 5.Close socket [00:14:10]Sock 5.Thread stoped [00:14:10]accept exits with 10 [00:14:10]New connection [00:14:10]New thread 3067288932 created [00:14:10]Thread 3067145572 joined [00:14:10]Waiting for new connection... [00:14:10] Sock 10.Parse request [00:14:10]Sock 10.Check first char [00:14:10]Sock 10.First char is OK [00:14:10]request: POST /json_proto HTTP/1.0 [00:14:10]Method: POST [00:14:10]URL: /json_proto [00:14:10]Method is POST - this is cgi request [00:14:10]url: /json_proto [00:14:10]query_string will be loaded in cgi processing [00:14:10]execute_cgi json_proto POST (null) [00:14:10]execute_cgi path=json_proto method=POST [00:14:10]POST find Content-Length [00:14:10]Host: 172.17.47.195:8080 [00:14:10]Content-Length: 331 [00:14:10]Content-Type: application/json [00:14:10] [00:14:10]POST finish read [00:14:10]Found Content-Length = 331 [00:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:10]execute_script... [00:14:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:10]POST & json_proto [00:14:10]process_json_proto [00:14:10]json parsed OK: [00:14:10]protocol is kg_v1.0 [00:14:10]action value=get_value [00:14:10]process_action get_value [00:14:10]cmd_get_value [00:14:10]process_action get_value done [00:14:10]requested_data is exist [00:14:10]produce_requested_data [00:14:10]requested_item fm.sale.total is exist - process it [00:14:10]SAM_PROTO_GetFMData [00:14:10]wFMCommunicate request_size=4 [00:14:10]MH_SAM_APDU [00:14:10]CAPDU: 80 13 03 00 [00:14:10]Write to MH i2c: E2 08 00 D1 00 80 13 03 00 00 00 00 00 50 [00:14:10]Write i2c OK [00:14:10]MH_I2C_Read... [00:14:10]recv_with_timeout no data received [00:14:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:10]Read from MH i2c: E2 [00:14:10]MH_I2C_Read... [00:14:10]Read from MH i2c: E2 FD 00 [00:14:10]MH_I2C_Read... [00:14:10]Read from MH i2c: E2 FD 00 D1 00 00 C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 98 [00:14:10]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [00:14:11]wFMCommunicate OK [00:14:11]wFMCommunicate request_size=4 [00:14:11]MH_SAM_APDU [00:14:11]CAPDU: 80 17 00 00 [00:14:11]Write to MH i2c: E2 08 00 D2 00 80 17 00 00 00 00 00 00 52 [00:14:11]Write i2c OK [00:14:11]MH_I2C_Read... [00:14:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:11]Read from MH i2c: E2 [00:14:11]MH_I2C_Read... [00:14:11]Read from MH i2c: E2 FD 00 [00:14:11]MH_I2C_Read... [00:14:11]Read from MH i2c: E2 FD 00 D2 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 97 [00:14:11]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [00:14:11]wFMCommunicate OK [00:14:11]wFMCommunicate request_size=4 [00:14:11]MH_SAM_APDU [00:14:11]CAPDU: 80 17 00 00 [00:14:11]Write to MH i2c: E2 08 00 D3 00 80 17 00 00 00 00 00 00 53 [00:14:11]Write i2c OK [00:14:11]MH_I2C_Read... [00:14:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:11]Read from MH i2c: E2 [00:14:11]MH_I2C_Read... [00:14:11]Read from MH i2c: E2 FD 00 [00:14:11]MH_I2C_Read... [00:14:11]Read from MH i2c: E2 FD 00 D3 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F3 [00:14:11]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:12]wFMCommunicate OK [00:14:12]wFMCommunicate request_size=4 [00:14:12]MH_SAM_APDU [00:14:12]CAPDU: 80 17 00 00 [00:14:12]Write to MH i2c: E2 08 00 D4 00 80 17 00 00 00 00 00 00 54 [00:14:12]Write i2c OK [00:14:12]MH_I2C_Read... [00:14:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:12]Read from MH i2c: E2 [00:14:12]MH_I2C_Read... [00:14:12]Read from MH i2c: E2 FD 00 [00:14:12]MH_I2C_Read... [00:14:12]Read from MH i2c: E2 FD 00 D4 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [00:14:12]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:12]wFMCommunicate OK [00:14:12]wFMCommunicate request_size=4 [00:14:12]MH_SAM_APDU [00:14:12]CAPDU: 80 17 00 00 [00:14:12]Write to MH i2c: E2 08 00 D5 00 80 17 00 00 00 00 00 00 55 [00:14:12]Write i2c OK [00:14:12]MH_I2C_Read... [00:14:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:14:12]Read from MH i2c: E2 [00:14:12]MH_I2C_Read... [00:14:12]Read from MH i2c: E2 DE 00 [00:14:12]MH_I2C_Read... [00:14:12]Read from MH i2c: E2 DE 00 D5 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 34 [00:14:12]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:13]wFMCommunicate OK [00:14:13]SAM_PROTO_GetFMData done [00:14:13]requested_item fm.sale_refund.total is exist - process it [00:14:13]requested_item fm.buy.total is exist - process it [00:14:13]requested_item shift.sale.total is exist - process it [00:14:13]SAM_PROTO_GetShiftData [00:14:13]wFMCommunicate request_size=4 [00:14:13]MH_SAM_APDU [00:14:13]CAPDU: 80 13 02 00 [00:14:13]Write to MH i2c: E2 08 00 D6 00 80 13 02 00 00 00 00 00 54 [00:14:13]Write i2c OK [00:14:13]MH_I2C_Read... [00:14:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:13]Read from MH i2c: E2 [00:14:13]MH_I2C_Read... [00:14:13]Read from MH i2c: E2 FD 00 [00:14:13]MH_I2C_Read... [00:14:13]Read from MH i2c: E2 FD 00 D6 00 00 B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 84 [00:14:13]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 OFD Sender: No OFD packet to send [00:14:13]70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:14:13]wFMCommunicate OK [00:14:13]wFMCommunicate request_size=4 [00:14:13]MH_SAM_APDU [00:14:13]CAPDU: 80 17 00 00 [00:14:13]Write to MH i2c: E2 08 00 D7 00 80 17 00 00 00 00 00 00 57 [00:14:13]Write i2c OK [00:14:13]MH_I2C_Read... [00:14:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:14]Read from MH i2c: E2 [00:14:14]MH_I2C_Read... [00:14:14]Read from MH i2c: E2 FD 00 [00:14:14]MH_I2C_Read... [00:14:14]Read from MH i2c: E2 FD 00 D7 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 B5 [00:14:14]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:14:14]wFMCommunicate OK [00:14:14]wFMCommunicate request_size=4 [00:14:14]MH_SAM_APDU [00:14:14]CAPDU: 80 17 00 00 [00:14:14]Write to MH i2c: E2 08 00 D8 00 80 17 00 00 00 00 00 00 58 [00:14:14]Write i2c OK [00:14:14]MH_I2C_Read... [00:14:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:14]Read from MH i2c: E2 [00:14:14]MH_I2C_Read... [00:14:14]Read from MH i2c: E2 FD 00 [00:14:14]MH_I2C_Read... [00:14:14]Read from MH i2c: E2 FD 00 D8 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [00:14:14]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:15]wFMCommunicate OK [00:14:15]wFMCommunicate request_size=4 [00:14:15]MH_SAM_APDU [00:14:15]CAPDU: 80 17 00 00 [00:14:15]Write to MH i2c: E2 08 00 D9 00 80 17 00 00 00 00 00 00 59 [00:14:15]Write i2c OK [00:14:15]MH_I2C_Read... [00:14:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:15]Read from MH i2c: E2 [00:14:15]MH_I2C_Read... [00:14:15]Read from MH i2c: E2 FD 00 [00:14:15]MH_I2C_Read... [00:14:15]Read from MH i2c: E2 FD 00 D9 00 00 03 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 90 00 E2 [00:14:15]RAPDU: 03 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 90 00 [00:14:15]wFMCommunicate OK [00:14:15]wFMCommunicate request_size=4 [00:14:15]MH_SAM_APDU [00:14:15]CAPDU: 80 17 00 00 [00:14:15]Write to MH i2c: E2 08 00 DA 00 80 17 00 00 00 00 00 00 5A [00:14:15]Write i2c OK [00:14:15]MH_I2C_Read... [00:14:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:14:15]Read from MH i2c: E2 [00:14:16]MH_I2C_Read... [00:14:16]Read from MH i2c: E2 D5 00 [00:14:16]MH_I2C_Read... [00:14:16]Read from MH i2c: E2 D5 00 DA 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [00:14:16]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:16]wFMCommunicate OK [00:14:16]SAM_PROTO_GetShiftData done [00:14:16]requested_item shift.sale.total_cash is exist - process it [00:14:16]requested_item shift.sale_refund.total is exist - process it [00:14:16]requested_item shift.sale_refund.total_cash is exist - process it [00:14:16]requested_item shift.buy.total is exist - process it [00:14:16]requested_item shift.buy.total_cash is exist - process it [00:14:16]produce_requested_data done [00:14:16]produce_requested_data return {"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:14:16]process_action_free get_value [00:14:16]json_value_free [00:14:16]json_value_free done [00:14:16]process_json_proto returns [00:14:16]Send response to host [00:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:14:16]free response buf [00:14:16]execute_script done [00:14:16]execute_script returns [00:14:16]free content buf [00:14:16]Sock 10.Close socket [00:14:16]Sock 10.Thread stoped [00:14:16]accept exits with 5 [00:14:16]New connection [00:14:16]New thread 3067145572 created [00:14:16]Thread 3067288932 joined [00:14:16]Waiting for new connection... [00:14:16] Sock 5.Parse request [00:14:16]Sock 5.Check first char [00:14:16]Sock 5.First char is OK [00:14:16]request: POST /json_proto HTTP/1.0 [00:14:16]Method: POST [00:14:16]URL: /json_proto [00:14:16]Method is POST - this is cgi request [00:14:16]url: /json_proto [00:14:16]query_string will be loaded in cgi processing [00:14:16]execute_cgi json_proto POST (null) [00:14:16]execute_cgi path=json_proto method=POST [00:14:16]POST find Content-Length [00:14:16]Host: 172.17.47.195:8080 [00:14:16]Content-Length: 331 [00:14:16]Content-Type: application/json [00:14:16] [00:14:16]POST finish read [00:14:16]Found Content-Length = 331 [00:14:16]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:14:16]execute_script... [00:14:16]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:14:16]POST & json_proto [00:14:16]process_json_proto [00:14:16]json parsed OK: [00:14:16]protocol is kg_v1.0 [00:14:16]action value=get_value [00:14:16]process_action get_value [00:14:16]cmd_get_value [00:14:16]process_action get_value done [00:14:16]requested_data is exist [00:14:16]produce_requested_data [00:14:16]requested_item fm.sale.total is exist - process it [00:14:16]SAM_PROTO_GetFMData [00:14:16]wFMCommunicate request_size=4 [00:14:16]MH_SAM_APDU [00:14:16]CAPDU: 80 13 03 00 [00:14:16]Write to MH i2c: E2 08 00 DB 00 80 13 03 00 00 00 00 00 5A [00:14:16]Write i2c OK [00:14:16]MH_I2C_Read... [00:14:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:16]Read from MH i2c: E2 [00:14:16]MH_I2C_Read... [00:14:16]Read from MH i2c: E2 FD 00 [00:14:16]MH_I2C_Read... [00:14:16]Read from MH i2c: E2 FD 00 DB 00 00 C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 A2 [00:14:17]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [00:14:17]wFMCommunicate OK [00:14:17]wFMCommunicate request_size=4 [00:14:17]MH_SAM_APDU [00:14:17]CAPDU: 80 17 00 00 [00:14:17]Write to MH i2c: E2 08 00 DC 00 80 17 00 00 00 00 00 00 5C [00:14:17]Write i2c OK [00:14:17]MH_I2C_Read... [00:14:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:17]Read from MH i2c: E2 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 FD 00 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 FD 00 DC 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 A1 [00:14:17]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [00:14:17]wFMCommunicate OK [00:14:17]wFMCommunicate request_size=4 [00:14:17]MH_SAM_APDU [00:14:17]CAPDU: 80 17 00 00 [00:14:17]Write to MH i2c: E2 08 00 DD 00 80 17 00 00 00 00 00 00 5D [00:14:17]Write i2c OK [00:14:17]MH_I2C_Read... [00:14:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:18]Read from MH i2c: E2 [00:14:18]MH_I2C_Read... [00:14:18]Read from MH i2c: E2 FD 00 [00:14:18]MH_I2C_Read... [00:14:18]Read from MH i2c: E2 FD 00 DD 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [00:14:18]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 90 00 [00:14:21]wFMCommunicate OK [00:14:21]wFMCommunicate request_size=4 [00:14:21]MH_SAM_APDU [00:14:21]CAPDU: 80 17 00 00 [00:14:21]Write to MH i2c: E2 08 00 E3 00 80 17 00 00 00 00 00 00 63 [00:14:21]Write i2c OK [00:14:21]MH_I2C_Read... [00:14:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:22]Read from MH i2c: E2 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 FD 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 FD 00 E3 00 00 03 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 recv_with_timeout no data received [00:14:22]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [00:14:22]RAPDU: 03 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 90 00 [00:14:22]wFMCommunicate OK [00:14:22]wFMCommunicate request_size=4 [00:14:22]MH_SAM_APDU [00:14:22]CAPDU: 80 17 00 00 [00:14:22]Write to MH i2c: E2 08 00 E4 00 80 17 00 00 00 00 00 00 64 [00:14:22]Write i2c OK [00:14:22]MH_I2C_Read... [00:14:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:14:22]Read from MH i2c: E2 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 D5 00 [00:14:22]MH_I2C_Read... [00:14:22]Read from MH i2c: E2 D5 00 E4 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 45 [00:14:22]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:23]wFMCommunicate OK [00:14:23]SAM_PROTO_GetShiftData done [00:14:23]requested_item shift.sale.total_cash is exist - process it [00:14:23]requested_item shift.sale_refund.total is exist - process it [00:14:23]requested_item shift.sale_refund.total_cash is exist - process it [00:14:23]requested_item shift.buy.total is exist - process it [00:14:23]requested_item shift.buy.total_cash is exist - process it [00:14:23]produce_requested_data done [00:14:23]produce_requested_data return {"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:14:23]process_action_free get_value [00:14:23]json_value_free [00:14:23]json_value_free done [00:14:23]process_json_proto returns [00:14:23]Send response to host [00:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:14:23]free response buf [00:14:23]execute_script done [00:14:23]execute_script returns [00:14:23]free content buf [00:14:23]Sock 5.Close socket [00:14:23]Sock 5.Thread stoped [00:14:23]accept exits with 10 [00:14:23]New connection [00:14:23]New thread 3067288932 created [00:14:23]Thread 3067145572 joined [00:14:23]Waiting for new connection... [00:14:23] Sock 10.Parse request [00:14:23]Sock 10.Check first char [00:14:23]Sock 10.First char is OK [00:14:23]request: POST /json_proto HTTP/1.0 [00:14:23]Method: POST [00:14:23]URL: /json_proto [00:14:23]Method is POST - this is cgi request [00:14:23]url: /json_proto [00:14:23]query_string will be loaded in cgi processing [00:14:23]execute_cgi json_proto POST (null) [00:14:23]execute_cgi path=json_proto method=POST [00:14:23]POST find Content-Length [00:14:23]Host: 172.17.47.195:8080 [00:14:23]Content-Length: 242 [00:14:23]Content-Type: application/json [00:14:23] [00:14:23]POST finish read [00:14:23]Found Content-Length = 242 [00:14:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0448\u0438\u0435\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:23]execute_script... [00:14:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0448\u0438\u0435\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:23]POST & json_proto [00:14:23]process_json_proto [00:14:23]json parsed OK: [00:14:23]protocol is kg_v1.0 [00:14:23]action value=close_shift [00:14:23]process_action close_shift [00:14:23]cmd_close_shift [00:14:23]MH_GetDate [00:14:23]Write to MH i2c: F0 00 00 E5 00 D4 [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: F0 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: F0 09 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: F0 09 00 E5 00 00 DF B2 F0 66 96 2E 95 66 83 [00:14:23]GetLastDocTimeStamp 1727050409 [00:14:23]current date 1727050463 [00:14:23]FM_GetShiftState [00:14:23]SAM_PROTO_GetShiftState [00:14:23]wFMCommunicate request_size=4 [00:14:23]MH_SAM_APDU [00:14:23]CAPDU: 80 13 01 00 [00:14:23]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:23]Read from MH i2c: E2 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 0E 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 00 62 EF 66 00 00 00 00 90 00 26 [00:14:23]RAPDU: 09 00 01 00 62 EF 66 00 00 00 00 90 00 [00:14:23]wFMCommunicate OK [00:14:23]SAM_PROTO_GetShiftState done [00:14:23]FM_GetShiftState done [00:14:23]KKMCreateCloseShiftDocument [00:14:23]Load OK [00:14:23]Malloc new data [00:14:23]MH_GetDate [00:14:23]Write to MH i2c: F0 00 00 E7 00 D6 [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: F0 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: F0 09 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: F0 09 00 E7 00 00 DF B2 F0 66 96 2E 95 66 85 [00:14:23]Malloc new data [00:14:23]Malloc new data [00:14:23]Malloc new data [00:14:23]Malloc new data [00:14:23]KKMCreateCloseShiftDocument OK [00:14:23]KKMSetCloseShiftData OK [00:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=65 [00:14:23]tlvbuf is 01ACEE80 [00:14:23]KKMLoadAndSignCloseShiftData [00:14:23]SAM_PROTO_ProcessDocument [00:14:23]wFMCommunicate request_size=9 [00:14:23]MH_SAM_APDU [00:14:23]CAPDU: 80 15 01 00 04 05 00 41 00 [00:14:23]Write to MH i2c: E2 0C 00 E8 00 80 15 01 00 04 00 05 00 41 00 00 00 B5 [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:14:23]Read from MH i2c: E2 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 E8 00 00 90 00 5C [00:14:23]RAPDU: 90 00 [00:14:23]wFMCommunicate OK [00:14:23]wFMCommunicate request_size=23 [00:14:23]MH_SAM_APDU [00:14:23]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:14:23]Write to MH i2c: E2 1A 00 E9 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 5E [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:23]Read from MH i2c: E2 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 E9 00 00 90 00 5D [00:14:23]RAPDU: 90 00 [00:14:23]wFMCommunicate OK [00:14:23]wFMCommunicate request_size=24 [00:14:23]MH_SAM_APDU [00:14:23]CAPDU: 80 15 02 00 13 FD 03 0F 00 D0 AD D1 88 D0 B8 D0 B5 D0 B2 20 D0 9A 2E 20 [00:14:23]Write to MH i2c: E2 1B 00 EA 00 80 15 02 00 13 00 FD 03 0F 00 D0 AD D1 88 D0 B8 D0 B5 D0 B2 20 D0 9A 2E 20 00 00 DC [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:23]Read from MH i2c: E2 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 EA 00 00 90 00 5E [00:14:23]RAPDU: 90 00 [00:14:23]wFMCommunicate OK [00:14:23]wFMCommunicate request_size=13 [00:14:23]MH_SAM_APDU [00:14:23]CAPDU: 80 15 02 00 08 F4 03 04 00 DF B2 F0 66 [00:14:23]Write to MH i2c: E2 10 00 EB 00 80 15 02 00 08 00 F4 03 04 00 DF B2 F0 66 00 00 5D [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:23]Read from MH i2c: E2 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 EB 00 00 90 00 5F [00:14:23]RAPDU: 90 00 [00:14:23]wFMCommunicate OK [00:14:23]wFMCommunicate request_size=25 [00:14:23]MH_SAM_APDU [00:14:23]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 [00:14:23]Write to MH i2c: E2 1C 00 EC 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 00 00 CD [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:23]Read from MH i2c: E2 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 [00:14:23]MH_I2C_Read... [00:14:23]Read from MH i2c: E2 03 00 EC 00 00 90 00 60 [00:14:23]RAPDU: 90 00 [00:14:23]wFMCommunicate OK [00:14:23]wFMCommunicate request_size=4 [00:14:23]MH_SAM_APDU [00:14:23]CAPDU: 80 15 03 00 [00:14:23]Write to MH i2c: E2 08 00 ED 00 80 15 03 00 00 00 00 00 6E [00:14:23]Write i2c OK [00:14:23]MH_I2C_Read... [00:14:24]OFD Sender: No OFD packet to send [00:14:24]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:14:24]Read from MH i2c: E2 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: E2 FD 00 [00:14:24]MH_I2C_Read... [00:14:24]Read from MH i2c: E2 FD 00 ED 00 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5C 1E 00 00 0E 04 04 00 46 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 90 00 BE [00:14:24]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5C 1E 00 00 0E 04 04 00 46 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 90 00 [00:14:24]wFMCommunicate OK [00:14:24]SAM_PROTO_ProcessDocument answer len = 1275 [00:14:24]SAM_PROTO_ProcessDocument remain to read = 1027 [00:14:24]wFMCommunicate request_size=4 [00:14:24]MH_SAM_APDU [00:14:24]CAPDU: 80 17 00 00 [00:14:24]Write to MH i2c: E2 08 00 EE 00 80 17 00 00 00 00 00 00 6E [00:14:24]Write i2c OK [00:14:24]MH_I2C_Read... [00:14:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:25]Read from MH i2c: E2 [00:14:25]MH_I2C_Read... [00:14:25]Read from MH i2c: E2 FD 00 [00:14:25]MH_I2C_Read... [00:14:25]Read from MH i2c: E2 FD 00 EE 00 00 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E 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 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 86 [00:14:25]RAPDU: 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E 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 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:14:25]wFMCommunicate OK [00:14:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:14:25]SAM_PROTO_ProcessDocument remain to read = 777 [00:14:25]wFMCommunicate request_size=4 [00:14:25]MH_SAM_APDU [00:14:25]CAPDU: 80 17 00 00 [00:14:25]Write to MH i2c: E2 08 00 EF 00 80 17 00 00 00 00 00 00 6F [00:14:25]Write i2c OK [00:14:25]MH_I2C_Read... [00:14:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:25]Read from MH i2c: E2 [00:14:25]MH_I2C_Read... [00:14:25]Read from MH i2c: E2 FD 00 [00:14:25]MH_I2C_Read... [00:14:25]Read from MH i2c: E2 FD 00 EF 00 00 F7 03 00 00 EF 03 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 90 00 D1 [00:14:26]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:14:26]wFMCommunicate OK [00:14:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:14:26]SAM_PROTO_ProcessDocument remain to read = 527 [00:14:26]wFMCommunicate request_size=4 [00:14:26]MH_SAM_APDU [00:14:26]CAPDU: 80 17 00 00 [00:14:26]Write to MH i2c: E2 08 00 F0 00 80 17 00 00 00 00 00 00 70 [00:14:26]Write i2c OK [00:14:26]MH_I2C_Read... [00:14:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:26]Read from MH i2c: E2 [00:14:26]MH_I2C_Read... [00:14:26]Read from MH i2c: E2 FD 00 [00:14:26]MH_I2C_Read... [00:14:26]Read from MH i2c: E2 FD 00 F0 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [00:14:26]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 1014 (1) - 0,50% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1007 (9) - суммы НСП [00:14:28] 1014 (1) - 1,50% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1132 (141) - счетчики операций «возврат расхода» [00:14:28] 1135 (4) - 0 - количество чеков по признаку расчетов [00:14:28] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:14:28] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:14:28] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:14:28] 1024 (117) - суммы налогов [00:14:28] 1006 (9) - суммы НДС [00:14:28] 1010 (1) - 0% - код ставки НДС [00:14:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:28] 1006 (9) - суммы НДС [00:14:28] 1010 (1) - 12% - код ставки НДС [00:14:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:28] 1007 (9) - суммы НСП [00:14:28] 1014 (1) - 0% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1007 (9) - суммы НСП [00:14:28] 1014 (1) - 1% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1007 (9) - суммы НСП [00:14:28] 1014 (1) - 2% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1007 (9) - суммы НСП [00:14:28] 1014 (1) - 3% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1007 (9) - суммы НСП [00:14:28] 1014 (1) - 5% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1007 (9) - суммы НСП [00:14:28] 1014 (1) - 0,50% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1007 (9) - суммы НСП [00:14:28] 1014 (1) - 1,50% - код ставки НСП [00:14:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:28] 1133 (588) - - счетчики коррекции - не используются [00:14:28]1077 (6) - 181785808108221 - ФПД [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1209 (04B9) [00:14:28]Malloc new data [00:14:28]Processing tag 1041 (0411) [00:14:28]Processing tag 1040 (0410) [00:14:28]Malloc new data [00:14:28]Processing tag 1038 (040E) [00:14:28]Malloc new data [00:14:28]Processing tag 1118 (045E) [00:14:28]Malloc new data [00:14:28]Processing tag 1111 (0457) [00:14:28]Malloc new data [00:14:28]Processing tag 1194 (04AA) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1134 (046E) [00:14:28]Malloc new data [00:14:28]Processing tag 1129 (0469) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1135 (046F) [00:14:28]Malloc new data [00:14:28]Processing tag 1201 (04B1) [00:14:28]Malloc new data [00:14:28]Processing tag 1136 (0470) [00:14:28]Malloc new data [00:14:28]Processing tag 1138 (0472) [00:14:28]Malloc new data [00:14:28]Processing tag 1024 (0400) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1006 (03EE) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1010 (03F2) [00:14:28]Malloc new data [00:14:28]Processing tag 1011 (03F3) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1006 (03EE) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1010 (03F2) [00:14:28]Malloc new data [00:14:28]Processing tag 1011 (03F3) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]SetTLVBufToDocument err=0 [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1130 (046A) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1135 (046F) [00:14:28]Malloc new data [00:14:28]Processing tag 1201 (04B1) [00:14:28]Malloc new data [00:14:28]Processing tag 1136 (0470) [00:14:28]Malloc new data [00:14:28]Processing tag 1138 (0472) [00:14:28]Malloc new data [00:14:28]Processing tag 1024 (0400) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1006 (03EE) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1010 (03F2) [00:14:28]Malloc new data [00:14:28]Processing tag 1011 (03F3) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1006 (03EE) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1010 (03F2) [00:14:28]Malloc new data [00:14:28]Processing tag 1011 (03F3) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]SetTLVBufToDocument err=0 [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1131 (046B) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1135 (046F) [00:14:28]Malloc new data [00:14:28]Processing tag 1201 (04B1) [00:14:28]Malloc new data [00:14:28]Processing tag 1136 (0470) [00:14:28]Malloc new data [00:14:28]Processing tag 1138 (0472) [00:14:28]Malloc new data [00:14:28]Processing tag 1024 (0400) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1006 (03EE) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1010 (03F2) [00:14:28]Malloc new data [00:14:28]Processing tag 1011 (03F3) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1006 (03EE) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1010 (03F2) [00:14:28]Malloc new data [00:14:28]Processing tag 1011 (03F3) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]SetTLVBufToDocument err=0 [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1132 (046C) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1135 (046F) [00:14:28]Malloc new data [00:14:28]Processing tag 1201 (04B1) [00:14:28]Malloc new data [00:14:28]Processing tag 1136 (0470) [00:14:28]Malloc new data [00:14:28]Processing tag 1138 (0472) [00:14:28]Malloc new data [00:14:28]Processing tag 1024 (0400) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1006 (03EE) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1010 (03F2) [00:14:28]Malloc new data [00:14:28]Processing tag 1011 (03F3) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1006 (03EE) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1010 (03F2) [00:14:28]Malloc new data [00:14:28]Processing tag 1011 (03F3) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:28]Malloc new data [00:14:28]SetTLVBufToDocument err=0 [00:14:28]Processing tag 1007 (03EF) [00:14:28]Load OK [00:14:28]SetTLVBufToDocument [00:14:28]Processing tag 1014 (03F6) [00:14:28]Malloc new data [00:14:28]Processing tag 1015 (03F7) [00:14:29]Malloc new data [00:14:29]SetTLVBufToDocument err=0 [00:14:29]SetTLVBufToDocument err=0 [00:14:29]SetTLVBufToDocument err=0 [00:14:29]Processing tag 1133 (046D) [00:14:29]Malloc new data [00:14:29]SetTLVBufToDocument err=0 [00:14:29]Processing tag 1077 (0435) [00:14:29]Malloc new data [00:14:29]SetTLVBufToDocument err=0 [00:14:29]Malloc new data [00:14:29]SAM_PROTO_GetFMData [00:14:29]wFMCommunicate request_size=4 [00:14:29]MH_SAM_APDU [00:14:29]CAPDU: 80 13 03 00 [00:14:29]Write to MH i2c: E2 08 00 F3 00 80 13 03 00 00 00 00 00 72 [00:14:29]OFD Sender: No OFD packet to send [00:14:29]Write i2c OK [00:14:29]MH_I2C_Read... [00:14:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:29]Read from MH i2c: E2 [00:14:29]MH_I2C_Read... [00:14:29]Read from MH i2c: E2 FD 00 [00:14:29]MH_I2C_Read... [00:14:29]Read from MH i2c: E2 FD 00 F3 00 00 C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 BA [00:14:29]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [00:14:30]wFMCommunicate OK [00:14:30]wFMCommunicate request_size=4 [00:14:30]MH_SAM_APDU [00:14:30]CAPDU: 80 17 00 00 [00:14:30]Write to MH i2c: E2 08 00 F4 00 80 17 00 00 00 00 00 00 74 [00:14:30]Write i2c OK [00:14:30]MH_I2C_Read... [00:14:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:30]Read from MH i2c: E2 [00:14:30]MH_I2C_Read... [00:14:30]Read from MH i2c: E2 FD 00 [00:14:30]MH_I2C_Read... [00:14:30]Read from MH i2c: E2 FD 00 F4 00 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 B9 [00:14:30]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [00:14:30]wFMCommunicate OK [00:14:30]wFMCommunicate request_size=4 [00:14:30]MH_SAM_APDU [00:14:30]CAPDU: 80 17 00 00 [00:14:30]Write to MH i2c: E2 08 00 F5 00 80 17 00 00 00 00 00 00 75 [00:14:30]Write i2c OK [00:14:30]MH_I2C_Read... [00:14:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:31]Read from MH i2c: E2 [00:14:31]MH_I2C_Read... [00:14:31]Read from MH i2c: E2 FD 00 [00:14:31]MH_I2C_Read... [00:14:31]Read from MH i2c: E2 FD 00 F5 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [00:14:31]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:31]wFMCommunicate OK [00:14:31]wFMCommunicate request_size=4 [00:14:31]MH_SAM_APDU [00:14:31]CAPDU: 80 17 00 00 [00:14:31]Write to MH i2c: E2 08 00 F6 00 80 17 00 00 00 00 00 00 76 [00:14:31]Write i2c OK [00:14:31]MH_I2C_Read... [00:14:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:31]Read from MH i2c: E2 [00:14:31]MH_I2C_Read... [00:14:31]Read from MH i2c: E2 FD 00 [00:14:31]MH_I2C_Read... [00:14:31]Read from MH i2c: E2 FD 00 F6 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [00:14:32]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:32]wFMCommunicate OK [00:14:32]wFMCommunicate request_size=4 [00:14:32]MH_SAM_APDU [00:14:32]CAPDU: 80 17 00 00 [00:14:32]Write to MH i2c: E2 08 00 F7 00 80 17 00 00 00 00 00 00 77 [00:14:32]Write i2c OK [00:14:32]MH_I2C_Read... [00:14:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:14:32]Read from MH i2c: E2 [00:14:32]MH_I2C_Read... [00:14:32]Read from MH i2c: E2 DE 00 [00:14:32]MH_I2C_Read... [00:14:32]Read from MH i2c: E2 DE 00 F7 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 56 [00:14:32]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:33]wFMCommunicate OK [00:14:33]SAM_PROTO_GetFMData done [00:14:33]Malloc new data [00:14:33]Malloc new data [00:14:33]Malloc new data [00:14:33]Malloc new data [00:14:33]KKMLoadAndSignCloseShiftData err=0 [00:14:33]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Эшиев К. 23.09.2024 00:14 Смена: 70 РНМ: 0000000000190446 ЗНМ: 0300000041 СНО: Общий режим Чеков за смену: 169 ФД за смену: 171 Всего чеков: 169 ИТОГИ ПРИХОД Чеков: 168 Общий итог: 177520.43 Итого наличными: 162611.00 Итого безнал.: 14909.43 НДС 0% : 0.00 НДС 12% : 18857.35 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1571.32 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 339.00 Итого наличными: 339.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 36.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3.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 Нал. в кассе: 162272.00 НС Приход: 8288137.99 НС Возвр.Прихода: 234855.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 7772 ФМ: 0000000002094258 ФПД: 181785808108221 [00:14:33]StoreToDocumentArchive [00:14:33]shift 70 fd 7772 [00:14:33]save to /storage/0070/doc_00007772 [00:14:33]save last doc name /storage/0070/doc_00007772 to /storage/kkm_last_doc_name [00:14:33]save OK [00:14:33]Clear old archive folders... [00:14:33]Remove dir /storage/0010 [00:14:33]opendir ok [00:14:33]file . [00:14:33]file .. [00:14:33]file doc_1727050416 [00:14:33]remove file /storage/0010/doc_1727050416 [00:14:33]remove dir /storage/0010 [00:14:33]NVStorageSaveData kkm_registers [00:14:33]File name is /storage/kkm_registers [00:14:33]Write 24 bytes [00:14:33]NVStorageSaveData done [00:14:33]NVStorageSaveData kkm_registers [00:14:33]File name is /storage/kkm_registers [00:14:33]Write 24 bytes [00:14:33]NVStorageSaveData done [00:14:33]ProcessDocumentItem done err = 0, tmpTLVsize=1379 [00:14:33]tlvbuf is 01B3C050 [00:14:33]SAM_PROTO_ClearQueue [00:14:33]wFMCommunicate request_size=4 [00:14:33]MH_SAM_APDU [00:14:33]CAPDU: 80 09 00 00 [00:14:33]Write to MH i2c: E2 08 00 F8 00 80 09 00 00 00 00 00 00 6A [00:14:33]Write i2c OK [00:14:33]MH_I2C_Read... [00:14:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:33]Read from MH i2c: E2 [00:14:33]MH_I2C_Read... [00:14:33]Read from MH i2c: E2 03 00 [00:14:33]MH_I2C_Read... [00:14:33]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [00:14:33]RAPDU: 90 00 [00:14:33]wFMCommunicate OK [00:14:33]SAM_PROTO_ClearQueue done [00:14:33]KKMCreateOFDPacket [00:14:33]OFDProtocolAddRootSTLVToBuf [00:14:33]FM_MakeSignedData [00:14:33]FM_MakeSignedData [00:14:33]SAM_PROTO_SignData [00:14:33]wFMCommunicate request_size=4 [00:14:33]MH_SAM_APDU [00:14:33]CAPDU: 80 0D 01 02 [00:14:33]Write to MH i2c: E2 08 00 F9 00 80 0D 01 02 00 00 00 00 72 [00:14:33]Write i2c OK [00:14:33]MH_I2C_Read... [00:14:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:33]Read from MH i2c: E2 [00:14:33]MH_I2C_Read... [00:14:33]Read from MH i2c: E2 03 00 [00:14:33]MH_I2C_Read... [00:14:33]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [00:14:33]RAPDU: 90 00 [00:14:33]wFMCommunicate OK [00:14:33]wFMCommunicate request_size=255 [00:14:33]MH_SAM_APDU [00:14:33]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 0F 00 D0 AD D1 88 D0 B8 D0 B5 D0 B2 20 D0 9A 2E 20 F4 03 04 00 DF B2 F0 66 0E 04 04 00 46 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 DB 04 6E 04 04 00 A9 00 00 00 69 04 A4 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 27 C6 1C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 [00:14:33]Write to MH i2c: E2 02 01 FA 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 0F 00 D0 AD D1 88 D0 B8 D0 B5 D0 B2 20 D0 9A 2E 20 F4 03 04 00 DF B2 F0 66 0E 04 04 00 46 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 DB 04 6E 04 04 00 A9 00 00 00 69 04 A4 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 27 C6 1C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 00 00 94 [00:14:33]Write i2c OK [00:14:33]MH_I2C_Read... [00:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:34]Read from MH i2c: E2 [00:14:34]MH_I2C_Read... [00:14:34]Read from MH i2c: E2 03 00 [00:14:34]MH_I2C_Read... [00:14:34]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [00:14:34]RAPDU: 90 00 [00:14:34]wFMCommunicate OK [00:14:34]wFMCommunicate request_size=255 [00:14:34]MH_SAM_APDU [00:14:34]CAPDU: 80 0D 02 02 FA 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CC 65 02 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 OFD Sender: No OFD packet to send [00:14:34]02 00 6C 84 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E 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 2C 01 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:14:34]Write to MH i2c: E2 02 01 FB 00 80 0D 02 02 FA 00 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CC 65 02 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E 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 2C 01 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 51 [00:14:34]Write i2c OK [00:14:34]MH_I2C_Read... [00:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:35]Read from MH i2c: E2 [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: E2 03 00 [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [00:14:35]RAPDU: 90 00 [00:14:35]wFMCommunicate OK [00:14:35]wFMCommunicate request_size=255 [00:14:35]MH_SAM_APDU [00:14:35]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 [00:14:35]Write to MH i2c: E2 02 01 FC 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 45 [00:14:35]Write i2c OK [00:14:35]MH_I2C_Read... [00:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:35]Read from MH i2c: E2 [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: E2 03 00 [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [00:14:35]RAPDU: 90 00 [00:14:35]wFMCommunicate OK [00:14:35]wFMCommunicate request_size=255 [00:14:35]MH_SAM_APDU [00:14:35]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 [00:14:36]Write to MH i2c: E2 02 01 FD 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 3A [00:14:36]Write i2c OK [00:14:36]MH_I2C_Read... [00:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:36]Read from MH i2c: E2 [00:14:36]MH_I2C_Read... [00:14:36]Read from MH i2c: E2 03 00 [00:14:36]MH_I2C_Read... [00:14:36]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [00:14:36]RAPDU: 90 00 [00:14:36]wFMCommunicate OK [00:14:36]wFMCommunicate request_size=255 [00:14:36]MH_SAM_APDU [00:14:36]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 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 [00:14:37]Write to MH i2c: E2 02 01 FE 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 0B [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 03 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [00:14:37]RAPDU: 90 00 [00:14:37]wFMCommunicate OK [00:14:37]wFMCommunicate request_size=138 [00:14:37]MH_SAM_APDU [00:14:37]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 5C 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 35 04 06 00 A5 55 4E 84 7A BD [00:14:37]Write to MH i2c: E2 8D 00 FF 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 5C 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 35 04 06 00 A5 55 4E 84 7A BD 00 00 2E [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:38]Read from MH i2c: E2 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 03 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [00:14:38]RAPDU: 90 00 [00:14:38]wFMCommunicate OK [00:14:38]wFMCommunicate request_size=4 [00:14:38]MH_SAM_APDU [00:14:38]CAPDU: 80 0D 03 02 [00:14:38]Write to MH i2c: E2 08 00 00 01 80 0D 03 02 00 00 00 00 7C [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:38]Read from MH i2c: E2 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 0B 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 0B 00 00 01 00 AB EC FE BE 65 6D 86 39 90 00 61 [00:14:38]RAPDU: AB EC FE BE 65 6D 86 39 90 00 [00:14:38]wFMCommunicate OK [00:14:38]SAM_PROTO_SignData done [00:14:38]FM_MakeSignedData done [00:14:38]CreateOFDProtocolMessage [00:14:38]wFMCommunicate request_size=4 [00:14:38]MH_SAM_APDU [00:14:38]CAPDU: 80 11 00 00 [00:14:38]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:38]Read from MH i2c: E2 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 17 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 CD [00:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:14:38]wFMCommunicate OK [00:14:38]CreateOFDProtocolMessage done [00:14:38]OFDSenderStorePacket 7772 [00:14:38]StoreOFDPacket docnum=7772 [00:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 77 05 00 00 DA 06 6F 05 78 0F 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 0F 00 D0 AD D1 88 D0 B8 D0 B5 D0 B2 20 D0 9A 2E 20 F4 03 04 00 DF B2 F0 66 0E 04 04 00 46 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 DB 04 6E 04 04 00 A9 00 00 00 69 04 A4 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 27 C6 1C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CC 65 02 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E 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 2C 01 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 5C 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 35 04 06 00 A5 55 4E 84 7A BD AB EC FE BE 65 6D 86 39 [00:14:38]CheckFolder [00:14:38]dirname=/storage/ofd_packets [00:14:38]CheckFolder done [00:14:38]ProducePacketName [00:14:38]name=ofd_packets/00007772 [00:14:38]NVStorageSaveData ofd_packets/00007772 [00:14:38]File name is /storage/ofd_packets/00007772 [00:14:38]Write 1429 bytes [00:14:38]NVStorageSaveData done [00:14:38]OFDSenderStorePacket done [00:14:38]KKMCreateOFDPacket done [00:14:38]NVStorageSaveData kkm_last_timestamp [00:14:38]File name is /storage/kkm_last_timestamp [00:14:38]Write 4 bytes [00:14:38]NVStorageSaveData done [00:14:38]ExternCall_PrintAddStr [00:14:38]wPrintStart [00:14:38]Write to MH i2c: 01 00 00 02 01 03 [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: 01 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: 01 07 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [00:14:38]RasterBufferAndPrint [00:14:38]line Отчет о закрытии смены [00:14:38]line ФФД: 1.0 [00:14:38]line ИНН: 02508201610067 [00:14:38]line Кассир: Эшиев К. [00:14:38]line 23.09.2024 00:14 [00:14:38]line Смена: 70 [00:14:38]line РНМ: 0000000000190446 [00:14:38]line ЗНМ: 0300000041 [00:14:38]line СНО: Общий режим [00:14:38]line Чеков за смену: 169 [00:14:38]line ФД за смену: 171 [00:14:38]line Всего чеков: 169 [00:14:38]line ИТОГИ ПРИХОД [00:14:38]line Чеков: 168 [00:14:38]line Общий итог: 177520.43 [00:14:38]line Итого наличными: 162611.00 [00:14:38]line Итого безнал.: 14909.43 [00:14:38]line НДС 0% : 0.00 [00:14:38]line НДС 12% : 18857.35 [00:14:38]line НСП 0% : 0.00 [00:14:38]line НСП 1,50% : 0.00 [00:14:38]line НСП 0,50% : 0.00 [00:14:38]line НСП 5% : 0.00 [00:14:38]line НСП 3% : 0.00 [00:14:38]line НСП 2% : 0.00 [00:14:38]line НСП 1% : 1571.32 [00:14:38]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:14:38]line Чеков: 1 [00:14:38]line Общий итог: 339.00 [00:14:38]line Итого наличными: 339.00 [00:14:38]line Итого безнал.: 0.00 [00:14:38]line НДС 0% : 0.00 [00:14:38]line НДС 12% : 36.00 [00:14:38]line НСП 0% : 0.00 [00:14:38]line НСП 1,50% : 0.00 [00:14:38]line НСП 0,50% : 0.00 [00:14:38]line НСП 5% : 0.00 [00:14:38]line НСП 3% : 0.00 [00:14:38]line НСП 2% : 0.00 [00:14:38]line НСП 1% : 3.00 [00:14:38]line ИТОГИ РАСХОД [00:14:38]line Чеков: 0 [00:14:38]line Общий итог: 0.00 [00:14:38]line Итого наличными: 0.00 [00:14:39]line Итого безнал.: 0.00 [00:14:39]line НДС 0% : 0.00 [00:14:39]line НДС 12% : 0.00 [00:14:39]line НСП 0% : 0.00 [00:14:39]line НСП 1,50% : 0.00 [00:14:39]line НСП 0,50% : 0.00 [00:14:39]line НСП 5% : 0.00 [00:14:39]line НСП 3% : 0.00 [00:14:39]line НСП 2% : 0.00 [00:14:39]line НСП 1% : 0.00 [00:14:39]line ИТОГИ ВОЗВРАТ РАСХОДА [00:14:39]line Чеков: 0 [00:14:39]line Общий итог: 0.00 [00:14:39]line Итого наличными: 0.00 [00:14:39]line Итого безнал.: 0.00 [00:14:39]line НДС 0% : 0.00 [00:14:39]line НДС 12% : 0.00 [00:14:39]line НСП 0% : 0.00 [00:14:39]line НСП 1,50% : 0.00 [00:14:39]line НСП 0,50% : 0.00 [00:14:39]line НСП 5% : 0.00 [00:14:39]line НСП 3% : 0.00 [00:14:39]line НСП 2% : 0.00 [00:14:39]line НСП 1% : 0.00 [00:14:39]line Сумма внесений: 0.00 [00:14:39]line Сумма выплат: 0.00 [00:14:39]line Нал. в кассе: 162272.00 [00:14:39]line НС Приход: 8288137.99 [00:14:39]line НС Возвр.Прихода: 234855.00 [00:14:39]line НС Расход: 0.00 [00:14:39]line НС Возвр.Расхода: 0.00 [00:14:39]line ФД: 7772 [00:14:39]line ФМ: 0000000002094258 [00:14:39]line ФПД: 181785808108221 [00:14:39]OFD Sender: Processing packet 7772 [packets to send 51, broken 50] [00:14:39]ProducePacketName [00:14:39]name=ofd_packets/00007772 [00:14:39]OFD Sender: To server: pG, [00:14:39]CommunicateWithHost lk.salyk.kg:30040 [00:14:39]ConnectInit lk.salyk.kg [00:14:39]written 0, free lines is 4095 [00:14:39]Write to MH i2c: 01 00 00 52 01 53 [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: 01 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: 01 07 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: 01 07 00 52 01 00 00 00 00 00 C4 0A 28 [00:14:39]RasterBufferAndPrint [00:14:39]line [00:14:39]line [00:14:39]line [00:14:39]line [00:14:39]line [00:14:39]written 0, free lines is 2819 [00:14:39]MH_Cut [00:14:39]Write to MH i2c: D1 01 00 59 01 01 2C [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: D1 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: D1 01 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: D1 01 00 59 01 00 2B [00:14:39]Write to MH i2c: 01 00 00 5A 01 5B [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** Cut start [00:14:40]*** Purtial cut [00:14:40]*** Stage 1: CUTSNS_PIN = 1 [00:14:41]Read from MH i2c: 01 [00:14:41]MH_I2C_Read... [00:14:41]*** Stop cut motor [00:14:41]*** Cut end [00:14:41]Read from MH i2c: 01 07 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [00:14:41]process_action close_shift done [00:14:41]requested_data is exist [00:14:41]produce_requested_data [00:14:41]requested_item fd.num is exist - process it [00:14:41]SAM_PROTO_GetFieldsCounters [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 13 00 00 [00:14:41]Write to MH i2c: E2 08 00 5B 01 80 13 00 00 00 00 00 00 D8 [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 62 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 62 00 5B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5C 1E 00 00 0E 04 04 00 46 00 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 B2 [00:14:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5C 1E 00 00 0E 04 04 00 46 00 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:14:41]wFMCommunicate OK [00:14:41]SAM_PROTO_GetFieldsCounters done [00:14:41]requested_item shift.num is exist - process it [00:14:41]requested_item shift.opened is exist - process it [00:14:41]req_shift_opened [00:14:41]FM_GetShiftState [00:14:41]SAM_PROTO_GetShiftState [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 13 01 00 [00:14:41]Write to MH i2c: E2 08 00 5C 01 80 13 01 00 00 00 00 00 DA [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 0E 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 0E 00 5C 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E5 [00:14:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:41]wFMCommunicate OK [00:14:41]SAM_PROTO_GetShiftState done [00:14:41]FM_GetShiftState done [00:14:41]req_shift_opened done [00:14:41]requested_item shift.open_date is exist - process it [00:14:41]req_shift_open_date [00:14:41]FM_GetShiftState [00:14:41]SAM_PROTO_GetShiftState [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 13 01 00 [00:14:41]Write to MH i2c: E2 08 00 5D 01 80 13 01 00 00 00 00 00 DB [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 0E 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 0E 00 5D 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E6 [00:14:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:41]wFMCommunicate OK [00:14:41]SAM_PROTO_GetShiftState done [00:14:41]FM_GetShiftState done [00:14:41]req_shift_open_date done [00:14:41]produce_requested_data done [00:14:41]produce_requested_data return {"fd.num":7772,"shift.num":70,"shift.opened":0,"shift.open_date":0} [00:14:41]process_action_free close_shift [00:14:41]json_value_free [00:14:41]json_value_free done [00:14:41]process_json_proto returns [00:14:41]Send response to host [00:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":7772,"shift.num":70,"shift.opened":0,"shift.open_date":0}}} [00:14:41]free response buf [00:14:41]execute_script done [00:14:41]execute_script returns [00:14:41]free content buf [00:14:41]Sock 10.Close socket [00:14:41]Sock 10.Thread stoped [00:14:43]Connected sock=11 [00:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 77 05 00 00 DA 06 6F 05 78 0F 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 0F 00 D0 AD D1 88 D0 B8 D0 B5 D0 B2 20 D0 9A 2E 20 F4 03 04 00 DF B2 F0 66 0E 04 04 00 46 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 DB 04 6E 04 04 00 A9 00 00 00 69 04 A4 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 27 C6 1C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CC 65 02 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E 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 2C 01 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 5C 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 35 04 06 00 A5 55 4E 84 7A BD AB EC FE BE 65 6D 86 39 [00:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 00 6C 47 00 81 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5C 1E 00 00 F4 03 04 00 B3 5D F0 66 B6 04 01 00 00 CE FD 32 2E 3E 7D 9B 89 [00:14:49]CommunicateWithHost err = 0 [00:14:49]CheckOFDResponse [00:14:49]1017 (14) - 77093643461234 [00:14:49]1041 (16) - 0000000002094258 [00:14:49]1040 (4) - 7772 [00:14:49]1012 (4) - 22.09.2024 18:10 [00:14:49]1206 (1) - 0 [00:14:49]OFD Sender: Remove packet 7772 [00:14:49]ProducePacketName [00:14:49]name=ofd_packets/00007772 [00:14:49]NVStorageDeleteData [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]recv_with_timeout no data received [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:56]recv_with_timeout no data received [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:11]recv_with_timeout no data received [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]recv_with_timeout no data received [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:11]recv_with_timeout no data received [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:43]recv_with_timeout no data received [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]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:50]recv_with_timeout no data received [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:17]accept exits with 5 [00:20:17]New connection [00:20:17]New thread 3067145572 created [00:20:17]Thread 3067288932 joined [00:20:17]Waiting for new connection... [00:20:17] Sock 5.Parse request [00:20:17]Sock 5.Check first char [00:20:17]Sock 5.First char is OK [00:20:17]request: POST /json_proto HTTP/1.0 [00:20:17]Method: POST [00:20:17]URL: /json_proto [00:20:17]Method is POST - this is cgi request [00:20:17]url: /json_proto [00:20:17]query_string will be loaded in cgi processing [00:20:17]execute_cgi json_proto POST (null) [00:20:17]execute_cgi path=json_proto method=POST [00:20:17]POST find Content-Length [00:20:17]Host: 172.17.47.195:8080 [00:20:17]Content-Length: 215 [00:20:17]Content-Type: application/json [00:20:17] [00:20:17]POST finish read [00:20:17]Found Content-Length = 215 [00:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:17]execute_script... [00:20:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:17]POST & json_proto [00:20:17]process_json_proto [00:20:17]json parsed OK: [00:20:17]protocol is kg_v1.0 [00:20:17]action value=get_value [00:20:17]process_action get_value [00:20:17]cmd_get_value [00:20:17]process_action get_value done [00:20:17]requested_data is exist [00:20:17]produce_requested_data [00:20:17]requested_item kkm.sn is exist - process it [00:20:17]requested_item kkm.ver is exist - process it [00:20:17]requested_item fm.sn is exist - process it [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 11 00 00 [00:20:17]Write to MH i2c: E2 08 00 5E 01 80 11 00 00 00 00 00 00 D9 [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 17 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 17 00 5E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 2A [00:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:20:17]wFMCommunicate OK [00:20:17]requested_item fd.num is exist - process it [00:20:17]SAM_PROTO_GetFieldsCounters [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 13 00 00 [00:20:17]Write to MH i2c: E2 08 00 5F 01 80 13 00 00 00 00 00 00 DC [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 62 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 62 00 5F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5C 1E 00 00 0E 04 04 00 46 00 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 B6 [00:20:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5C 1E 00 00 0E 04 04 00 46 00 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:20:18]wFMCommunicate OK [00:20:18]SAM_PROTO_GetFieldsCounters done [00:20:18]requested_item shift.num is exist - process it [00:20:18]requested_item shift.opened is exist - process it [00:20:18]req_shift_opened [00:20:18]FM_GetShiftState [00:20:18]SAM_PROTO_GetShiftState [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 13 01 00 [00:20:18]Write to MH i2c: E2 08 00 60 01 80 13 01 00 00 00 00 00 DE [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 0E 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 0E 00 60 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E9 [00:20:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:18]wFMCommunicate OK [00:20:18]SAM_PROTO_GetShiftState done [00:20:18]FM_GetShiftState done [00:20:18]req_shift_opened done [00:20:18]requested_item shift.open_date is exist - process it [00:20:18]req_shift_open_date [00:20:18]FM_GetShiftState [00:20:18]SAM_PROTO_GetShiftState [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 13 01 00 [00:20:18]Write to MH i2c: E2 08 00 61 01 80 13 01 00 00 00 00 00 DF [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 0E 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 0E 00 61 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EA [00:20:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:18]wFMCommunicate OK [00:20:18]SAM_PROTO_GetShiftState done [00:20:18]FM_GetShiftState done [00:20:18]req_shift_open_date done [00:20:18]produce_requested_data done [00:20:18]produce_requested_data return {"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7772,"shift.num":70,"shift.opened":0,"shift.open_date":0} [00:20:18]process_action_free get_value [00:20:18]json_value_free [00:20:18]json_value_free done [00:20:18]process_json_proto returns [00:20:18]Send response to host [00:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000041","kkm.ver":"v1.0","fm.sn":"0000000002094258","fd.num":7772,"shift.num":70,"shift.opened":0,"shift.open_date":0}}} [00:20:18]free response buf [00:20:18]execute_script done [00:20:18]execute_script returns [00:20:18]free content buf [00:20:18]Sock 5.Close socket [00:20:18]Sock 5.Thread stoped [00:20:18]accept exits with 9 [00:20:18]New connection [00:20:18]New thread 3067288932 created [00:20:18]Thread 3067145572 joined [00:20:18]Waiting for new connection... [00:20:18] Sock 9.Parse request [00:20:18]Sock 9.Check first char [00:20:18]Sock 9.First char is OK [00:20:18]request: POST /json_proto HTTP/1.0 [00:20:18]Method: POST [00:20:18]URL: /json_proto [00:20:18]Method is POST - this is cgi request [00:20:18]url: /json_proto [00:20:18]query_string will be loaded in cgi processing [00:20:18]execute_cgi json_proto POST (null) [00:20:18]execute_cgi path=json_proto method=POST [00:20:18]POST find Content-Length [00:20:18]Host: 172.17.47.195:8080 [00:20:18]Content-Length: 331 [00:20:18]Content-Type: application/json [00:20:18] [00:20:18]POST finish read [00:20:18]Found Content-Length = 331 [00:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:18]execute_script... [00:20:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:18]POST & json_proto [00:20:18]process_json_proto [00:20:18]json parsed OK: [00:20:18]protocol is kg_v1.0 [00:20:18]action value=get_value [00:20:18]process_action get_value [00:20:18]cmd_get_value [00:20:18]process_action get_value done [00:20:18]requested_data is exist [00:20:18]produce_requested_data [00:20:18]requested_item fm.sale.total is exist - process it [00:20:18]SAM_PROTO_GetFMData [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 13 03 00 [00:20:18]Write to MH i2c: E2 08 00 62 01 80 13 03 00 00 00 00 00 E2 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 FD 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 FD 00 62 01 00 C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 2A [00:20:18]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [00:20:18]wFMCommunicate OK [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 17 00 00 [00:20:18]Write to MH i2c: E2 08 00 63 01 80 17 00 00 00 00 00 00 E4 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 FD 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 FD 00 63 01 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 29 [00:20:19]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 [00:20:19]wFMCommunicate OK [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 17 00 00 [00:20:19]Write to MH i2c: E2 08 00 64 01 80 17 00 00 00 00 00 00 E5 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 FD 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 FD 00 64 01 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [00:20:19]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:19]wFMCommunicate OK [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 17 00 00 [00:20:19]Write to MH i2c: E2 08 00 65 01 80 17 00 00 00 00 00 00 E6 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 FD 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 FD 00 65 01 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [00:20:19]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:19]wFMCommunicate OK [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 17 00 00 [00:20:19]Write to MH i2c: E2 08 00 66 01 80 17 00 00 00 00 00 00 E7 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 DE 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 DE 00 66 01 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C6 [00:20:19]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:19]wFMCommunicate OK [00:20:19]SAM_PROTO_GetFMData done [00:20:19]requested_item fm.sale_refund.total is exist - process it [00:20:19]requested_item fm.buy.total is exist - process it [00:20:19]requested_item shift.sale.total is exist - process it [00:20:19]SAM_PROTO_GetShiftData [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 13 02 00 [00:20:19]Write to MH i2c: E2 08 00 67 01 80 13 02 00 00 00 00 00 E6 [00:20:20]Write i2c OK [00:20:20]MH_I2C_Read... [00:20:20]OFD Sender: No OFD packet to send [00:20:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:20]Read from MH i2c: E2 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 67 01 00 B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 16 [00:20:20]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 EB DF 0E 01 70 04 03 00 EC 1F F8 72 04 03 00 FF BF 16 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 27 C6 1C 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 CC 65 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 6C 84 70 04 02 00 6C 84 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 10 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:20:20]wFMCommunicate OK [00:20:20]wFMCommunicate request_size=4 [00:20:20]MH_SAM_APDU [00:20:20]CAPDU: 80 17 00 00 [00:20:20]Write to MH i2c: E2 08 00 68 01 80 17 00 00 00 00 00 00 E9 [00:20:20]Write i2c OK [00:20:20]MH_I2C_Read... [00:20:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:20]Read from MH i2c: E2 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 68 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 47 [00:20:20]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:20:20]wFMCommunicate OK [00:20:20]wFMCommunicate request_size=4 [00:20:20]MH_SAM_APDU [00:20:20]CAPDU: 80 17 00 00 [00:20:20]Write to MH i2c: E2 08 00 69 01 80 17 00 00 00 00 00 00 EA [00:20:20]Write i2c OK [00:20:20]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 FD 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 FD 00 69 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [00:20:21]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:21]wFMCommunicate OK [00:20:21]wFMCommunicate request_size=4 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 17 00 00 [00:20:21]Write to MH i2c: E2 08 00 6A 01 80 17 00 00 00 00 00 00 EB [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 FD 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 FD 00 6A 01 00 03 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 90 00 74 [00:20:21]RAPDU: 03 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 90 00 [00:20:21]wFMCommunicate OK [00:20:21]wFMCommunicate request_size=4 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 17 00 00 [00:20:21]Write to MH i2c: E2 08 00 6B 01 80 17 00 00 00 00 00 00 EC [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 D5 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 D5 00 6B 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [00:20:21]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:21]wFMCommunicate OK [00:20:21]SAM_PROTO_GetShiftData done [00:20:21]requested_item shift.sale.total_cash is exist - process it [00:20:21]requested_item shift.sale_refund.total is exist - process it [00:20:21]requested_item shift.sale_refund.total_cash is exist - process it [00:20:21]requested_item shift.buy.total is exist - process it [00:20:21]requested_item shift.buy.total_cash is exist - process it [00:20:21]produce_requested_data done [00:20:21]produce_requested_data return {"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:21]process_action_free get_value [00:20:21]json_value_free [00:20:21]json_value_free done [00:20:21]process_json_proto returns [00:20:21]Send response to host [00:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.00,"fm.buy.total":0.00,"shift.sale.total":177520.43,"shift.sale.total_cash":162611.00,"shift.sale_refund.total":339.00,"shift.sale_refund.total_cash":339.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:21]free response buf [00:20:21]execute_script done [00:20:21]execute_script returns [00:20:21]free content buf [00:20:21]Sock 9.Close socket [00:20:21]Sock 9.Thread stoped [00:20:21]accept exits with 5 [00:20:21]New connection [00:20:21]New thread 3067145572 created [00:20:21]Thread 3067288932 joined [00:20:21]Waiting for new connection... [00:20:21] Sock 5.Parse request [00:20:21]Sock 5.Check first char [00:20:21]Sock 5.First char is OK [00:20:21]request: POST /json_proto HTTP/1.0 [00:20:21]Method: POST [00:20:21]URL: /json_proto [00:20:21]Method is POST - this is cgi request [00:20:21]url: /json_proto [00:20:21]query_string will be loaded in cgi processing [00:20:21]execute_cgi json_proto POST (null) [00:20:21]execute_cgi path=json_proto method=POST [00:20:21]POST find Content-Length [00:20:21]Host: 172.17.47.195:8080 [00:20:21]Content-Length: 284 [00:20:21]Content-Type: application/json [00:20:21] [00:20:21]POST finish read [00:20:21]Found Content-Length = 284 [00:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0417\u0443\u043B\u0443\u043C\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:21]execute_script... [00:20:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0417\u0443\u043B\u0443\u043C\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:21]POST & json_proto [00:20:21]process_json_proto [00:20:21]json parsed OK: [00:20:21]protocol is kg_v1.0 [00:20:21]action value=open_shift [00:20:21]process_action open_shift [00:20:21]cmd_open_shift [00:20:21]MH_GetDate [00:20:21]Write to MH i2c: F0 00 00 6C 01 5C [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: F0 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: F0 09 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: F0 09 00 6C 01 00 46 B4 F0 66 96 2E 95 66 74 [00:20:21]GetLastDocTimeStamp 1727050463 [00:20:21]current date 1727050822 [00:20:21]FM_GetShiftState [00:20:21]SAM_PROTO_GetShiftState [00:20:21]wFMCommunicate request_size=4 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 13 01 00 [00:20:21]Write to MH i2c: E2 08 00 6D 01 80 13 01 00 00 00 00 00 EB [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 0E 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 0E 00 6D 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F6 [00:20:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:21]wFMCommunicate OK [00:20:21]SAM_PROTO_GetShiftState done [00:20:21]FM_GetShiftState done [00:20:21]KKMCreateOpenShiftDocument [00:20:21]Load OK [00:20:21]Malloc new data [00:20:21]MH_GetDate [00:20:21]Write to MH i2c: F0 00 00 6E 01 5E [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: F0 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: F0 09 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: F0 09 00 6E 01 00 46 B4 F0 66 96 2E 95 66 76 [00:20:21]Malloc new data [00:20:21]KKMCreateOpenShiftDocument OK [00:20:21]KKMSetOpenShiftData OK [00:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=235 [00:20:21]tlvbuf is 01AD7140 [00:20:21]KKMLoadAndSignOpenShiftData [00:20:21]SAM_PROTO_ProcessDocument [00:20:21]wFMCommunicate request_size=9 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 15 01 00 04 02 00 EB 00 [00:20:21]Write to MH i2c: E2 0C 00 6F 01 80 15 01 00 04 00 02 00 EB 00 00 00 E4 [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 03 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 03 00 6F 01 00 90 00 E4 [00:20:21]RAPDU: 90 00 [00:20:21]wFMCommunicate OK [00:20:21]wFMCommunicate request_size=23 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:20:21]Write to MH i2c: E2 1A 00 70 01 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 E6 [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 03 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 03 00 70 01 00 90 00 E5 [00:20:21]RAPDU: 90 00 [00:20:21]wFMCommunicate OK [00:20:21]wFMCommunicate request_size=39 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 97 D1 83 D0 BB D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 [00:20:21]Write to MH i2c: E2 2A 00 71 01 80 15 02 00 22 00 FD 03 1E 00 D0 97 D1 83 D0 BB D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 00 00 8B [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 03 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 03 00 71 01 00 90 00 E6 [00:20:21]RAPDU: 90 00 [00:20:21]wFMCommunicate OK [00:20:21]wFMCommunicate request_size=114 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 15 02 00 6D F1 03 69 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 9F D0 B8 D1 82 D0 BE D0 BC D0 BD D0 B8 D0 BA 2C 20 D0 94 D0 BE D0 BD 2D D0 91 D1 83 D0 BB D0 B0 D0 BA 20 D0 B0 2F D0 B0 2C 20 D0 A3 D0 B7 D0 B3 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 2C 20 34 30 2E 37 35 33 36 35 34 2C 37 33 2E 33 38 31 35 35 34 [00:20:22]Write to MH i2c: E2 75 00 72 01 80 15 02 00 6D 00 F1 03 69 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 9F D0 B8 D1 82 D0 BE D0 BC D0 BD D0 B8 D0 BA 2C 20 D0 94 D0 BE D0 BD 2D D0 91 D1 83 D0 BB D0 B0 D0 BA 20 D0 B0 2F D0 B0 2C 20 D0 A3 D0 B7 D0 B3 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 2C 20 34 30 2E 37 35 33 36 35 34 2C 37 33 2E 33 38 31 35 35 34 00 00 4A [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 03 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 03 00 72 01 00 90 00 E7 [00:20:22]RAPDU: 90 00 [00:20:22]wFMCommunicate OK [00:20:22]wFMCommunicate request_size=51 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 37 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:20:22]Write to MH i2c: E2 36 00 73 01 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 37 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 A1 [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 03 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 03 00 73 01 00 90 00 E8 [00:20:22]RAPDU: 90 00 [00:20:22]wFMCommunicate OK [00:20:22]wFMCommunicate request_size=13 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 15 02 00 08 F4 03 04 00 46 B4 F0 66 [00:20:22]Write to MH i2c: E2 10 00 74 01 80 15 02 00 08 00 F4 03 04 00 46 B4 F0 66 00 00 50 [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 03 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 03 00 74 01 00 90 00 E9 [00:20:22]RAPDU: 90 00 [00:20:22]wFMCommunicate OK [00:20:22]wFMCommunicate request_size=25 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 [00:20:22]Write to MH i2c: E2 1C 00 75 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 00 00 57 [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 03 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 03 00 75 01 00 90 00 EA [00:20:22]RAPDU: 90 00 [00:20:22]wFMCommunicate OK [00:20:22]wFMCommunicate request_size=4 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 15 03 00 [00:20:22]Write to MH i2c: E2 08 00 76 01 80 15 03 00 00 00 00 00 F8 [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 38 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 38 00 76 01 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5D 1E 00 00 0E 04 04 00 47 00 00 00 35 04 06 00 32 6C 0C FC A0 22 90 00 EC [00:20:22]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5D 1E 00 00 0E 04 04 00 47 00 00 00 35 04 06 00 32 6C 0C FC A0 22 90 00 [00:20:22]wFMCommunicate OK [00:20:22]SAM_PROTO_ProcessDocument answer len = 51 [00:20:22]SAM_PROTO_ProcessDocument done [00:20:22]SetTLVBufToDocument [00:20:22]Processing tag 1209 (04B9) [00:20:22]Malloc new data [00:20:22]Processing tag 1041 (0411) [00:20:22]Processing tag 1040 (0410) [00:20:22]Malloc new data [00:20:22]Processing tag 1038 (040E) [00:20:22]Malloc new data [00:20:22]Processing tag 1077 (0435) [00:20:22]Malloc new data [00:20:22]SetTLVBufToDocument err=0 [00:20:22]KKMLoadAndSignOpenShiftData store KKM data [00:20:22]KKMLoadAndSignOpenShiftData err=0 [00:20:22]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Зулумбек уулу М. Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 Место: АЗС № 137 "Партнер Нефть" 23.09.2024 00:20 Смена: 71 РНМ: 0000000000190446 ЗНМ: 0300000041 ФД: 7773 ФМ: 0000000002094258 ФПД: 55439655739426 [00:20:22]StoreToDocumentArchive [00:20:22]shift 71 fd 7773 [00:20:22]Create dir for shift 0071 [00:20:22]save to /storage/0071/doc_00007773 [00:20:22]save last doc name /storage/0071/doc_00007773 to /storage/kkm_last_doc_name [00:20:22]save OK [00:20:22]Clear old archive folders... [00:20:22]Remove dir /storage/0070 [00:20:22]opendir ok [00:20:22]file . [00:20:22]file .. [00:20:22]file doc_00007602 [00:20:22]remove file /storage/0070/doc_00007602 [00:20:22]file doc_00007603 [00:20:22]remove file /storage/0070/doc_00007603 [00:20:22]file doc_00007604 [00:20:22]remove file /storage/0070/doc_00007604 [00:20:22]file doc_00007605 [00:20:22]remove file /storage/0070/doc_00007605 [00:20:22]file doc_00007606 [00:20:22]remove file /storage/0070/doc_00007606 [00:20:22]file doc_00007607 [00:20:22]remove file /storage/0070/doc_00007607 [00:20:22]file doc_00007608 [00:20:22]remove file /storage/0070/doc_00007608 [00:20:22]file doc_00007609 [00:20:22]remove file /storage/0070/doc_00007609 [00:20:22]file doc_00007610 [00:20:22]remove file /storage/0070/doc_00007610 [00:20:22]file doc_00007611 [00:20:22]remove file /storage/0070/doc_00007611 [00:20:22]file doc_00007612 [00:20:22]remove file /storage/0070/doc_00007612 [00:20:22]file doc_00007613 [00:20:22]remove file /storage/0070/doc_00007613 [00:20:22]file doc_00007614 [00:20:22]remove file /storage/0070/doc_00007614 [00:20:22]file doc_00007615 [00:20:22]remove file /storage/0070/doc_00007615 [00:20:22]file doc_00007616 [00:20:22]remove file /storage/0070/doc_00007616 [00:20:22]file doc_00007617 [00:20:22]remove file /storage/0070/doc_00007617 [00:20:22]file doc_00007618 [00:20:22]remove file /storage/0070/doc_00007618 [00:20:22]file doc_00007619 [00:20:22]remove file /storage/0070/doc_00007619 [00:20:22]file doc_00007620 [00:20:22]remove file /storage/0070/doc_00007620 [00:20:22]file doc_00007621 [00:20:22]remove file /storage/0070/doc_00007621 [00:20:22]file doc_00007622 [00:20:22]remove file /storage/0070/doc_00007622 [00:20:22]file doc_00007623 [00:20:22]remove file /storage/0070/doc_00007623 [00:20:22]file doc_00007624 [00:20:22]remove file /storage/0070/doc_00007624 [00:20:22]file doc_00007625 [00:20:22]remove file /storage/0070/doc_00007625 [00:20:22]file doc_00007626 [00:20:22]remove file /storage/0070/doc_00007626 [00:20:22]file doc_00007627 [00:20:22]remove file /storage/0070/doc_00007627 [00:20:22]file doc_00007628 [00:20:22]remove file /storage/0070/doc_00007628 [00:20:22]file doc_00007629 [00:20:22]remove file /storage/0070/doc_00007629 [00:20:22]file doc_00007630 [00:20:22]remove file /storage/0070/doc_00007630 [00:20:22]file doc_00007631 [00:20:22]remove file /storage/0070/doc_00007631 [00:20:22]file doc_00007632 [00:20:22]remove file /storage/0070/doc_00007632 [00:20:22]file doc_00007633 [00:20:22]remove file /storage/0070/doc_00007633 [00:20:22]file doc_00007634 [00:20:22]remove file /storage/0070/doc_00007634 [00:20:22]file doc_00007635 [00:20:22]remove file /storage/0070/doc_00007635 [00:20:22]file doc_00007636 [00:20:22]remove file /storage/0070/doc_00007636 [00:20:22]file doc_00007637 [00:20:22]remove file /storage/0070/doc_00007637 [00:20:22]file doc_00007638 [00:20:22]remove file /storage/0070/doc_00007638 [00:20:22]file doc_00007639 [00:20:22]remove file /storage/0070/doc_00007639 [00:20:22]file doc_00007640 [00:20:22]remove file /storage/0070/doc_00007640 [00:20:22]file doc_00007641 [00:20:22]remove file /storage/0070/doc_00007641 [00:20:22]file doc_00007642 [00:20:22]remove file /storage/0070/doc_00007642 [00:20:22]file doc_00007643 [00:20:22]remove file /storage/0070/doc_00007643 [00:20:22]file doc_00007644 [00:20:22]remove file /storage/0070/doc_00007644 [00:20:22]file doc_00007645 [00:20:22]remove file /storage/0070/doc_00007645 [00:20:22]file doc_00007646 [00:20:22]remove file /storage/0070/doc_00007646 [00:20:22]file doc_00007647 [00:20:22]remove file /storage/0070/doc_00007647 [00:20:22]file doc_00007648 [00:20:22]remove file /storage/0070/doc_00007648 [00:20:22]file doc_00007649 [00:20:22]remove file /storage/0070/doc_00007649 [00:20:22]file doc_00007650 [00:20:22]remove file /storage/0070/doc_00007650 [00:20:22]file doc_00007651 [00:20:22]remove file /storage/0070/doc_00007651 [00:20:22]file doc_00007652 [00:20:22]remove file /storage/0070/doc_00007652 [00:20:22]file doc_00007653 [00:20:22]remove file /storage/0070/doc_00007653 [00:20:22]file doc_00007654 [00:20:22]remove file /storage/0070/doc_00007654 [00:20:22]file doc_00007655 [00:20:22]remove file /storage/0070/doc_00007655 [00:20:22]file doc_00007656 [00:20:22]remove file /storage/0070/doc_00007656 [00:20:22]file doc_00007657 [00:20:22]remove file /storage/0070/doc_00007657 [00:20:22]file doc_00007658 [00:20:22]remove file /storage/0070/doc_00007658 [00:20:22]file doc_00007659 [00:20:22]remove file /storage/0070/doc_00007659 [00:20:22]file doc_00007660 [00:20:22]remove file /storage/0070/doc_00007660 [00:20:22]file doc_00007661 [00:20:22]remove file /storage/0070/doc_00007661 [00:20:22]file doc_00007662 [00:20:22]remove file /storage/0070/doc_00007662 [00:20:22]file doc_00007663 [00:20:22]remove file /storage/0070/doc_00007663 [00:20:22]file doc_00007664 [00:20:22]remove file /storage/0070/doc_00007664 [00:20:22]file doc_00007665 [00:20:22]remove file /storage/0070/doc_00007665 [00:20:22]file doc_00007666 [00:20:22]remove file /storage/0070/doc_00007666 [00:20:22]file doc_00007667 [00:20:22]remove file /storage/0070/doc_00007667 [00:20:22]file doc_00007668 [00:20:22]remove file /storage/0070/doc_00007668 [00:20:22]file doc_00007669 [00:20:22]remove file /storage/0070/doc_00007669 [00:20:22]file doc_00007670 [00:20:22]remove file /storage/0070/doc_00007670 [00:20:22]file doc_00007671 [00:20:22]remove file /storage/0070/doc_00007671 [00:20:22]file doc_00007672 [00:20:22]remove file /storage/0070/doc_00007672 [00:20:22]file doc_00007673 [00:20:22]remove file /storage/0070/doc_00007673 [00:20:22]file doc_00007674 [00:20:22]remove file /storage/0070/doc_00007674 [00:20:22]file doc_00007675 [00:20:22]remove file /storage/0070/doc_00007675 [00:20:22]file doc_00007676 [00:20:22]remove file /storage/0070/doc_00007676 [00:20:22]file doc_00007677 [00:20:22]remove file /storage/0070/doc_00007677 [00:20:22]file doc_00007678 [00:20:22]remove file /storage/0070/doc_00007678 [00:20:22]file doc_00007679 [00:20:22]remove file /storage/0070/doc_00007679 [00:20:22]file doc_00007680 [00:20:22]remove file /storage/0070/doc_00007680 [00:20:22]file doc_00007681 [00:20:22]remove file /storage/0070/doc_00007681 [00:20:22]file doc_00007682 [00:20:22]remove file /storage/0070/doc_00007682 [00:20:22]file doc_00007683 [00:20:22]remove file /storage/0070/doc_00007683 [00:20:22]file doc_00007684 [00:20:22]remove file /storage/0070/doc_00007684 [00:20:22]file doc_00007685 [00:20:23]remove file /storage/0070/doc_00007685 [00:20:23]file doc_00007686 [00:20:23]remove file /storage/0070/doc_00007686 [00:20:23]file doc_00007687 [00:20:23]remove file /storage/0070/doc_00007687 [00:20:23]file doc_00007688 [00:20:23]remove file /storage/0070/doc_00007688 [00:20:23]file doc_00007689 [00:20:23]remove file /storage/0070/doc_00007689 [00:20:23]file doc_00007690 [00:20:23]remove file /storage/0070/doc_00007690 [00:20:23]file doc_00007691 [00:20:23]remove file /storage/0070/doc_00007691 [00:20:23]file doc_00007692 [00:20:23]remove file /storage/0070/doc_00007692 [00:20:23]file doc_00007693 [00:20:23]remove file /storage/0070/doc_00007693 [00:20:23]file doc_00007694 [00:20:23]remove file /storage/0070/doc_00007694 [00:20:23]file doc_00007695 [00:20:23]remove file /storage/0070/doc_00007695 [00:20:23]file doc_00007696 [00:20:23]remove file /storage/0070/doc_00007696 [00:20:23]file doc_00007697 [00:20:23]remove file /storage/0070/doc_00007697 [00:20:23]file doc_00007698 [00:20:23]remove file /storage/0070/doc_00007698 [00:20:23]file doc_00007699 [00:20:23]remove file /storage/0070/doc_00007699 [00:20:23]file doc_00007700 [00:20:23]remove file /storage/0070/doc_00007700 [00:20:23]file doc_00007701 [00:20:23]remove file /storage/0070/doc_00007701 [00:20:23]file doc_00007702 [00:20:23]remove file /storage/0070/doc_00007702 [00:20:23]file doc_00007703 [00:20:23]remove file /storage/0070/doc_00007703 [00:20:23]file doc_00007704 [00:20:23]remove file /storage/0070/doc_00007704 [00:20:23]file doc_00007705 [00:20:23]remove file /storage/0070/doc_00007705 [00:20:23]file doc_00007706 [00:20:23]remove file /storage/0070/doc_00007706 [00:20:23]file doc_00007707 [00:20:23]remove file /storage/0070/doc_00007707 [00:20:23]file doc_00007708 [00:20:23]remove file /storage/0070/doc_00007708 [00:20:23]file doc_00007709 [00:20:23]remove file /storage/0070/doc_00007709 [00:20:23]file doc_00007710 [00:20:23]remove file /storage/0070/doc_00007710 [00:20:23]file doc_00007711 [00:20:23]remove file /storage/0070/doc_00007711 [00:20:23]file doc_00007712 [00:20:23]remove file /storage/0070/doc_00007712 [00:20:23]file doc_00007713 [00:20:23]remove file /storage/0070/doc_00007713 [00:20:23]file doc_00007714 [00:20:23]remove file /storage/0070/doc_00007714 [00:20:23]file doc_00007715 [00:20:23]remove file /storage/0070/doc_00007715 [00:20:23]file doc_00007716 [00:20:23]remove file /storage/0070/doc_00007716 [00:20:23]file doc_00007717 [00:20:23]remove file /storage/0070/doc_00007717 [00:20:23]file doc_00007718 [00:20:23]remove file /storage/0070/doc_00007718 [00:20:23]file doc_00007719 [00:20:23]remove file /storage/0070/doc_00007719 [00:20:23]file doc_00007720 [00:20:23]remove file /storage/0070/doc_00007720 [00:20:23]file doc_00007721 [00:20:23]remove file /storage/0070/doc_00007721 [00:20:23]file doc_00007722 [00:20:23]remove file /storage/0070/doc_00007722 [00:20:23]file doc_00007723 [00:20:23]remove file /storage/0070/doc_00007723 [00:20:23]file doc_00007724 [00:20:23]remove file /storage/0070/doc_00007724 [00:20:23]file doc_00007725 [00:20:23]remove file /storage/0070/doc_00007725 [00:20:23]file doc_00007726 [00:20:23]remove file /storage/0070/doc_00007726 [00:20:23]file doc_00007727 [00:20:23]remove file /storage/0070/doc_00007727 [00:20:23]file doc_00007728 [00:20:23]remove file /storage/0070/doc_00007728 [00:20:23]file doc_00007729 [00:20:23]remove file /storage/0070/doc_00007729 [00:20:23]file doc_00007730 [00:20:23]remove file /storage/0070/doc_00007730 [00:20:23]file doc_00007731 [00:20:23]remove file /storage/0070/doc_00007731 [00:20:23]file doc_00007732 [00:20:23]remove file /storage/0070/doc_00007732 [00:20:23]file doc_00007733 [00:20:23]remove file /storage/0070/doc_00007733 [00:20:23]file doc_00007734 [00:20:23]remove file /storage/0070/doc_00007734 [00:20:23]file doc_00007735 [00:20:23]remove file /storage/0070/doc_00007735 [00:20:23]file doc_00007736 [00:20:23]remove file /storage/0070/doc_00007736 [00:20:23]file doc_00007737 [00:20:23]remove file /storage/0070/doc_00007737 [00:20:23]file doc_00007738 [00:20:23]remove file /storage/0070/doc_00007738 [00:20:23]file doc_00007739 [00:20:23]remove file /storage/0070/doc_00007739 [00:20:23]file doc_00007740 [00:20:23]remove file /storage/0070/doc_00007740 [00:20:23]file doc_00007741 [00:20:23]remove file /storage/0070/doc_00007741 [00:20:23]file doc_00007742 [00:20:23]remove file /storage/0070/doc_00007742 [00:20:23]file doc_00007743 [00:20:23]remove file /storage/0070/doc_00007743 [00:20:23]file doc_00007744 [00:20:23]remove file /storage/0070/doc_00007744 [00:20:23]file doc_00007745 [00:20:23]remove file /storage/0070/doc_00007745 [00:20:23]file doc_00007746 [00:20:23]remove file /storage/0070/doc_00007746 [00:20:23]file doc_00007747 [00:20:23]remove file /storage/0070/doc_00007747 [00:20:23]file doc_00007748 [00:20:23]remove file /storage/0070/doc_00007748 [00:20:23]file doc_00007749 [00:20:23]remove file /storage/0070/doc_00007749 [00:20:23]file doc_00007750 [00:20:23]remove file /storage/0070/doc_00007750 [00:20:23]file doc_00007751 [00:20:23]remove file /storage/0070/doc_00007751 [00:20:23]file doc_00007752 [00:20:23]remove file /storage/0070/doc_00007752 [00:20:23]file doc_00007753 [00:20:23]remove file /storage/0070/doc_00007753 [00:20:23]file doc_00007754 [00:20:23]remove file /storage/0070/doc_00007754 [00:20:23]file doc_00007755 [00:20:23]remove file /storage/0070/doc_00007755 [00:20:23]file doc_00007756 [00:20:23]remove file /storage/0070/doc_00007756 [00:20:23]file doc_00007757 [00:20:23]remove file /storage/0070/doc_00007757 [00:20:23]file doc_00007758 [00:20:23]remove file /storage/0070/doc_00007758 [00:20:23]file doc_00007759 [00:20:23]remove file /storage/0070/doc_00007759 [00:20:23]file doc_00007760 [00:20:23]remove file /storage/0070/doc_00007760 [00:20:23]file doc_00007761 [00:20:23]remove file /storage/0070/doc_00007761 [00:20:23]file doc_00007762 [00:20:23]remove file /storage/0070/doc_00007762 [00:20:23]file doc_00007763 [00:20:23]remove file /storage/0070/doc_00007763 [00:20:23]file doc_00007764 [00:20:23]remove file /storage/0070/doc_00007764 [00:20:23]file doc_00007765 [00:20:23]remove file /storage/0070/doc_00007765 [00:20:23]file doc_00007766 [00:20:23]remove file /storage/0070/doc_00007766 [00:20:23]file doc_00007767 [00:20:23]remove file /storage/0070/doc_00007767 [00:20:23]file doc_00007768 [00:20:23]remove file /storage/0070/doc_00007768 [00:20:23]file doc_00007769 [00:20:23]remove file /storage/0070/doc_00007769 [00:20:23]file doc_00007770 [00:20:23]remove file /storage/0070/doc_00007770 [00:20:23]file doc_00007771 [00:20:23]remove file /storage/0070/doc_00007771 [00:20:23]file doc_00007772 [00:20:23]remove file /storage/0070/doc_00007772 [00:20:23]remove dir /storage/0070 [00:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=286 [00:20:23]tlvbuf is 01B50520 [00:20:23]SAM_PROTO_ClearQueue [00:20:23]wFMCommunicate request_size=4 [00:20:23]MH_SAM_APDU [00:20:23]CAPDU: 80 09 00 00 [00:20:23]Write to MH i2c: E2 08 00 77 01 80 09 00 00 00 00 00 00 EA [00:20:23]Write i2c OK [00:20:23]MH_I2C_Read... [00:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:23]Read from MH i2c: E2 [00:20:23]MH_I2C_Read... [00:20:23]Read from MH i2c: E2 03 00 [00:20:23]MH_I2C_Read... [00:20:23]Read from MH i2c: E2 03 00 77 01 00 90 00 EC [00:20:23]RAPDU: 90 00 [00:20:23]wFMCommunicate OK [00:20:23]SAM_PROTO_ClearQueue done [00:20:23]KKMCreateOFDPacket [00:20:23]OFDProtocolAddRootSTLVToBuf [00:20:23]FM_MakeSignedData [00:20:23]FM_MakeSignedData [00:20:23]SAM_PROTO_SignData [00:20:23]wFMCommunicate request_size=4 [00:20:23]MH_SAM_APDU [00:20:23]CAPDU: 80 0D 01 02 [00:20:23]Write to MH i2c: E2 08 00 78 01 80 0D 01 02 00 00 00 00 F2 [00:20:23]Write i2c OK [00:20:23]MH_I2C_Read... [00:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:23]Read from MH i2c: E2 [00:20:23]MH_I2C_Read... [00:20:23]Read from MH i2c: E2 03 00 [00:20:23]MH_I2C_Read... [00:20:23]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [00:20:23]RAPDU: 90 00 [00:20:23]wFMCommunicate OK [00:20:23]wFMCommunicate request_size=255 [00:20:23]MH_SAM_APDU [00:20:23]CAPDU: 80 0D 02 02 FA 02 00 1E 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 97 D1 83 D0 BB D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 F1 03 69 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 9F D0 B8 D1 82 D0 BE D0 BC D0 BD D0 B8 D0 BA 2C 20 D0 94 D0 BE D0 BD 2D D0 91 D1 83 D0 BB D0 B0 D0 BA 20 D0 B0 2F D0 B0 2C 20 D0 A3 D0 B7 D0 B3 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 2C 20 34 30 2E 37 35 33 36 35 34 2C 37 33 2E 33 38 31 35 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 37 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 46 B4 F0 66 0E 04 04 00 47 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 [00:20:23]Write to MH i2c: E2 02 01 79 01 80 0D 02 02 FA 00 02 00 1E 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 97 D1 83 D0 BB D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 F1 03 69 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 9F D0 B8 D1 82 D0 BE D0 BC D0 BD D0 B8 D0 BA 2C 20 D0 94 D0 BE D0 BD 2D D0 91 D1 83 D0 BB D0 B0 D0 BA 20 D0 B0 2F D0 B0 2C 20 D0 A3 D0 B7 D0 B3 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 2C 20 34 30 2E 37 35 33 36 35 34 2C 37 33 2E 33 38 31 35 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 37 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 46 B4 F0 66 0E 04 04 00 47 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 00 00 34 [00:20:23]Write i2c OK [00:20:23]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [00:20:24]RAPDU: 90 00 [00:20:24]wFMCommunicate OK [00:20:24]wFMCommunicate request_size=45 [00:20:24]MH_SAM_APDU [00:20:24]CAPDU: 80 0D 02 02 28 34 36 10 04 04 00 5D 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 35 04 06 00 32 6C 0C FC A0 22 [00:20:24]Write to MH i2c: E2 30 00 7A 01 80 0D 02 02 28 00 34 36 10 04 04 00 5D 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 35 04 06 00 32 6C 0C FC A0 22 00 00 2C [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 7A 01 00 90 00 EF [00:20:24]RAPDU: 90 00 [00:20:24]wFMCommunicate OK [00:20:24]wFMCommunicate request_size=4 [00:20:24]MH_SAM_APDU [00:20:24]CAPDU: 80 0D 03 02 [00:20:24]Write to MH i2c: E2 08 00 7B 01 80 0D 03 02 00 00 00 00 F7 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 0B 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 0B 00 7B 01 00 1F 8B B1 1C BB 1B 02 83 90 00 CA [00:20:24]RAPDU: 1F 8B B1 1C BB 1B 02 83 90 00 [00:20:24]wFMCommunicate OK [00:20:24]SAM_PROTO_SignData done [00:20:24]FM_MakeSignedData done [00:20:24]CreateOFDProtocolMessage [00:20:24]wFMCommunicate request_size=4 [00:20:24]MH_SAM_APDU [00:20:24]CAPDU: 80 11 00 00 [00:20:24]Write to MH i2c: E2 08 00 7C 01 80 11 00 00 00 00 00 00 F7 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 17 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 17 00 7C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 48 [00:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:20:24]wFMCommunicate OK [00:20:24]CreateOFDProtocolMessage done [00:20:24]OFDSenderStorePacket 7773 [00:20:24]StoreOFDPacket docnum=7773 [00:20:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 32 01 00 00 4C 55 2A 01 CB 48 5A 02 01 00 02 00 1E 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 97 D1 83 D0 BB D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 F1 03 69 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 9F D0 B8 D1 82 D0 BE D0 BC D0 BD D0 B8 D0 BA 2C 20 D0 94 D0 BE D0 BD 2D D0 91 D1 83 D0 BB D0 B0 D0 BA 20 D0 B0 2F D0 B0 2C 20 D0 A3 D0 B7 D0 B3 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 2C 20 34 30 2E 37 35 33 36 35 34 2C 37 33 2E 33 38 31 35 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 37 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 46 B4 F0 66 0E 04 04 00 47 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5D 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 35 04 06 00 32 6C 0C FC A0 22 1F 8B B1 1C BB 1B 02 83 [00:20:24]CheckFolder [00:20:24]dirname=/storage/ofd_packets [00:20:24]CheckFolder done [00:20:24]ProducePacketName [00:20:24]name=ofd_packets/00007773 [00:20:24]NVStorageSaveData ofd_packets/00007773 [00:20:24]File name is /storage/ofd_packets/00007773 [00:20:24]Write 336 bytes [00:20:24]NVStorageSaveData done [00:20:24]OFDSenderStorePacket done [00:20:24]KKMCreateOFDPacket done [00:20:24]NVStorageSaveData kkm_last_timestamp [00:20:24]File name is /storage/kkm_last_timestamp [00:20:24]Write 4 bytes [00:20:24]NVStorageSaveData done [00:20:24]ExternCall_PrintAddStr [00:20:24]wPrintStart [00:20:24]Write to MH i2c: 01 00 00 7D 01 7E [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 07 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 FF 0F 93 [00:20:24]RasterBufferAndPrint [00:20:24]line Отчет об открытии смены [00:20:24]line ФФД: 1.0 [00:20:24]line ИНН: 02508201610067 [00:20:24]line Кассир: Зулумбек уулу М. [00:20:24]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:20:24]line Место: АЗС № 137 "Партнер Нефть" [00:20:24]line 23.09.2024 00:20 [00:20:24]line Смена: 71 [00:20:24]line РНМ: 0000000000190446 [00:20:24]line ЗНМ: 0300000041 [00:20:24]line ФД: 7773 [00:20:24]line ФМ: 0000000002094258 [00:20:24]line ФПД: 55439655739426 [00:20:24]written 0, free lines is 4095 [00:20:24]OFD Sender: Processing packet 7773 [packets to send 51, broken 50] [00:20:24]ProducePacketName [00:20:24]name=ofd_packets/00007773 [00:20:24]OFD Sender: To server: pG, [00:20:24]CommunicateWithHost lk.salyk.kg:30040 [00:20:24]ConnectInit lk.salyk.kg [00:20:24]Write to MH i2c: 01 00 00 8F 01 90 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 07 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 56 0E FB [00:20:24]RasterBufferAndPrint [00:20:24]line [00:20:24]line [00:20:24]line [00:20:24]line [00:20:24]line [00:20:24]written 0, free lines is 3682 [00:20:24]MH_Cut [00:20:24]Write to MH i2c: D1 01 00 96 01 01 69 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: D1 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: D1 01 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: D1 01 00 96 01 00 68 [00:20:24]Write to MH i2c: 01 00 00 97 01 98 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:25]*** Cut start [00:20:25]*** Purtial cut [00:20:25]*** Stage 1: CUTSNS_PIN = 1 [00:20:25]Read from MH i2c: 01 [00:20:25]MH_I2C_Read... [00:20:25]*** Stop cut motor [00:20:25]*** Cut end [00:20:25]Read from MH i2c: 01 07 00 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [00:20:25]process_action open_shift done [00:20:25]requested_data is exist [00:20:25]produce_requested_data [00:20:25]requested_item fd.num is exist - process it [00:20:25]SAM_PROTO_GetFieldsCounters [00:20:25]wFMCommunicate request_size=4 [00:20:25]MH_SAM_APDU [00:20:25]CAPDU: 80 13 00 00 [00:20:25]Write to MH i2c: E2 08 00 98 01 80 13 00 00 00 00 00 00 15 [00:20:25]Write i2c OK [00:20:25]MH_I2C_Read... [00:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:25]Read from MH i2c: E2 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: E2 62 00 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: E2 62 00 98 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5D 1E 00 00 0E 04 04 00 47 00 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 F5 [00:20:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5D 1E 00 00 0E 04 04 00 47 00 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:20:25]wFMCommunicate OK [00:20:25]SAM_PROTO_GetFieldsCounters done [00:20:25]requested_item shift.num is exist - process it [00:20:25]requested_item shift.opened is exist - process it [00:20:25]req_shift_opened [00:20:25]FM_GetShiftState [00:20:25]SAM_PROTO_GetShiftState [00:20:25]wFMCommunicate request_size=4 [00:20:25]MH_SAM_APDU [00:20:25]CAPDU: 80 13 01 00 [00:20:25]Write to MH i2c: E2 08 00 99 01 80 13 01 00 00 00 00 00 17 [00:20:25]Write i2c OK [00:20:25]MH_I2C_Read... [00:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:25]Read from MH i2c: E2 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: E2 0E 00 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: E2 0E 00 99 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 73 [00:20:25]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:20:25]wFMCommunicate OK [00:20:25]SAM_PROTO_GetShiftState done [00:20:25]FM_GetShiftState done [00:20:25]req_shift_opened done [00:20:25]requested_item shift.open_date is exist - process it [00:20:25]req_shift_open_date [00:20:25]req_shift_open_date done [00:20:25]produce_requested_data done [00:20:25]produce_requested_data return {"fd.num":7773,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:20:25]process_action_free open_shift [00:20:25]json_value_free [00:20:25]json_value_free done [00:20:25]process_json_proto returns [00:20:25]Send response to host [00:20:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":7773,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:20:25]free response buf [00:20:25]execute_script done [00:20:25]execute_script returns [00:20:25]free content buf [00:20:25]Sock 5.Close socket [00:20:25]Sock 5.Thread stoped [00:20:25]accept exits with 9 [00:20:25]New connection [00:20:25]New thread 3067288932 created [00:20:25]Thread 3067145572 joined [00:20:25]Waiting for new connection... [00:20:25] Sock 9.Parse request [00:20:25]Sock 9.Check first char [00:20:25]Sock 9.First char is OK [00:20:25]request: POST /json_proto HTTP/1.0 [00:20:25]Method: POST [00:20:25]URL: /json_proto [00:20:25]Method is POST - this is cgi request [00:20:25]url: /json_proto [00:20:25]query_string will be loaded in cgi processing [00:20:25]execute_cgi json_proto POST (null) [00:20:25]execute_cgi path=json_proto method=POST [00:20:25]POST find Content-Length [00:20:25]Host: 172.17.47.195:8080 [00:20:25]Content-Length: 331 [00:20:25]Content-Type: application/json [00:20:25] [00:20:25]POST finish read [00:20:25]Found Content-Length = 331 [00:20:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:25]execute_script... [00:20:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:25]POST & json_proto [00:20:25]process_json_proto [00:20:25]json parsed OK: [00:20:25]protocol is kg_v1.0 [00:20:25]action value=get_value [00:20:25]process_action get_value [00:20:25]cmd_get_value [00:20:25]process_action get_value done [00:20:25]requested_data is exist [00:20:25]produce_requested_data [00:20:25]requested_item fm.sale.total is exist - process it [00:20:25]SAM_PROTO_GetFMData [00:20:25]wFMCommunicate request_size=4 [00:20:25]MH_SAM_APDU [00:20:25]CAPDU: 80 13 03 00 [00:20:25]Write to MH i2c: E2 08 00 9A 01 80 13 03 00 00 00 00 00 1A [00:20:25]Write i2c OK [00:20:25]MH_I2C_Read... [00:20:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:26]Read from MH i2c: E2 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 FD 00 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 FD 00 9A 01 00 C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 62 [00:20:26]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CF 1D 00 00 69 04 A0 00 6F 04 04 00 A2 1D 00 00 B1 04 04 00 E7 B1 66 31 70 04 04 00 5C 21 72 29 72 04 04 00 8B 90 F4 07 00 04 7C 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 60 50 3F 05 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 E2 F0 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D 00 00 00 B1 04 04 00 3C 5C 66 01 70 04 04 00 3C 5C 66 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A2 0E 26 EF 03 09 00 F6 03 01 90 00 [00:20:26]wFMCommunicate OK [00:20:26]wFMCommunicate request_size=4 [00:20:26]MH_SAM_APDU [00:20:26]CAPDU: 80 17 00 00 [00:20:26]Write to MH i2c: E2 08 00 9B 01 80 17 00 00 00 00 00 00 1C [00:20:26]Write i2c OK [00:20:26]MH_I2C_Read... [00:20:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:26]Read from MH i2c: E2 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 FD 00 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 FD 00 9B 01 00 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 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 90 00 61 [00:20:26]RAPDU: 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 2B 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 Connected sock=10 [00:20:26]03 Data to sent: 01 87 00 95 F6 04 70 F7 47 03 2C 00 01 00 EF 00 03 30 09 30 00 30 F6 30 03 30 01 30 00 30 05 30 F7 30 03 32 00 30 00 39 EF 34 03 32 09 35 00 38 F6 32 03 01 01 00 00 06 00 F7 4C 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 55 03 2A 09 01 00 CB F6 48 03 5A 01 02 00 01 00 00 F7 02 03 00 00 1E 00 01 EF B9 03 04 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 01 00 00 03 01 F7 FA 03 03 00 0E 00 00 EF 30 03 32 09 35 00 30 F6 38 03 32 01 30 00 31 04 36 F7 31 03 30 00 30 00 36 EF 37 03 FD 03 09 1E 00 00 F6 D0 03 97 01 D1 00 05 83 F7 D0 03 BB 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 90 00 [00:20:26]wFMCommunicate OK [00:20:26]wFMCommunicate request_size=4 [00:20:26]MH_SAM_APDU [00:20:26]CAPDU: 80 17 00 00 [00:20:26]Write to MH i2c: E2 08 00 9C 01 80 17 00 00 00 00 00 D1 00 83 1D D0 [00:20:26]BC D0 B1 Write i2c OK [00:20:26]D0 MH_I2C_Read... [00:20:26]B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 F1 03 69 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 9F D0 B8 D1 82 D0 BE D0 BC D0 BD D0 B8 D0 BA 2C 20 D0 94 D0 BE D0 BD 2D D0 91 D1 83 D0 BB D0 B0 D0 BA 20 D0 B0 2F D0 B0 2C 20 D0 A3 D0 B7 D0 B3 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 2C 20 34 30 2E 37 35 33 36 35 34 2C 37 33 2E 33 38 31 35 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 37 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 46 B4 F0 66 0E 04 04 00 47 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5D 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 35 04 06 00 32 6C 0C FC A0 22 1F 8B B1 1C BB 1B 02 83 [00:20:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:27]Read from MH i2c: E2 [00:20:27]MH_I2C_Read... [00:20:27]Read from MH i2c: E2 FD 00 [00:20:27]MH_I2C_Read... [00:20:27]Read from MH i2c: E2 FD 00 9C 01 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BD [00:20:27]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:27]wFMCommunicate OK [00:20:27]wFMCommunicate request_size=4 [00:20:27]MH_SAM_APDU [00:20:27]CAPDU: 80 17 00 00 [00:20:27]Write to MH i2c: E2 08 00 9D 01 80 17 00 00 00 00 00 00 1E [00:20:27]Write i2c OK [00:20:27]MH_I2C_Read... [00:20:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:27]Read from MH i2c: E2 [00:20:27]MH_I2C_Read... [00:20:27]Read from MH i2c: E2 FD 00 [00:20:27]MH_I2C_Read... [00:20:27]Read from MH i2c: E2 FD 00 9D 01 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [00:20:27]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:27]wFMCommunicate OK [00:20:27]wFMCommunicate request_size=4 [00:20:27]MH_SAM_APDU [00:20:27]CAPDU: 80 17 00 00 [00:20:27]Write to MH i2c: E2 08 00 9E 01 80 17 00 00 00 00 00 00 1F [00:20:27]Write i2c OK [00:20:27]MH_I2C_Read... [00:20:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:28]Read from MH i2c: E2 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 DE 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 DE 00 9E 01 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FE [00:20:28]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:28]wFMCommunicate OK [00:20:28]SAM_PROTO_GetFMData done [00:20:28]requested_item fm.sale_refund.total is exist - process it [00:20:28]requested_item fm.buy.total is exist - process it [00:20:28]requested_item shift.sale.total is exist - process it [00:20:28]SAM_PROTO_GetShiftData [00:20:28]wFMCommunicate request_size=4 [00:20:28]MH_SAM_APDU [00:20:28]CAPDU: 80 13 02 00 [00:20:28]Write to MH i2c: E2 08 00 9F 01 80 13 02 00 00 00 00 00 1E [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 EA 20 47 00 01 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 32 30 39 34 32 35 38 10 04 04 00 5D 1E 00 00 F4 03 04 00 06 5F F0 66 B6 04 01 00 00 FD 3A B8 4D 93 62 58 6A [00:20:28]CommunicateWithHost err = 0 [00:20:28]CheckOFDResponse [00:20:28]1017 (14) - 77093643461234 [00:20:28]1041 (16) - 0000000002094258 [00:20:28]1040 (4) - 7773 [00:20:28]1012 (4) - 22.09.2024 18:16 [00:20:28]1206 (1) - 0 [00:20:28]OFD Sender: Remove packet 7773 [00:20:28]ProducePacketName [00:20:28]name=ofd_packets/00007773 [00:20:28]NVStorageDeleteData [00:20:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:28]Read from MH i2c: E2 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 FD 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 FD 00 9F 01 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 91 [00:20:28]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:20:28]wFMCommunicate OK [00:20:28]wFMCommunicate request_size=4 [00:20:28]MH_SAM_APDU [00:20:28]CAPDU: 80 17 00 00 [00:20:28]Write to MH i2c: E2 08 00 A0 01 80 17 00 00 00 00 00 00 21 [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]OFD Sender: No OFD packet to send [00:20:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 A0 01 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 29 [00:20:29]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:20:29]wFMCommunicate OK [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 17 00 00 [00:20:29]Write to MH i2c: E2 08 00 A1 01 80 17 00 00 00 00 00 00 22 [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 A1 01 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 F4 [00:20:29]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:20:29]wFMCommunicate OK [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 17 00 00 [00:20:29]Write to MH i2c: E2 08 00 A2 01 80 17 00 00 00 00 00 00 23 [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 A2 01 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 95 [00:20:30]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:20:30]wFMCommunicate OK [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 17 00 00 [00:20:30]Write to MH i2c: E2 08 00 A3 01 80 17 00 00 00 00 00 00 24 [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 BD 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 BD 00 A3 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0A [00:20:30]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:20:30]wFMCommunicate OK [00:20:30]SAM_PROTO_GetShiftData done [00:20:30]requested_item shift.sale.total_cash is exist - process it [00:20:30]requested_item shift.sale_refund.total is exist - process it [00:20:30]requested_item shift.sale_refund.total_cash is exist - process it [00:20:30]requested_item shift.buy.total is exist - process it [00:20:30]requested_item shift.buy.total_cash is exist - process it [00:20:30]produce_requested_data done [00:20:30]produce_requested_data return {"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.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:20:30]process_action_free get_value [00:20:30]json_value_free [00:20:30]json_value_free done [00:20:30]process_json_proto returns [00:20:30]Send response to host [00:20:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8288137.99,"fm.sale_refund.total":234855.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:20:30]free response buf [00:20:30]execute_script done [00:20:30]execute_script returns [00:20:30]free content buf [00:20:30]Sock 9.Close socket [00:20:30]Sock 9.Thread stoped [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:06]recv_with_timeout no data received [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]int [00:21:18]Write to MH i2c: 01 00 00 A4 01 A5 [00:21:18]*** FLAG_PRN_KEY set [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 07 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 07 00 A4 01 00 08 00 00 00 FF 0F C2 [00:21:18]state=0 [00:21:18]Key pressed [00:21:18]Feed [00:21:18]Write to MH i2c: D8 00 00 A5 01 7D [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: D8 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: D8 01 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: D8 01 00 A5 01 00 7E [00:21:18]int [00:21:18]Write to MH i2c: 01 00 00 A6 01 A7 [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 07 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 07 00 A6 01 00 48 00 00 00 3C 00 32 [00:21:18]state=2 [00:21:18]Key pressed [00:21:18]OFD Sender: No OFD packet to send [00:21:19]int [00:21:19]Write to MH i2c: 01 00 00 A7 01 A8 [00:21:19]*** FLAG_PRN_KEY reset [00:21:19]Write i2c OK [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: 01 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: 01 07 00 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [00:21:19]state=2 [00:21:19]Stop feed [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:06]recv_with_timeout no data received [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:54]accept exits with 5 [00:23:54]New connection [00:23:54]New thread 3067145572 created [00:23:54]Thread 3067288932 joined [00:23:54]Waiting for new connection... [00:23:54] Sock 5.Parse request [00:23:54]Sock 5.Check first char [00:23:54]Sock 5.First char is OK [00:23:54]request: POST /json_proto HTTP/1.0 [00:23:54]Method: POST [00:23:54]URL: /json_proto [00:23:54]Method is POST - this is cgi request [00:23:54]url: /json_proto [00:23:54]query_string will be loaded in cgi processing [00:23:54]execute_cgi json_proto POST (null) [00:23:54]execute_cgi path=json_proto method=POST [00:23:54]POST find Content-Length [00:23:54]Host: 172.17.47.195:8080 [00:23:54]Content-Length: 682 [00:23:54]Content-Type: application/json [00:23:54] [00:23:54]POST finish read [00:23:54]Found Content-Length = 682 [00:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:54]execute_script... [00:23: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)872059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:54]POST & json_proto [00:23:54]process_json_proto [00:23:54]json parsed OK: [00:23:54]protocol is kg_v1.0 [00:23:54]action value=close_receipt [00:23:54]process_action close_receipt [00:23:54]cmd_close_receipt [00:23:54]MH_GetDate [00:23:54]Write to MH i2c: F0 00 00 A8 01 98 [00:23:54]Write i2c OK [00:23:54]MH_I2C_Read... [00:23:54]Read from MH i2c: F0 [00:23:54]MH_I2C_Read... [00:23:54]Read from MH i2c: F0 09 00 [00:23:54]MH_I2C_Read... [00:23:54]Read from MH i2c: F0 09 00 A8 01 00 1B B5 F0 66 96 2E 95 66 86 [00:23:54]GetLastDocTimeStamp 1727050822 [00:23:54]current date 1727051035 [00:23:54]FM_GetShiftState [00:23:54]SAM_PROTO_GetShiftState [00:23:54]wFMCommunicate request_size=4 [00:23:54]MH_SAM_APDU [00:23:54]CAPDU: 80 13 01 00 [00:23:54]Write to MH i2c: E2 08 00 A9 01 80 13 01 00 00 00 00 00 27 [00:23:54]Write i2c OK [00:23:54]MH_I2C_Read... [00:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:54]Read from MH i2c: E2 [00:23:54]MH_I2C_Read... [00:23:54]Read from MH i2c: E2 0E 00 [00:23:54]MH_I2C_Read... [00:23:54]Read from MH i2c: E2 0E 00 A9 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 83 [00:23:54]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:23:54]wFMCommunicate OK [00:23:54]SAM_PROTO_GetShiftState done [00:23:54]FM_GetShiftState done [00:23:54]opened in 1727050822 [00:23:54]opened+sec_in_day 1727137222 [00:23:54]quantity*price = 50063 [00:23:54]sum+1 = 50064 [00:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 1 23.09.2024 00:23 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7774 ФПД: 10013107846117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T002355&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7774&fm=10013107846117&tin=02508201610067®Number=0000000000190446&sum=50000 [00:23:55]StoreToDocumentArchive [00:23:55]shift 71 fd 7774 [00:23:55]save to /storage/0071/doc_00007774 [00:23:55]save last doc name /storage/0071/doc_00007774 to /storage/kkm_last_doc_name [00:23:55]save OK [00:23:55]Clear old archive folders... [00:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:23:55]tlvbuf is 019B2390 [00:23:55]SAM_PROTO_ClearQueue [00:23:55]wFMCommunicate request_size=4 [00:23:55]MH_SAM_APDU [00:23:55]CAPDU: 80 09 00 00 [00:23:55]Write to MH i2c: E2 08 00 B6 01 80 09 00 00 00 00 00 00 29 [00:23:55]Write i2c OK [00:23:55]MH_I2C_Read... [00:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:55]Read from MH i2c: E2 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 03 00 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 03 00 B6 01 00 90 00 2B [00:23:55]RAPDU: 90 00 [00:23:55]wFMCommunicate OK [00:23:55]SAM_PROTO_ClearQueue done [00:23:55]KKMCreateOFDPacket [00:23:55]OFDProtocolAddRootSTLVToBuf [00:23:55]FM_MakeSignedData [00:23:55]FM_MakeSignedData [00:23:55]SAM_PROTO_SignData [00:23:55]wFMCommunicate request_size=4 [00:23:55]MH_SAM_APDU [00:23:55]CAPDU: 80 0D 01 02 [00:23:55]Write to MH i2c: E2 08 00 B7 01 80 0D 01 02 00 00 00 00 31 [00:23:55]Write i2c OK [00:23:55]MH_I2C_Read... [00:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:55]Read from MH i2c: E2 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 03 00 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 03 00 B7 01 00 90 00 2C [00:23:55]RAPDU: 90 00 [00:23:55]wFMCommunicate OK [00:23:55]wFMCommunicate request_size=255 [00:23:55]MH_SAM_APDU [00:23:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 01 00 00 00 F4 03 04 00 1B B5 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5E 1E 00 00 35 04 06 00 [00:23:55]Write to MH i2c: E2 02 01 B8 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 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 1B B5 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5E 1E 00 00 35 04 06 00 00 00 0C [00:23:55]Write i2c OK [00:23:55]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 03 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 03 00 B8 01 00 90 00 2D [00:23:56]RAPDU: 90 00 [00:23:56]wFMCommunicate OK [00:23:56]wFMCommunicate request_size=11 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 0D 02 02 06 09 1B 5B BC 7B E5 [00:23:56]Write to MH i2c: E2 0E 00 B9 01 80 0D 02 02 06 00 09 1B 5B BC 7B E5 00 00 DB [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 03 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 03 00 B9 01 00 90 00 2E [00:23:56]RAPDU: 90 00 [00:23:56]wFMCommunicate OK [00:23:56]wFMCommunicate request_size=4 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 0D 03 02 [00:23:56]Write to MH i2c: E2 08 00 BA 01 80 0D 03 02 00 00 00 00 36 [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 0B 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 0B 00 BA 01 00 73 99 02 42 9A 03 93 78 90 00 2F [00:23:56]RAPDU: 73 99 02 42 9A 03 93 78 90 00 [00:23:56]wFMCommunicate OK [00:23:56]SAM_PROTO_SignData done [00:23:56]FM_MakeSignedData done [00:23:56]CreateOFDProtocolMessage [00:23:56]wFMCommunicate request_size=4 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 11 00 00 [00:23:56]Write to MH i2c: E2 08 00 BB 01 80 11 00 00 00 00 00 00 36 [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 17 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 17 00 BB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 87 [00:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:23:56]wFMCommunicate OK [00:23:56]CreateOFDProtocolMessage done [00:23:56]OFDSenderStorePacket 7774 [00:23:56]StoreOFDPacket docnum=7774 [00:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 84 4A 08 01 38 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 1B B5 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5E 1E 00 00 35 04 06 00 09 1B 5B BC 7B E5 73 99 02 42 9A 03 93 78 [00:23:56]CheckFolder [00:23:56]dirname=/storage/ofd_packets [00:23:56]CheckFolder done [00:23:56]ProducePacketName [00:23:56]name=ofd_packets/00007774 [00:23:56]NVStorageSaveData ofd_packets/00007774 [00:23:56]File name is /storage/ofd_packets/00007774 [00:23:56]Write 302 bytes [00:23:56]NVStorageSaveData done [00:23:56]OFDSenderStorePacket done [00:23:56]KKMCreateOFDPacket done [00:23:56]NVStorageSaveData kkm_last_timestamp [00:23:56]File name is /storage/kkm_last_timestamp [00:23:56]Write 4 bytes [00:23:56]NVStorageSaveData done [00:23:56]ExternCall_PrintAddStr [00:23:56]wPrintStart [00:23:56]Write to MH i2c: 01 00 00 BC 01 BD [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: 01 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: 01 07 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 FF 0F D2 [00:23:56]RasterBufferAndPrint [00:23:56]line Счет N : (1)872059 [00:23:56]line ИНН: 02508201610067 [00:23:56]line Контрольно-Кассовый Чек [00:23:56]line ПРОДАЖА [00:23:56]line ТРК (МРК, ГНК) : 34 [00:23:56]line Товар: 2710194210 [00:23:56]line ДТ(л)-К-4 [00:23:56]line 6.570 * 76.20 [00:23:56]line = 500.63 [00:23:56]line НДС 12% НСП 1% [00:23:56]line > о реализуемом товаре [00:23:56]line ОКРУГЛЕНИЕ: -0.63 [00:23:56]line ИТОГО: 500.00 [00:23:56]line Внесено: 500.00 [00:23:56]line СДАЧА: 0.00 [00:23:56]line НСП 1% : 4.43 [00:23:56]line НДС 12% : 53.16 [00:23:56]line Наличными: 500.00 [00:23:56]line Безнал.: 0.00 [00:23:56]line Место: АЗС № 137 "Партнер Нефть" [00:23:56]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:23:56]line СНО: Общий режим [00:23:56]line Чек 1 23.09.2024 00:23 [00:23:56]line Смена: 71 ФФД: 1.0 [00:23:56]line ЗНМ: 0300000041 [00:23:56]line РНМ: 0000000000190446 [00:23:56]line Версия ККМ: v1.0 [00:23:56]line ФМ: 0000000002094258 [00:23:56]line ФД: 7774 [00:23:56]line ФПД: 10013107846117 [00:23:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T002355&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7774&fm=10013107846117&tin=02508201610067®Number=0000000000190446&sum=50000 [00:23:56]OFD Sender: Processing packet 7774 [packets to send 51, broken 50] [00:23:56]ProducePacketName [00:23:56]name=ofd_packets/00007774 [00:23:56]OFD Sender: To server: pG, [00:23:56]CommunicateWithHost lk.salyk.kg:30040 [00:23:56]ConnectInit lk.salyk.kg [00:23:56]written 0, free lines is 4095 [00:23:57]Write to MH i2c: 01 00 00 E7 01 E8 [00:23:57]Write i2c OK [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: 01 [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: 01 07 00 [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: 01 07 00 E7 01 00 00 00 00 00 E3 0C DE [00:23:57]RasterBufferAndPrint [00:23:57]line [00:23:57]line [00:23:57]line [00:23:57]line [00:23:57]line [00:23:57]written 0, free lines is 3305 [00:23:57]MH_Cut [00:23:57]Write to MH i2c: D1 01 00 EE 01 01 C1 [00:23:57]Write i2c OK [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (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: 5998650+1721052822=1727051472 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 1C [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 30515 [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 60 00 FF FF 7F [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 D0 B6 F0 66 96 2E 95 66 9A [00:31:12]Current date/time: 23.09.2024 00:31 [00:31:12]FM_Init [00:31:12]wFMConnect [00:31:12]MH_SAM_On [00:31:12]Write to MH i2c: E0 00 00 08 00 E7 [00:31:12]Write i2c OK [00:31:12]MH_I2C_Read... [00:31:12]*** iso7816_init finished! [00:31:12]*** atr: [00:31:12]*** 0F 3B D5 18 FF 81 91 FE [00:31:12]*** 1F C3 80 73 C8 21 10 0A [00:31:12]*** 00 00 00 00 00 00 00 00 [00:31:12]*** 00 00 00 00 00 00 00 00 [00:31:12]*** 00 00 00 00 00 00 00 00 [00:31:12]*** 00 00 00 00 00 00 00 00 [00:31:12]*** 00 00 00 00 00 00 00 00 [00:31:12]*** 00 00 00 00 00 00 00 00 [00:31:12]Read from MH i2c: E0 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E0 10 00 [00:31:12]MH_I2C_Read... [00:31:12]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 [00:31:12]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:31:12]wFMCommunicate request_size=10 [00:31:12]MH_SAM_APDU [00:31:12]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:31:12]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:31:12]Write i2c OK [00:31:12]MH_I2C_Read... 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 D7 B6 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5F 1E 00 00 35 04 06 00 00 00 74 [00:31:20]Write i2c OK [00:31:20]MH_I2C_Read... [00:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:20]Read from MH i2c: E2 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: E2 03 00 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [00:31:20]RAPDU: 90 00 [00:31:20]wFMCommunicate OK [00:31:20]wFMCommunicate request_size=11 [00:31:20]MH_SAM_APDU [00:31:20]CAPDU: 80 0D 02 02 06 B4 BB 1B B6 6E EB [00:31:20]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 B4 BB 1B B6 6E EB 00 00 4D [00:31:20]Write i2c OK [00:31:20]MH_I2C_Read... [00:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:20]Read from MH i2c: E2 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: E2 03 00 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [00:31:20]RAPDU: 90 00 [00:31:20]wFMCommunicate OK [00:31:20]wFMCommunicate request_size=4 [00:31:20]MH_SAM_APDU [00:31:20]CAPDU: 80 0D 03 02 [00:31:20]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [00:31:20]Write i2c OK [00:31:20]MH_I2C_Read... [00:31:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:20]Read from MH i2c: E2 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: E2 0B 00 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: E2 0B 00 2F 00 00 33 27 66 37 9B 11 A9 9B 90 00 92 [00:31:20]RAPDU: 33 27 66 37 9B 11 A9 9B 90 00 [00:31:20]wFMCommunicate OK [00:31:20]SAM_PROTO_SignData done [00:31:20]FM_MakeSignedData done [00:31:20]CreateOFDProtocolMessage [00:31:20]wFMCommunicate request_size=4 [00:31:20]MH_SAM_APDU [00:31:20]CAPDU: 80 11 00 00 [00:31:20]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [00:31:20]Write i2c OK [00:31:20]MH_I2C_Read... [00:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:20]Read from MH i2c: E2 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: E2 17 00 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [00:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:31:20]wFMCommunicate OK [00:31:20]CreateOFDProtocolMessage done [00:31:20]OFDSenderStorePacket 7775 [00:31:20]StoreOFDPacket docnum=7775 [00:31:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 8F C9 08 01 A2 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 D7 B6 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 5F 1E 00 00 35 04 06 00 B4 BB 1B B6 6E EB 33 27 66 37 9B 11 A9 9B [00:31:20]CheckFolder [00:31:20]dirname=/storage/ofd_packets [00:31:20]CheckFolder done [00:31:20]ProducePacketName [00:31:20]name=ofd_packets/00007775 [00:31:20]NVStorageSaveData ofd_packets/00007775 [00:31:20]File name is /storage/ofd_packets/00007775 [00:31:20]Write 302 bytes [00:31:20]NVStorageSaveData done [00:31:20]OFDSenderStorePacket done [00:31:20]KKMCreateOFDPacket done [00:31:20]NVStorageSaveData kkm_last_timestamp [00:31:20]File name is /storage/kkm_last_timestamp [00:31:20]Write 4 bytes [00:31:20]NVStorageSaveData done [00:31:20]ExternCall_PrintAddStr [00:31:20]wPrintStart [00:31:20]Write to MH i2c: 01 00 00 31 00 31 [00:31:20]Write i2c OK [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: 01 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: 01 07 00 [00:31:20]MH_I2C_Read... [00:31:20]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [00:31:20]RasterBufferAndPrint [00:31:20]line Счет N : (1)872060 [00:31:20]line ИНН: 02508201610067 [00:31:20]line Контрольно-Кассовый Чек [00:31:20]line ПРОДАЖА [00:31:20]line ТРК (МРК, ГНК) : 34 [00:31:20]line Товар: 2710194210 [00:31:20]line ДТ(л)-К-4 [00:31:20]line 3.940 * 76.20 [00:31:20]line = 300.23 [00:31:20]line НДС 12% НСП 1% [00:31:20]line > о реализуемом товаре [00:31:20]line ОКРУГЛЕНИЕ: -0.23 [00:31:20]line ИТОГО: 300.00 [00:31:20]line Внесено: 300.00 [00:31:20]line СДАЧА: 0.00 [00:31:20]line НСП 1% : 2.66 [00:31:20]line НДС 12% : 31.88 [00:31:20]line Наличными: 300.00 [00:31:20]line Безнал.: 0.00 [00:31:20]line Место: АЗС № 137 "Партнер Нефть" [00:31:20]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:31:20]line СНО: Общий режим [00:31:20]line Чек 2 23.09.2024 00:31 [00:31:20]line Смена: 71 ФФД: 1.0 [00:31:20]line ЗНМ: 0300000041 [00:31:20]line РНМ: 0000000000190446 [00:31:20]line Версия ККМ: v1.0 [00:31:20]line ФМ: 0000000002094258 [00:31:20]line ФД: 7775 [00:31:20]line ФПД: 198715716824811 [00:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003119&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7775&fm=198715716824811&tin=02508201610067®Number=0000000000190446&sum=30000 [00:31:20]written 0, free lines is 4095 [00:31:21]OFD Sender: Processing packet 7774 [packets to send 52, broken 50] [00:31:21]ProducePacketName [00:31:21]name=ofd_packets/00007774 [00:31:21]OFD Sender: To server: pG, [00:31:21]CommunicateWithHost lk.salyk.kg:30040 [00:31:21]ConnectInit lk.salyk.kg [00:31:21]Write to MH i2c: 01 00 00 5C 00 5C [00:31:21]Write i2c OK [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: 01 [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: 01 07 00 [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 FC 0C 6B [00:31:21]RasterBufferAndPrint [00:31:21]line [00:31:21]line [00:31:21]line [00:31:21]line [00:31:21]line [00:31:21]written 0, free lines is 3345 [00:31:21]MH_Cut [00:31:21]Write to MH i2c: D1 01 00 63 00 01 35 [00:31:21]Write i2c OK [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: D1 [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: D1 01 00 [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: D1 01 00 63 00 00 34 [00:31:21]Write to MH i2c: 01 00 00 64 00 64 [00:31:21]Write i2c OK [00:31:21]MH_I2C_Read... [00:31:22]*** Cut start [00:31:22]*** Purtial cut [00:31:22]*** Stage 1: CUTSNS_PIN = 1 [00:31:22]Read from MH i2c: 01 *** Stop cut motor [00:31:22] [00:31:22]*** Cut end [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: 01 07 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [00:31:22]process_action close_receipt done [00:31:22]requested_data is exist [00:31:22]produce_requested_data [00:31:22]requested_item fm.sn is exist - process it [00:31:22]wFMCommunicate request_size=4 [00:31:22]MH_SAM_APDU [00:31:22]CAPDU: 80 11 00 00 [00:31:22]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:22]Read from MH i2c: E2 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 17 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [00:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:31:22]wFMCommunicate OK [00:31:22]requested_item fd.num is exist - process it [00:31:22]SAM_PROTO_GetFieldsCounters [00:31:22]wFMCommunicate request_size=4 [00:31:22]MH_SAM_APDU [00:31:22]CAPDU: 80 13 00 00 [00:31:22]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:22]Read from MH i2c: E2 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 62 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5F 1E 00 00 0E 04 04 00 47 00 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 CA [00:31:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 5F 1E 00 00 0E 04 04 00 47 00 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:31:22]wFMCommunicate OK [00:31:22]SAM_PROTO_GetFieldsCounters done [00:31:22]requested_item shift.num is exist - process it [00:31:22]requested_item shift.opened is exist - process it [00:31:22]req_shift_opened [00:31:22]FM_GetShiftState [00:31:22]SAM_PROTO_GetShiftState [00:31:22]wFMCommunicate request_size=4 [00:31:22]MH_SAM_APDU [00:31:22]CAPDU: 80 13 01 00 [00:31:22]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:22]Read from MH i2c: E2 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 0E 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 40 [00:31:22]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:31:22]wFMCommunicate OK [00:31:22]SAM_PROTO_GetShiftState done [00:31:22]FM_GetShiftState done [00:31:22]req_shift_opened done [00:31:22]requested_item shift.open_date is exist - process it [00:31:22]req_shift_open_date [00:31:22]req_shift_open_date done [00:31:22]produce_requested_data done [00:31:22]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7775,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:31:22]process_action_free close_receipt [00:31:22]json_value_free [00:31:22]json_value_free done [00:31:22]process_json_proto returns [00:31:22]Send response to host [00:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7775,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:31:22]free response buf [00:31:22]execute_script done [00:31:22]execute_script returns [00:31:22]free content buf [00:31:22]Sock 9.Close socket [00:31:22]Sock 9.Thread stoped [00:31:26]ConnectInit Can't take IP for lk.salyk.kg [00:31:26]CommunicateWithHost connect error [00:31:26]CommunicateWithHost err = -1 [00:31:26]OFD Sender: Server communicate error [00:31:29]recv_with_timeout no data received [00:31:31]OFD Sender: Processing packet 7774 [packets to send 52, broken 50] [00:31:31]ProducePacketName [00:31:31]name=ofd_packets/00007774 [00:31:31]OFD Sender: To server: pG, [00:31:31]CommunicateWithHost lk.salyk.kg:30040 [00:31:31]ConnectInit lk.salyk.kg [00:31:36]ConnectInit Can't take IP for lk.salyk.kg [00:31:36]CommunicateWithHost connect error [00:31:36]CommunicateWithHost err = -1 [00:31:36]OFD Sender: Server communicate error [00:31:41]OFD Sender: Processing packet 7774 [packets to send 52, broken 50] [00:31:41]ProducePacketName [00:31:41]name=ofd_packets/00007774 [00:31:41]OFD Sender: To server: pG, [00:31:41]CommunicateWithHost lk.salyk.kg:30040 [00:31:41]ConnectInit lk.salyk.kg [00:31:46]ConnectInit Can't take IP for lk.salyk.kg [00:31:46]CommunicateWithHost connect error [00:31:46]CommunicateWithHost err = -1 [00:31:46]OFD Sender: Server communicate error [00:31:51]OFD Sender: Processing packet 7774 [packets to send 52, broken 50] [00:31:51]ProducePacketName [00:31:51]name=ofd_packets/00007774 [00:31:51]OFD Sender: To server: pG, [00:31:51]CommunicateWithHost lk.salyk.kg:30040 [00:31:51]ConnectInit lk.salyk.kg [00:31:53]accept exits with 6 [00:31:53]New connection [00:31:53]New thread 3066830180 created [00:31:53]Thread 3066973540 joined [00:31:53]Waiting for new connection... [00:31:53] Sock 6.Parse request [00:31:53]Sock 6.Check first char [00:31:53]Sock 6.First char is OK [00:31:53]request: POST /json_proto HTTP/1.0 [00:31:53]Method: POST [00:31:53]URL: /json_proto [00:31:53]Method is POST - this is cgi request [00:31:53]url: /json_proto [00:31:53]query_string will be loaded in cgi processing [00:31:53]execute_cgi json_proto POST (null) [00:31:53]execute_cgi path=json_proto method=POST [00:31:53]POST find Content-Length [00:31:53]Host: 172.17.47.195:8080 [00:31:53]Content-Length: 677 [00:31:53]Content-Type: application/json [00:31:53] [00:31:53]POST finish read [00:31:53]Found Content-Length = 677 [00:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:53]execute_script... [00:31: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)872061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:53]POST & json_proto [00:31:53]process_json_proto [00:31:53]json parsed OK: [00:31:53]protocol is kg_v1.0 [00:31:53]action value=close_receipt [00:31:53]process_action close_receipt [00:31:53]cmd_close_receipt [00:31:53]MH_GetDate [00:31:53]Write to MH i2c: F0 00 00 68 00 57 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: F0 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: F0 09 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: F0 09 00 68 00 00 FA B6 F0 66 96 2E 95 66 25 [00:31:53]GetLastDocTimeStamp 1727051479 [00:31:53]current date 1727051514 [00:31:53]FM_GetShiftState [00:31:53]SAM_PROTO_GetShiftState [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 13 01 00 [00:31:53]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 0E 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 42 [00:31:53]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:31:53]wFMCommunicate OK [00:31:53]SAM_PROTO_GetShiftState done [00:31:53]FM_GetShiftState done [00:31:53]opened in 1727050822 [00:31:53]opened+sec_in_day 1727137222 [00:31:53]quantity*price = 50036 [00:31:53]sum+1 = 50037 [00:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 3 23.09.2024 00:31 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7776 ФПД: 87498596741681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003154&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7776&fm=87498596741681&tin=02508201610067®Number=0000000000190446&sum=50000 [00:31:54]StoreToDocumentArchive [00:31:54]shift 71 fd 7776 [00:31:54]save to /storage/0071/doc_00007776 [00:31:54]save last doc name /storage/0071/doc_00007776 to /storage/kkm_last_doc_name [00:31:54]save OK [00:31:54]Clear old archive folders... [00:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:31:54]tlvbuf is 009AA0B0 [00:31:54]SAM_PROTO_ClearQueue [00:31:54]wFMCommunicate request_size=4 [00:31:54]MH_SAM_APDU [00:31:54]CAPDU: 80 09 00 00 [00:31:54]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:54]Read from MH i2c: E2 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 03 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [00:31:54]RAPDU: 90 00 [00:31:54]wFMCommunicate OK [00:31:54]SAM_PROTO_ClearQueue done [00:31:54]KKMCreateOFDPacket [00:31:54]OFDProtocolAddRootSTLVToBuf [00:31:54]FM_MakeSignedData [00:31:54]FM_MakeSignedData [00:31:54]SAM_PROTO_SignData [00:31:54]wFMCommunicate request_size=4 [00:31:54]MH_SAM_APDU [00:31:54]CAPDU: 80 0D 01 02 [00:31:54]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:54]Read from MH i2c: E2 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 03 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [00:31:54]RAPDU: 90 00 [00:31:54]wFMCommunicate OK [00:31:54]wFMCommunicate request_size=255 [00:31:54]MH_SAM_APDU [00:31:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FA B6 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 60 1E 00 00 35 04 06 00 4F [00:31:54]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FA B6 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 60 1E 00 00 35 04 06 00 4F 00 00 89 [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [00:31:55]RAPDU: 90 00 [00:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=10 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 0D 02 02 05 94 5A C6 F2 31 [00:31:55]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 94 5A C6 F2 31 00 00 D4 [00:31:55]recv_with_timeout no data received [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [00:31:55]RAPDU: 90 00 [00:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=4 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 0D 03 02 [00:31:55]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 0B 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 0B 00 7A 00 00 C3 83 5D 15 BD CF 3F 62 90 00 DB [00:31:55]RAPDU: C3 83 5D 15 BD CF 3F 62 90 00 [00:31:55]wFMCommunicate OK [00:31:55]SAM_PROTO_SignData done [00:31:55]FM_MakeSignedData done [00:31:55]CreateOFDProtocolMessage [00:31:55]wFMCommunicate request_size=4 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 11 00 00 [00:31:55]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 17 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [00:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:31:55]wFMCommunicate OK [00:31:55]CreateOFDProtocolMessage done [00:31:55]OFDSenderStorePacket 7776 [00:31:55]StoreOFDPacket docnum=7776 [00:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 4F 1F 07 01 08 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FA B6 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 60 1E 00 00 35 04 06 00 4F 94 5A C6 F2 31 C3 83 5D 15 BD CF 3F 62 [00:31:55]CheckFolder [00:31:55]dirname=/storage/ofd_packets [00:31:55]CheckFolder done [00:31:55]ProducePacketName [00:31:55]name=ofd_packets/00007776 [00:31:55]NVStorageSaveData ofd_packets/00007776 [00:31:55]File name is /storage/ofd_packets/00007776 [00:31:55]Write 301 bytes [00:31:55]NVStorageSaveData done [00:31:55]OFDSenderStorePacket done [00:31:55]KKMCreateOFDPacket done [00:31:55]NVStorageSaveData kkm_last_timestamp [00:31:55]File name is /storage/kkm_last_timestamp [00:31:55]Write 4 bytes [00:31:55]NVStorageSaveData done [00:31:55]ExternCall_PrintAddStr [00:31:55]wPrintStart [00:31:55]Write to MH i2c: 01 00 00 7C 00 7C [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: 01 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: 01 07 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [00:31:55]RasterBufferAndPrint [00:31:55]line Счет N : (1)872061 [00:31:55]line ИНН: 02508201610067 [00:31:55]line Контрольно-Кассовый Чек [00:31:55]line ПРОДАЖА [00:31:55]line ТРК (МРК, ГНК) : 43 [00:31:55]line Товар: 2710124130 [00:31:55]line Аи-92-К-5 [00:31:55]line 7.380 * 67.80 [00:31:55]line = 500.36 [00:31:55]line НДС 12% НСП 1% [00:31:55]line > о реализуемом товаре [00:31:55]line ОКРУГЛЕНИЕ: -0.36 [00:31:55]line ИТОГО: 500.00 [00:31:55]line Внесено: 500.00 [00:31:55]line СДАЧА: 0.00 [00:31:55]line НСП 1% : 4.43 [00:31:55]line НДС 12% : 53.14 [00:31:55]line Наличными: 500.00 [00:31:55]line Безнал.: 0.00 [00:31:55]line Место: АЗС № 137 "Партнер Нефть" [00:31:55]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:31:55]line СНО: Общий режим [00:31:55]line Чек 3 23.09.2024 00:31 [00:31:55]line Смена: 71 ФФД: 1.0 [00:31:55]line ЗНМ: 0300000041 [00:31:55]line РНМ: 0000000000190446 [00:31:55]line Версия ККМ: v1.0 [00:31:55]line ФМ: 0000000002094258 [00:31:55]line ФД: 7776 [00:31:55]line ФПД: 87498596741681 [00:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003154&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7776&fm=87498596741681&tin=02508201610067®Number=0000000000190446&sum=50000 [00:31:55]written 0, free lines is 4095 [00:31:55]Write to MH i2c: 01 00 00 A7 00 A7 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: 01 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: 01 07 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 F0 0C AA [00:31:55]RasterBufferAndPrint [00:31:55]line [00:31:55]line [00:31:55]line [00:31:55]line [00:31:55]line [00:31:55]written 0, free lines is 3339 [00:31:55]MH_Cut [00:31:55]Write to MH i2c: D1 01 00 AE 00 01 80 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: D1 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: D1 01 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: D1 01 00 AE 00 00 7F [00:31:55]Write to MH i2c: 01 00 00 AF 00 AF [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:56]ConnectInit Can't take IP for lk.salyk.kg [00:31:56]CommunicateWithHost connect error [00:31:56]CommunicateWithHost err = -1 [00:31:56]OFD Sender: Server communicate error [00:31:56]OFD Sender: Processing packet 7774 [packets to send 53, broken 50] [00:31:56]ProducePacketName [00:31:56]name=ofd_packets/00007774 [00:31:56]OFD Sender: To server: pG, [00:31:56]CommunicateWithHost lk.salyk.kg:30040 [00:31:56]ConnectInit lk.salyk.kg [00:31:56]*** Cut start [00:31:56]*** Purtial cut [00:31:56]*** Stage 1: CUTSNS_PIN = 1 [00:31:56]Read from MH i2c: 01 [00:31:56]MH_I2C_Read... [00:31:56]*** Stop cut motor [00:31:56]*** Cut end [00:31:56]Read from MH i2c: 01 07 00 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [00:31:56]process_action close_receipt done [00:31:56]requested_data is exist [00:31:56]produce_requested_data [00:31:56]requested_item fm.sn is exist - process it [00:31:56]wFMCommunicate request_size=4 [00:31:56]MH_SAM_APDU [00:31:56]CAPDU: 80 11 00 00 [00:31:56]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [00:31:56]Write i2c OK [00:31:56]MH_I2C_Read... [00:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:56]Read from MH i2c: E2 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 17 00 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [00:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:31:56]wFMCommunicate OK [00:31:56]requested_item fd.num is exist - process it [00:31:56]SAM_PROTO_GetFieldsCounters [00:31:56]wFMCommunicate request_size=4 [00:31:56]MH_SAM_APDU [00:31:56]CAPDU: 80 13 00 00 [00:31:56]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [00:31:56]Write i2c OK [00:31:56]MH_I2C_Read... [00:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:57]Read from MH i2c: E2 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 62 00 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 60 1E 00 00 0E 04 04 00 47 00 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 19 [00:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 60 1E 00 00 0E 04 04 00 47 00 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:31:57]wFMCommunicate OK [00:31:57]SAM_PROTO_GetFieldsCounters done [00:31:57]requested_item shift.num is exist - process it [00:31:57]requested_item shift.opened is exist - process it [00:31:57]req_shift_opened [00:31:57]FM_GetShiftState [00:31:57]SAM_PROTO_GetShiftState [00:31:57]wFMCommunicate request_size=4 [00:31:57]MH_SAM_APDU [00:31:57]CAPDU: 80 13 01 00 [00:31:57]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [00:31:57]Write i2c OK [00:31:57]MH_I2C_Read... [00:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:57]Read from MH i2c: E2 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 0E 00 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 8B [00:31:57]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:31:57]wFMCommunicate OK [00:31:57]SAM_PROTO_GetShiftState done [00:31:57]FM_GetShiftState done [00:31:57]req_shift_opened done [00:31:57]requested_item shift.open_date is exist - process it [00:31:57]req_shift_open_date [00:31:57]req_shift_open_date done [00:31:57]produce_requested_data done [00:31:57]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7776,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:31:57]process_action_free close_receipt [00:31:57]json_value_free [00:31:57]json_value_free done [00:31:57]process_json_proto returns [00:31:57]Send response to host [00:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7776,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:31:57]free response buf [00:31:57]execute_script done [00:31:57]execute_script returns [00:31:57]free content buf [00:31:57]Sock 6.Close socket [00:31:57]Sock 6.Thread stoped [00:32:01]ConnectInit Can't take IP for lk.salyk.kg [00:32:01]CommunicateWithHost connect error [00:32:01]CommunicateWithHost err = -1 [00:32:01]OFD Sender: Server communicate error [00:32:06]OFD Sender: Processing packet 7774 [packets to send 53, broken 50] [00:32:06]ProducePacketName [00:32:06]name=ofd_packets/00007774 [00:32:06]OFD Sender: To server: pG, [00:32:06]CommunicateWithHost lk.salyk.kg:30040 [00:32:06]ConnectInit lk.salyk.kg [00:32:11]ConnectInit Can't take IP for lk.salyk.kg [00:32:11]CommunicateWithHost connect error [00:32:11]CommunicateWithHost err = -1 [00:32:11]OFD Sender: Server communicate error [00:32:16]OFD Sender: Processing packet 7774 [packets to send 53, broken 50] [00:32:16]ProducePacketName [00:32:16]name=ofd_packets/00007774 [00:32:16]OFD Sender: To server: pG, [00:32:16]CommunicateWithHost lk.salyk.kg:30040 [00:32:16]ConnectInit lk.salyk.kg [00:32:21]ConnectInit Can't take IP for lk.salyk.kg [00:32:21]CommunicateWithHost connect error [00:32:21]CommunicateWithHost err = -1 [00:32:21]OFD Sender: Server communicate error [00:32:26]OFD Sender: Processing packet 7774 [packets to send 53, broken 50] [00:32:26]ProducePacketName [00:32:26]name=ofd_packets/00007774 [00:32:26]OFD Sender: To server: pG, [00:32:26]CommunicateWithHost lk.salyk.kg:30040 [00:32:26]ConnectInit lk.salyk.kg [00:32:26]recv_with_timeout no data received [00:32:31]ConnectInit Can't take IP for lk.salyk.kg [00:32:31]CommunicateWithHost connect error [00:32:31]CommunicateWithHost err = -1 [00:32:31]OFD Sender: Server communicate error [00:32:31]ConnectInit Can't connect to host [00:32:36]OFD Sender: Processing packet 7774 [packets to send 53, broken 50] [00:32:36]ProducePacketName [00:32:36]name=ofd_packets/00007774 [00:32:36]OFD Sender: To server: pG, [00:32:36]CommunicateWithHost lk.salyk.kg:30040 [00:32:36]ConnectInit lk.salyk.kg [00:32:39]ConnectInit Can't connect to host [00:32:41]ConnectInit Can't take IP for lk.salyk.kg [00:32:41]CommunicateWithHost connect error [00:32:41]CommunicateWithHost err = -1 [00:32:41]OFD Sender: Server communicate error [00:32:45]ConnectInit Can't connect to host [00:32:46]OFD Sender: Processing packet 7774 [packets to send 53, broken 50] [00:32:46]ProducePacketName [00:32:46]name=ofd_packets/00007774 [00:32:46]OFD Sender: To server: pG, [00:32:46]CommunicateWithHost lk.salyk.kg:30040 [00:32:46]ConnectInit lk.salyk.kg [00:32:51]ConnectInit Can't take IP for lk.salyk.kg [00:32:51]CommunicateWithHost connect error [00:32:51]CommunicateWithHost err = -1 [00:32:51]OFD Sender: Server communicate error [00:32:56]OFD Sender: Processing packet 7774 [packets to send 53, broken 50] [00:32:56]ProducePacketName [00:32:56]name=ofd_packets/00007774 [00:32:56]OFD Sender: To server: pG, [00:32:56]CommunicateWithHost lk.salyk.kg:30040 [00:32:56]ConnectInit lk.salyk.kg [00:32:57]recv_with_timeout no data received [00:33:01]ConnectInit Can't take IP for lk.salyk.kg [00:33:01]CommunicateWithHost connect error [00:33:01]CommunicateWithHost err = -1 [00:33:01]OFD Sender: Server communicate error [00:33:01]accept exits with 12 [00:33:01]New connection [00:33:01]New thread 3066973540 created [00:33:01]Thread 3066830180 joined [00:33:01]Waiting for new connection... [00:33:01] Sock 12.Parse request [00:33:01]Sock 12.Check first char [00:33:01]Sock 12.First char is OK [00:33:01]request: POST /json_proto HTTP/1.0 [00:33:01]Method: POST [00:33:01]URL: /json_proto [00:33:01]Method is POST - this is cgi request [00:33:01]url: /json_proto [00:33:01]query_string will be loaded in cgi processing [00:33:01]execute_cgi json_proto POST (null) [00:33:01]execute_cgi path=json_proto method=POST [00:33:01]POST find Content-Length [00:33:01]Host: 172.17.47.195:8080 [00:33:01]Content-Length: 677 [00:33:01]Content-Type: application/json [00:33:01] [00:33:01]POST finish read [00:33:01]Found Content-Length = 677 [00:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872063", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:01]execute_script... [00:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872063", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:01]POST & json_proto [00:33:01]process_json_proto [00:33:01]json parsed OK: [00:33:01]protocol is kg_v1.0 [00:33:01]action value=close_receipt [00:33:01]process_action close_receipt [00:33:01]cmd_close_receipt [00:33:01]MH_GetDate [00:33:01]Write to MH i2c: F0 00 00 B3 00 A2 [00:33:01]Write i2c OK [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: F0 [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: F0 09 00 [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: F0 09 00 B3 00 00 3E B7 F0 66 96 2E 95 66 B5 [00:33:01]GetLastDocTimeStamp 1727051514 [00:33:01]current date 1727051582 [00:33:01]FM_GetShiftState [00:33:01]SAM_PROTO_GetShiftState [00:33:01]wFMCommunicate request_size=4 [00:33:01]MH_SAM_APDU [00:33:01]CAPDU: 80 13 01 00 [00:33:01]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [00:33:01]Write i2c OK [00:33:01]MH_I2C_Read... [00:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:01]Read from MH i2c: E2 [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: E2 0E 00 [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 8D [00:33:01]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:33:01]wFMCommunicate OK [00:33:01]SAM_PROTO_GetShiftState done [00:33:01]FM_GetShiftState done [00:33:01]opened in 1727050822 [00:33:01]opened+sec_in_day 1727137222 [00:33:01]quantity*price = 40002 [00:33:01]sum+1 = 40003 [00:33:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 5 23.09.2024 00:36 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7778 ФПД: 172840598742265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003603&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7778&fm=172840598742265&tin=02508201610067®Number=0000000000190446&sum=50000 [00:36:04]StoreToDocumentArchive [00:36:04]shift 71 fd 7778 [00:36:04]save to /storage/0071/doc_00007778 [00:36:04]save last doc name /storage/0071/doc_00007778 to /storage/kkm_last_doc_name [00:36:04]save OK [00:36:04]Clear old archive folders... [00:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:04]tlvbuf is 00F14D30 [00:36:04]SAM_PROTO_ClearQueue [00:36:04]wFMCommunicate request_size=4 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 09 00 00 [00:36:04]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 [00:36:04]MH_I2C_Read... [00:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:04]Read from MH i2c: E2 03 00 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [00:36:04]RAPDU: 90 00 [00:36:04]wFMCommunicate OK [00:36:04]SAM_PROTO_ClearQueue done [00:36:04]KKMCreateOFDPacket [00:36:04]OFDProtocolAddRootSTLVToBuf [00:36:04]FM_MakeSignedData [00:36:04]FM_MakeSignedData [00:36:04]SAM_PROTO_SignData [00:36:04]wFMCommunicate request_size=4 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 0D 01 02 [00:36:04]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:04]Read from MH i2c: E2 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 03 00 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [00:36:04]RAPDU: 90 00 [00:36:04]wFMCommunicate OK [00:36:04]wFMCommunicate request_size=255 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F3 B7 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 62 1E 00 00 35 04 06 00 9D [00:36:04]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F3 B7 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 62 1E 00 00 35 04 06 00 9D 00 00 8A [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:04]Read from MH i2c: E2 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 03 00 [00:36:04]MH_I2C_Read... [00:36:04]Connected sock=10 [00:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 A6 F0 07 01 87 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 3E B7 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 61 1E 00 00 35 04 06 00 C0 7C 8B C6 EE AA 81 C2 84 2F 31 BE 3B D6 [00:36:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [00:36:04]RAPDU: 90 00 [00:36:04]wFMCommunicate OK [00:36:04]wFMCommunicate request_size=10 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 0D 02 02 05 32 96 7D A4 F9 [00:36:04]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 32 96 7D A4 F9 00 00 94 [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 03 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [00:36:05]RAPDU: 90 00 [00:36:05]wFMCommunicate OK [00:36:05]wFMCommunicate request_size=4 [00:36:05]MH_SAM_APDU [00:36:05]CAPDU: 80 0D 03 02 [00:36:05]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 0B 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 0B 00 2F 00 00 84 F7 50 92 08 E8 11 45 90 00 4E [00:36:05]RAPDU: 84 F7 50 92 08 E8 11 45 90 00 [00:36:05]wFMCommunicate OK [00:36:05]SAM_PROTO_SignData done [00:36:05]FM_MakeSignedData done [00:36:05]CreateOFDProtocolMessage [00:36:05]wFMCommunicate request_size=4 [00:36:05]MH_SAM_APDU [00:36:05]CAPDU: 80 11 00 00 [00:36:05]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 17 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FB [00:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:36:05]wFMCommunicate OK [00:36:05]CreateOFDProtocolMessage done [00:36:05]OFDSenderStorePacket 7778 [00:36:05]StoreOFDPacket docnum=7778 [00:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 5B B5 07 01 91 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F3 B7 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 62 1E 00 00 35 04 06 00 9D 32 96 7D A4 F9 84 F7 50 92 08 E8 11 45 [00:36:05]CheckFolder [00:36:05]dirname=/storage/ofd_packets [00:36:05]CheckFolder done [00:36:05]ProducePacketName [00:36:05]name=ofd_packets/00007778 [00:36:05]NVStorageSaveData ofd_packets/00007778 [00:36:05]File name is /storage/ofd_packets/00007778 [00:36:05]Write 301 bytes [00:36:05]NVStorageSaveData done [00:36:05]OFDSenderStorePacket done [00:36:05]KKMCreateOFDPacket done [00:36:05]NVStorageSaveData kkm_last_timestamp [00:36:05]File name is /storage/kkm_last_timestamp [00:36:05]Write 4 bytes [00:36:05]NVStorageSaveData done [00:36:05]ExternCall_PrintAddStr [00:36:05]wPrintStart [00:36:05]Write to MH i2c: 01 00 00 31 00 31 [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 07 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [00:36:05]RasterBufferAndPrint [00:36:05]line Счет N : (1)872064 [00:36:05]line ИНН: 02508201610067 [00:36:05]line Контрольно-Кассовый Чек [00:36:05]line ПРОДАЖА [00:36:05]line ТРК (МРК, ГНК) : 43 [00:36:05]line Товар: 2710124130 [00:36:05]line Аи-92-К-5 [00:36:05]line 7.380 * 67.80 [00:36:05]line = 500.36 [00:36:05]line НДС 12% НСП 1% [00:36:05]line > о реализуемом товаре [00:36:05]line ОКРУГЛЕНИЕ: -0.36 [00:36:05]line ИТОГО: 500.00 [00:36:05]line Внесено: 500.00 [00:36:05]line СДАЧА: 0.00 [00:36:05]line НСП 1% : 4.43 [00:36:05]line НДС 12% : 53.14 [00:36:05]line Наличными: 500.00 [00:36:05]line Безнал.: 0.00 [00:36:05]line Место: АЗС № 137 "Партнер Нефть" [00:36:05]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:36:05]line СНО: Общий режим [00:36:05]line Чек 5 23.09.2024 00:36 [00:36:05]line Смена: 71 ФФД: 1.0 [00:36:05]line ЗНМ: 0300000041 [00:36:05]line РНМ: 0000000000190446 [00:36:05]line Версия ККМ: v1.0 [00:36:05]line ФМ: 0000000002094258 [00:36:05]line ФД: 7778 [00:36:05]line ФПД: 172840598742265 [00:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003603&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7778&fm=172840598742265&tin=02508201610067®Number=0000000000190446&sum=50000 [00:36:05]written 0, free lines is 4095 [00:36:05]Write to MH i2c: 01 00 00 5C 00 5C [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 07 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F5 0C 64 [00:36:05]RasterBufferAndPrint [00:36:05]line [00:36:05]line [00:36:05]line [00:36:05]line [00:36:05]line [00:36:05]written 0, free lines is 3341 [00:36:05]MH_Cut [00:36:05]Write to MH i2c: D1 01 00 63 00 01 35 [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: D1 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: D1 01 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: D1 01 00 63 00 00 34 [00:36:05]Write to MH i2c: 01 00 00 64 00 64 [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:06]*** Cut start [00:36:06]*** Purtial cut [00:36:06]*** Stage 1: CUTSNS_PIN = 1 [00:36:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 44 1D 47 00 B5 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 32 30 39 34 32 35 38 10 04 04 00 61 1E 00 00 F4 03 04 00 B0 62 F0 66 B6 04 01 00 00 B4 F0 93 18 E3 5E 2B B0 [00:36:06]CommunicateWithHost err = 0 [00:36:06]CheckOFDResponse [00:36:06]1017 (14) - 77093643461234 [00:36:06]1041 (16) - 0000000002094258 [00:36:06]1040 (4) - 7777 [00:36:06]1012 (4) - 22.09.2024 18:32 [00:36:06]1206 (1) - 0 [00:36:06]OFD Sender: Remove packet 7777 [00:36:06]ProducePacketName [00:36:06]name=ofd_packets/00007777 [00:36:06]NVStorageDeleteData [00:36:06]Read from MH i2c: 01 *** Stop cut motor [00:36:06] [00:36:06]*** Cut end [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: 01 07 00 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [00:36:06]process_action close_receipt done [00:36:06]requested_data is exist [00:36:06]produce_requested_data [00:36:06]requested_item fm.sn is exist - process it [00:36:06]wFMCommunicate request_size=4 [00:36:06]MH_SAM_APDU [00:36:06]CAPDU: 80 11 00 00 [00:36:06]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [00:36:06]Write i2c OK [00:36:06]MH_I2C_Read... [00:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:06]Read from MH i2c: E2 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 17 00 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 30 [00:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:36:06]wFMCommunicate OK [00:36:06]requested_item fd.num is exist - process it [00:36:06]SAM_PROTO_GetFieldsCounters [00:36:06]wFMCommunicate request_size=4 [00:36:06]MH_SAM_APDU [00:36:06]CAPDU: 80 13 00 00 [00:36:06]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [00:36:06]Write i2c OK [00:36:06]MH_I2C_Read... [00:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:06]Read from MH i2c: E2 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 62 00 [00:36:06]MH_I2C_Read... [00:36:06]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 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 62 1E 00 00 0E 04 04 00 47 00 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 D6 [00:36:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 62 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:06]wFMCommunicate OK [00:36:06]SAM_PROTO_GetFieldsCounters done [00:36:06]requested_item shift.num is exist - process it [00:36:06]requested_item shift.opened is exist - process it [00:36:06]req_shift_opened [00:36:06]FM_GetShiftState [00:36:06]SAM_PROTO_GetShiftState [00:36:06]wFMCommunicate request_size=4 [00:36:06]MH_SAM_APDU [00:36:06]CAPDU: 80 13 01 00 [00:36:06]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [00:36:06]OFD Sender: Processing packet 7778 [packets to send 51, broken 50] [00:36:06]ProducePacketName [00:36:06]name=ofd_packets/00007778 [00:36:06]OFD Sender: To server: pG, [00:36:06]CommunicateWithHost lk.salyk.kg:30040 [00:36:06]ConnectInit lk.salyk.kg [00:36:06]Write i2c OK [00:36:06]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 0E 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 40 [00:36:07]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:36:07]wFMCommunicate OK [00:36:07]SAM_PROTO_GetShiftState done [00:36:07]FM_GetShiftState done [00:36:07]req_shift_opened done [00:36:07]requested_item shift.open_date is exist - process it [00:36:07]req_shift_open_date [00:36:07]req_shift_open_date done [00:36:07]produce_requested_data done [00:36:07]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7778,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:36:07]process_action_free close_receipt [00:36:07]json_value_free [00:36:07]json_value_free done [00:36:07]process_json_proto returns [00:36:07]Send response to host [00:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7778,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:36:07]free response buf [00:36:07]execute_script done [00:36:07]execute_script returns [00:36:07]free content buf [00:36:07]Sock 9.Close socket [00:36:07]Sock 9.Thread stoped [00:36:11]ConnectInit Can't take IP for lk.salyk.kg [00:36:11]CommunicateWithHost connect error [00:36:11]CommunicateWithHost err = -1 [00:36:11]OFD Sender: Server communicate error [00:36:12]OFD Sender: Processing packet 7778 [packets to send 51, broken 50] [00:36:12]ProducePacketName [00:36:12]name=ofd_packets/00007778 [00:36:12]OFD Sender: To server: pG, [00:36:12]CommunicateWithHost lk.salyk.kg:30040 [00:36:12]ConnectInit lk.salyk.kg [00:36:14]Connected sock=7 [00:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 5B B5 07 01 91 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F3 B7 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 62 1E 00 00 35 04 06 00 9D 32 96 7D A4 F9 84 F7 50 92 08 E8 11 45 [00:36:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 00 2B 47 00 89 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 62 1E 00 00 F4 03 04 00 BD 62 F0 66 B6 04 01 00 00 0E 62 3B 70 B4 22 27 80 [00:36:19]CommunicateWithHost err = 0 [00:36:19]CheckOFDResponse [00:36:19]1017 (14) - 77093643461234 [00:36:19]1041 (16) - 0000000002094258 [00:36:19]1040 (4) - 7778 [00:36:19]1012 (4) - 22.09.2024 18:32 [00:36:19]1206 (1) - 0 [00:36:19]OFD Sender: Remove packet 7778 [00:36:19]ProducePacketName [00:36:19]name=ofd_packets/00007778 [00:36:19]NVStorageDeleteData [00:36:19]recv_with_timeout no data received [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:56]accept exits with 11 [00:36:56]New connection [00:36:56]New thread 3066637668 created [00:36:56]Thread 3066781028 joined [00:36:56]Waiting for new connection... [00:36:56] Sock 11.Parse request [00:36:56]Sock 11.Check first char [00:36:56]Sock 11.First char is OK [00:36:56]request: POST /json_proto HTTP/1.0 [00:36:56]Method: POST [00:36:56]URL: /json_proto [00:36:56]Method is POST - this is cgi request [00:36:56]url: /json_proto [00:36:56]query_string will be loaded in cgi processing [00:36:56]execute_cgi json_proto POST (null) [00:36:56]execute_cgi path=json_proto method=POST [00:36:56]POST find Content-Length [00:36:56]Host: 172.17.47.195:8080 [00:36:56]Content-Length: 678 [00:36:56]Content-Type: application/json [00:36:56] [00:36:56]POST finish read [00:36:56]Found Content-Length = 678 [00:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872069", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:56]execute_script... [00:36: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)872069", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:56]POST & json_proto [00:36:56]process_json_proto [00:36:56]json parsed OK: [00:36:56]protocol is kg_v1.0 [00:36:56]action value=close_receipt [00:36:56]process_action close_receipt [00:36:56]cmd_close_receipt [00:36:56]MH_GetDate [00:36:56]Write to MH i2c: F0 00 00 68 00 57 [00:36:56]Write i2c OK [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: F0 [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: F0 09 00 [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: F0 09 00 68 00 00 28 B8 F0 66 96 2E 95 66 55 [00:36:56]GetLastDocTimeStamp 1727051763 [00:36:56]current date 1727051816 [00:36:56]FM_GetShiftState [00:36:56]SAM_PROTO_GetShiftState [00:36:56]wFMCommunicate request_size=4 [00:36:56]MH_SAM_APDU [00:36:56]CAPDU: 80 13 01 00 [00:36:56]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [00:36:56]Write i2c OK [00:36:56]MH_I2C_Read... [00:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:56]Read from MH i2c: E2 [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: E2 0E 00 [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 42 [00:36:56]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:36:56]wFMCommunicate OK [00:36:56]SAM_PROTO_GetShiftState done [00:36:56]FM_GetShiftState done [00:36:56]opened in 1727050822 [00:36:56]opened+sec_in_day 1727137222 [00:36:56]quantity*price = 70037 [00:36:56]sum+1 = 70038 [00:36:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 6 23.09.2024 00:36 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7779 ФПД: 46724764013522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003656&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7779&fm=46724764013522&tin=02508201610067®Number=0000000000190446&sum=70000 [00:36:57]StoreToDocumentArchive [00:36:57]shift 71 fd 7779 [00:36:57]save to /storage/0071/doc_00007779 [00:36:57]save last doc name /storage/0071/doc_00007779 to /storage/kkm_last_doc_name [00:36:57]save OK [00:36:57]Clear old archive folders... [00:36:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:57]tlvbuf is 00ED57D0 [00:36:57]SAM_PROTO_ClearQueue [00:36:57]wFMCommunicate request_size=4 [00:36:57]MH_SAM_APDU [00:36:57]CAPDU: 80 09 00 00 [00:36:57]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [00:36:57]Write i2c OK [00:36:57]MH_I2C_Read... [00:36:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:57]Read from MH i2c: E2 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 03 00 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [00:36:57]RAPDU: 90 00 [00:36:57]wFMCommunicate OK [00:36:57]SAM_PROTO_ClearQueue done [00:36:57]KKMCreateOFDPacket [00:36:57]OFDProtocolAddRootSTLVToBuf [00:36:57]FM_MakeSignedData [00:36:57]FM_MakeSignedData [00:36:57]SAM_PROTO_SignData [00:36:57]wFMCommunicate request_size=4 [00:36:57]MH_SAM_APDU [00:36:57]CAPDU: 80 0D 01 02 [00:36:57]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [00:36:57]Write i2c OK [00:36:57]MH_I2C_Read... [00:36:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:57]Read from MH i2c: E2 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 03 00 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [00:36:57]RAPDU: 90 00 [00:36:57]wFMCommunicate OK [00:36:57]wFMCommunicate request_size=255 [00:36:57]MH_SAM_APDU [00:36: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 28 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 63 1E 00 00 35 04 06 00 2A [00:36:57]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 28 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 63 1E 00 00 35 04 06 00 2A 00 00 81 [00:36:57]Write i2c OK [00:36:57]MH_I2C_Read... [00:36:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:57]Read from MH i2c: E2 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 03 00 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [00:36:57]RAPDU: 90 00 [00:36:57]wFMCommunicate OK [00:36:57]wFMCommunicate request_size=10 [00:36:57]MH_SAM_APDU [00:36:57]CAPDU: 80 0D 02 02 05 7E F4 F6 13 D2 [00:36:57]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 7E F4 F6 13 D2 00 00 4A [00:36:57]Write i2c OK [00:36:57]MH_I2C_Read... [00:36:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:57]Read from MH i2c: E2 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 03 00 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [00:36:57]RAPDU: 90 00 [00:36:57]wFMCommunicate OK [00:36:57]wFMCommunicate request_size=4 [00:36:57]MH_SAM_APDU [00:36:57]CAPDU: 80 0D 03 02 [00:36:57]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [00:36:57]Write i2c OK [00:36:57]MH_I2C_Read... [00:36:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:57]Read from MH i2c: E2 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 0B 00 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: E2 0B 00 7A 00 00 5A 23 1E A7 90 9A 8E EC 90 00 DC [00:36:57]RAPDU: 5A 23 1E A7 90 9A 8E EC 90 00 [00:36:57]wFMCommunicate OK [00:36:57]SAM_PROTO_SignData done [00:36:57]FM_MakeSignedData done [00:36:57]CreateOFDProtocolMessage [00:36:57]wFMCommunicate request_size=4 [00:36:57]MH_SAM_APDU [00:36:57]CAPDU: 80 11 00 00 [00:36:57]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [00:36:57]Write i2c OK [00:36:57]MH_I2C_Read... [00:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:58]Read from MH i2c: E2 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 17 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 46 [00:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:36:58]wFMCommunicate OK [00:36:58]CreateOFDProtocolMessage done [00:36:58]OFDSenderStorePacket 7779 [00:36:58]StoreOFDPacket docnum=7779 [00:36:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 A7 43 07 01 07 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 28 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 63 1E 00 00 35 04 06 00 2A 7E F4 F6 13 D2 5A 23 1E A7 90 9A 8E EC [00:36:58]CheckFolder [00:36:58]dirname=/storage/ofd_packets [00:36:58]CheckFolder done [00:36:58]ProducePacketName [00:36:58]name=ofd_packets/00007779 [00:36:58]NVStorageSaveData ofd_packets/00007779 [00:36:58]File name is /storage/ofd_packets/00007779 [00:36:58]Write 301 bytes [00:36:58]NVStorageSaveData done [00:36:58]OFDSenderStorePacket done [00:36:58]KKMCreateOFDPacket done [00:36:58]NVStorageSaveData kkm_last_timestamp [00:36:58]File name is /storage/kkm_last_timestamp [00:36:58]Write 4 bytes [00:36:58]NVStorageSaveData done [00:36:58]ExternCall_PrintAddStr [00:36:58]wPrintStart [00:36:58]Write to MH i2c: 01 00 00 7C 00 7C [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 07 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [00:36:58]RasterBufferAndPrint [00:36:58]line Счет N : (1)872069 [00:36:58]line ИНН: 02508201610067 [00:36:58]line Контрольно-Кассовый Чек [00:36:58]line ПРОДАЖА [00:36:58]line ТРК (МРК, ГНК) : 53 [00:36:58]line Товар: 2710124130 [00:36:58]line Аи-92-К-5 [00:36:58]line 10.330 * 67.80 [00:36:58]line = 700.37 [00:36:58]line НДС 12% НСП 1% [00:36:58]line > о реализуемом товаре [00:36:58]line ОКРУГЛЕНИЕ: -0.37 [00:36:58]line ИТОГО: 700.00 [00:36:58]line Внесено: 700.00 [00:36:58]line СДАЧА: 0.00 [00:36:58]line НСП 1% : 6.20 [00:36:58]line НДС 12% : 74.38 [00:36:58]line Наличными: 700.00 [00:36:58]line Безнал.: 0.00 [00:36:58]line Место: АЗС № 137 "Партнер Нефть" [00:36:58]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:36:58]line СНО: Общий режим [00:36:58]line Чек 6 23.09.2024 00:36 [00:36:58]line Смена: 71 ФФД: 1.0 [00:36:58]line ЗНМ: 0300000041 [00:36:58]line РНМ: 0000000000190446 [00:36:58]line Версия ККМ: v1.0 [00:36:58]line ФМ: 0000000002094258 [00:36:58]line ФД: 7779 [00:36:58]line ФПД: 46724764013522 [00:36:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003656&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7779&fm=46724764013522&tin=02508201610067®Number=0000000000190446&sum=70000 [00:36:58]written 0, free lines is 4095 [00:36:58]OFD Sender: Processing packet 7779 [packets to send 51, broken 50] [00:36:58]ProducePacketName [00:36:58]name=ofd_packets/00007779 [00:36:58]OFD Sender: To server: pG, [00:36:58]CommunicateWithHost lk.salyk.kg:30040 [00:36:58]ConnectInit lk.salyk.kg [00:36:58]Write to MH i2c: 01 00 00 A7 00 A7 [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 07 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 E7 0C A1 [00:36:58]RasterBufferAndPrint [00:36:58]line [00:36:58]line [00:36:58]line [00:36:58]line [00:36:58]line [00:36:58]written 0, free lines is 3312 [00:36:58]MH_Cut [00:36:58]Write to MH i2c: D1 01 00 AE 00 01 80 [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: D1 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: D1 01 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: D1 01 00 AE 00 00 7F [00:36:58]Write to MH i2c: 01 00 00 AF 00 AF [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:59]*** Cut start [00:36:59]*** Purtial cut [00:36:59]*** Stage 1: CUTSNS_PIN = 1 [00:36:59]Read from MH i2c: 01 [00:36:59]MH_I2C_Read... [00:36:59]*** Stop cut motor [00:36:59]*** Cut end [00:36:59]Read from MH i2c: 01 07 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [00:36:59]process_action close_receipt done [00:36:59]requested_data is exist [00:36:59]produce_requested_data [00:36:59]requested_item fm.sn is exist - process it [00:36:59]wFMCommunicate request_size=4 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 11 00 00 [00:36:59]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 17 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 7B [00:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:36:59]wFMCommunicate OK [00:36:59]requested_item fd.num is exist - process it [00:36:59]SAM_PROTO_GetFieldsCounters [00:36:59]wFMCommunicate request_size=4 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 13 00 00 [00:36:59]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]Connected sock=10 [00:36:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 A7 43 07 01 07 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 28 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 63 1E 00 00 35 04 06 00 2A 7E F4 F6 13 D2 5A 23 1E A7 90 9A 8E EC [00:36:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 62 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 63 1E 00 00 0E 04 04 00 47 00 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 25 [00:36:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 63 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:59]wFMCommunicate OK [00:36:59]SAM_PROTO_GetFieldsCounters done [00:36:59]requested_item shift.num is exist - process it [00:36:59]requested_item shift.opened is exist - process it [00:36:59]req_shift_opened [00:36:59]FM_GetShiftState [00:36:59]SAM_PROTO_GetShiftState [00:36:59]wFMCommunicate request_size=4 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 13 01 00 [00:36:59]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 0E 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 8B [00:36:59]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:36:59]wFMCommunicate OK [00:36:59]SAM_PROTO_GetShiftState done [00:36:59]FM_GetShiftState done [00:36:59]req_shift_opened done [00:36:59]requested_item shift.open_date is exist - process it [00:36:59]req_shift_open_date [00:36:59]req_shift_open_date done [00:36:59]produce_requested_data done [00:36:59]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7779,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:36:59]process_action_free close_receipt [00:36:59]json_value_free [00:36:59]json_value_free done [00:36:59]process_json_proto returns [00:36:59]Send response to host [00:36:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7779,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:36:59]free response buf [00:36:59]execute_script done [00:36:59]execute_script returns [00:36:59]free content buf [00:36:59]Sock 11.Close socket [00:36:59]Sock 11.Thread stoped [00:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E0 FE 47 00 B6 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 32 30 39 34 32 35 38 10 04 04 00 63 1E 00 00 F4 03 04 00 E7 62 F0 66 B6 04 01 00 00 0B 28 86 6D AB C0 BB 78 [00:37:00]CommunicateWithHost err = 0 [00:37:00]CheckOFDResponse [00:37:00]1017 (14) - 77093643461234 [00:37:00]1041 (16) - 0000000002094258 [00:37:00]1040 (4) - 7779 [00:37:00]1012 (4) - 22.09.2024 18:33 [00:37:00]1206 (1) - 0 [00:37:00]OFD Sender: Remove packet 7779 [00:37:00]ProducePacketName [00:37:00]name=ofd_packets/00007779 [00:37:00]NVStorageDeleteData [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:36]recv_with_timeout no data received [00:37:40]OFD Sender: No OFD packet to send [00:37:42]accept exits with 9 [00:37:42]New connection [00:37:42]New thread 3066781028 created [00:37:42]Thread 3066637668 joined [00:37:42]Waiting for new connection... [00:37:42] Sock 9.Parse request [00:37:42]Sock 9.Check first char [00:37:42]Sock 9.First char is OK [00:37:42]request: POST /json_proto HTTP/1.0 [00:37:42]Method: POST [00:37:42]URL: /json_proto [00:37:42]Method is POST - this is cgi request [00:37:42]url: /json_proto [00:37:42]query_string will be loaded in cgi processing [00:37:42]execute_cgi json_proto POST (null) [00:37:42]execute_cgi path=json_proto method=POST [00:37:42]POST find Content-Length [00:37:42]Host: 172.17.47.195:8080 [00:37:42]Content-Length: 678 [00:37:42]Content-Type: application/json [00:37:42] [00:37:42]POST finish read [00:37:42]Found Content-Length = 678 [00:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:42]execute_script... [00:37: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)872071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:42]POST & json_proto [00:37:42]process_json_proto [00:37:42]json parsed OK: [00:37:42]protocol is kg_v1.0 [00:37:42]action value=close_receipt [00:37:42]process_action close_receipt [00:37:42]cmd_close_receipt [00:37:42]MH_GetDate [00:37:42]Write to MH i2c: F0 00 00 B3 00 A2 [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: F0 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: F0 09 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: F0 09 00 B3 00 00 57 B8 F0 66 96 2E 95 66 CF [00:37:42]GetLastDocTimeStamp 1727051816 [00:37:42]current date 1727051863 [00:37:42]FM_GetShiftState [00:37:42]SAM_PROTO_GetShiftState [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 13 01 00 [00:37:42]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 0E 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 8D [00:37:42]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:37:42]wFMCommunicate OK [00:37:42]SAM_PROTO_GetShiftState done [00:37:42]FM_GetShiftState done [00:37:42]opened in 1727050822 [00:37:42]opened+sec_in_day 1727137222 [00:37:42]quantity*price = 70037 [00:37:42]sum+1 = 70038 [00:37:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 7 23.09.2024 00:37 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7780 ФПД: 6615217089940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003743&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7780&fm=6615217089940&tin=02508201610067®Number=0000000000190446&sum=70000 [00:37:43]StoreToDocumentArchive [00:37:43]shift 71 fd 7780 [00:37:43]save to /storage/0071/doc_00007780 [00:37:43]save last doc name /storage/0071/doc_00007780 to /storage/kkm_last_doc_name [00:37:43]save OK [00:37:43]Clear old archive folders... [00:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:37:43]tlvbuf is 00EB3520 [00:37:43]SAM_PROTO_ClearQueue [00:37:43]wFMCommunicate request_size=4 [00:37:43]MH_SAM_APDU [00:37:43]CAPDU: 80 09 00 00 [00:37:43]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [00:37:43]Write i2c OK [00:37:43]MH_I2C_Read... [00:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:43]Read from MH i2c: E2 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 03 00 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [00:37:43]RAPDU: 90 00 [00:37:43]wFMCommunicate OK [00:37:43]SAM_PROTO_ClearQueue done [00:37:43]KKMCreateOFDPacket [00:37:43]OFDProtocolAddRootSTLVToBuf [00:37:43]FM_MakeSignedData [00:37:43]FM_MakeSignedData [00:37:43]SAM_PROTO_SignData [00:37:43]wFMCommunicate request_size=4 [00:37:43]MH_SAM_APDU [00:37:43]CAPDU: 80 0D 01 02 [00:37:43]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [00:37:43]Write i2c OK [00:37:43]MH_I2C_Read... [00:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:43]Read from MH i2c: E2 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 03 00 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [00:37:43]RAPDU: 90 00 [00:37:43]wFMCommunicate OK [00:37:43]wFMCommunicate request_size=255 [00:37:43]MH_SAM_APDU [00:37: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 57 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 64 1E 00 00 35 04 06 00 06 [00:37:43]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 57 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 64 1E 00 00 35 04 06 00 06 00 00 D9 [00:37:43]Write i2c OK [00:37:43]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 03 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [00:37:44]RAPDU: 90 00 [00:37:44]wFMCommunicate OK [00:37:44]wFMCommunicate request_size=10 [00:37:44]MH_SAM_APDU [00:37:44]CAPDU: 80 0D 02 02 05 04 39 AA 2D 94 [00:37:44]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 04 39 AA 2D 94 00 00 F0 [00:37:44]Write i2c OK [00:37:44]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 03 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [00:37:44]RAPDU: 90 00 [00:37:44]wFMCommunicate OK [00:37:44]wFMCommunicate request_size=4 [00:37:44]MH_SAM_APDU [00:37:44]CAPDU: 80 0D 03 02 [00:37:44]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [00:37:44]Write i2c OK [00:37:44]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 0B 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 0B 00 C5 00 00 D1 33 AA 32 79 FB C7 72 90 00 CE [00:37:44]RAPDU: D1 33 AA 32 79 FB C7 72 90 00 [00:37:44]wFMCommunicate OK [00:37:44]SAM_PROTO_SignData done [00:37:44]FM_MakeSignedData done [00:37:44]CreateOFDProtocolMessage [00:37:44]wFMCommunicate request_size=4 [00:37:44]MH_SAM_APDU [00:37:44]CAPDU: 80 11 00 00 [00:37:44]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [00:37:44]Write i2c OK [00:37:44]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 17 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 91 [00:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:37:44]wFMCommunicate OK [00:37:44]CreateOFDProtocolMessage done [00:37:44]OFDSenderStorePacket 7780 [00:37:44]StoreOFDPacket docnum=7780 [00:37:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 31 D5 07 01 76 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 57 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 64 1E 00 00 35 04 06 00 06 04 39 AA 2D 94 D1 33 AA 32 79 FB C7 72 [00:37:44]CheckFolder [00:37:44]dirname=/storage/ofd_packets [00:37:44]CheckFolder done [00:37:44]ProducePacketName [00:37:44]name=ofd_packets/00007780 [00:37:44]NVStorageSaveData ofd_packets/00007780 [00:37:44]File name is /storage/ofd_packets/00007780 [00:37:44]Write 301 bytes [00:37:44]NVStorageSaveData done [00:37:44]OFDSenderStorePacket done [00:37:44]KKMCreateOFDPacket done [00:37:44]NVStorageSaveData kkm_last_timestamp [00:37:44]File name is /storage/kkm_last_timestamp [00:37:44]Write 4 bytes [00:37:44]NVStorageSaveData done [00:37:44]ExternCall_PrintAddStr [00:37:44]wPrintStart [00:37:44]Write to MH i2c: 01 00 00 C7 00 C7 [00:37:44]Write i2c OK [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: 01 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: 01 07 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [00:37:44]RasterBufferAndPrint [00:37:44]line Счет N : (1)872071 [00:37:44]line ИНН: 02508201610067 [00:37:44]line Контрольно-Кассовый Чек [00:37:44]line ПРОДАЖА [00:37:44]line ТРК (МРК, ГНК) : 33 [00:37:44]line Товар: 2710124130 [00:37:44]line Аи-92-К-5 [00:37:44]line 10.330 * 67.80 [00:37:44]line = 700.37 [00:37:44]line НДС 12% НСП 1% [00:37:44]line > о реализуемом товаре [00:37:44]line ОКРУГЛЕНИЕ: -0.37 [00:37:44]line ИТОГО: 700.00 [00:37:44]line Внесено: 700.00 [00:37:44]line СДАЧА: 0.00 [00:37:44]line НСП 1% : 6.20 [00:37:44]line НДС 12% : 74.38 [00:37:44]line Наличными: 700.00 [00:37:44]line Безнал.: 0.00 [00:37:44]line Место: АЗС № 137 "Партнер Нефть" [00:37:44]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:37:44]line СНО: Общий режим [00:37:44]line Чек 7 23.09.2024 00:37 [00:37:44]line Смена: 71 ФФД: 1.0 [00:37:44]line ЗНМ: 0300000041 [00:37:44]line РНМ: 0000000000190446 [00:37:44]line Версия ККМ: v1.0 [00:37:44]line ФМ: 0000000002094258 [00:37:44]line ФД: 7780 [00:37:44]line ФПД: 6615217089940 [00:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003743&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7780&fm=6615217089940&tin=02508201610067®Number=0000000000190446&sum=70000 [00:37:44]OFD Sender: Processing packet 7780 [packets to send 51, broken 50] [00:37:44]ProducePacketName [00:37:44]name=ofd_packets/00007780 [00:37:44]OFD Sender: To server: pG, [00:37:44]CommunicateWithHost lk.salyk.kg:30040 [00:37:44]ConnectInit lk.salyk.kg [00:37:44]written 0, free lines is 4095 [00:37:45]Write to MH i2c: 01 00 00 F2 00 F2 [00:37:45]Write i2c OK [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: 01 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: 01 07 00 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 E9 0C EE [00:37:45]RasterBufferAndPrint [00:37:45]line [00:37:45]line [00:37:45]line [00:37:45]line [00:37:45]line [00:37:45]written 0, free lines is 3311 [00:37:45]MH_Cut [00:37:45]Write to MH i2c: D1 01 00 F9 00 01 CB [00:37:45]Write i2c OK [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: D1 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: D1 01 00 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: D1 01 00 F9 00 00 CA [00:37:45]Write to MH i2c: 01 00 00 FA 00 FA [00:37:45]Write i2c OK [00:37:45]MH_I2C_Read... [00:37:45]*** Cut start [00:37:45]*** Purtial cut [00:37:45]*** Stage 1: CUTSNS_PIN = 1 [00:37:46]Read from MH i2c: 01 [00:37:46]MH_I2C_Read... [00:37:46]*** Stop cut motor [00:37:46]*** Cut end [00:37:46]Read from MH i2c: 01 07 00 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [00:37:46]process_action close_receipt done [00:37:46]requested_data is exist [00:37:46]produce_requested_data [00:37:46]requested_item fm.sn is exist - process it [00:37:46]wFMCommunicate request_size=4 [00:37:46]MH_SAM_APDU [00:37:46]CAPDU: 80 11 00 00 [00:37:46]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [00:37:46]Write i2c OK [00:37:46]MH_I2C_Read... [00:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:46]Read from MH i2c: E2 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 17 00 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C6 [00:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:37:46]wFMCommunicate OK [00:37:46]requested_item fd.num is exist - process it [00:37:46]SAM_PROTO_GetFieldsCounters [00:37:46]wFMCommunicate request_size=4 [00:37:46]MH_SAM_APDU [00:37:46]CAPDU: 80 13 00 00 [00:37:46]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [00:37:46]Write i2c OK [00:37:46]MH_I2C_Read... [00:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:46]Read from MH i2c: E2 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 62 00 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 64 1E 00 00 0E 04 04 00 47 00 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 74 [00:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 64 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:46]wFMCommunicate OK [00:37:46]SAM_PROTO_GetFieldsCounters done [00:37:46]requested_item shift.num is exist - process it [00:37:46]requested_item shift.opened is exist - process it [00:37:46]req_shift_opened [00:37:46]FM_GetShiftState [00:37:46]SAM_PROTO_GetShiftState [00:37:46]wFMCommunicate request_size=4 [00:37:46]MH_SAM_APDU [00:37:46]CAPDU: 80 13 01 00 [00:37:46]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [00:37:46]Write i2c OK [00:37:46]MH_I2C_Read... [00:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:46]Read from MH i2c: E2 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 0E 00 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 D6 [00:37:46]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:37:46]wFMCommunicate OK [00:37:46]SAM_PROTO_GetShiftState done [00:37:46]FM_GetShiftState done [00:37:46]req_shift_opened done [00:37:46]requested_item shift.open_date is exist - process it [00:37:46]req_shift_open_date [00:37:46]req_shift_open_date done [00:37:46]produce_requested_data done [00:37:46]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7780,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:37:46]process_action_free close_receipt [00:37:46]json_value_free [00:37:46]json_value_free done [00:37:46]process_json_proto returns [00:37:46]Send response to host [00:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7780,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:37:46]free response buf [00:37:46]execute_script done [00:37:46]execute_script returns [00:37:46]free content buf [00:37:46]Sock 9.Close socket [00:37:46]Sock 9.Thread stoped [00:37:51]accept exits with 10 [00:37:51]New connection [00:37:51]New thread 3066637668 created [00:37:51]Thread 3066781028 joined [00:37:51]Waiting for new connection... [00:37:51] Sock 10.Parse request [00:37:51]Sock 10.Check first char [00:37:51]Sock 10.First char is OK [00:37:51]request: POST /json_proto HTTP/1.0 [00:37:51]Method: POST [00:37:51]URL: /json_proto [00:37:51]Method is POST - this is cgi request [00:37:51]url: /json_proto [00:37:51]query_string will be loaded in cgi processing [00:37:51]execute_cgi json_proto POST (null) [00:37:51]execute_cgi path=json_proto method=POST [00:37:51]POST find Content-Length [00:37:51]Host: 172.17.47.195:8080 [00:37:51]Content-Length: 677 [00:37:51]Content-Type: application/json [00:37:51] [00:37:51]POST finish read [00:37:51]Found Content-Length = 677 [00:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:51]execute_script... [00:37: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)872070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:51]POST & json_proto [00:37:51]process_json_proto [00:37:51]json parsed OK: [00:37:51]protocol is kg_v1.0 [00:37:51]action value=close_receipt [00:37:51]process_action close_receipt [00:37:51]cmd_close_receipt [00:37:51]MH_GetDate [00:37:51]Write to MH i2c: F0 00 00 FE 00 ED [00:37:51]Write i2c OK [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: F0 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: F0 09 00 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: F0 09 00 FE 00 00 5F B8 F0 66 96 2E 95 66 22 [00:37:51]GetLastDocTimeStamp 1727051863 [00:37:51]current date 1727051871 [00:37:51]FM_GetShiftState [00:37:51]SAM_PROTO_GetShiftState [00:37:51]wFMCommunicate request_size=4 [00:37:51]MH_SAM_APDU [00:37:51]CAPDU: 80 13 01 00 [00:37:51]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [00:37:51]Write i2c OK [00:37:51]MH_I2C_Read... [00:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:51]Read from MH i2c: E2 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 0E 00 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 D8 [00:37:51]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:37:51]wFMCommunicate OK [00:37:51]SAM_PROTO_GetShiftState done [00:37:51]FM_GetShiftState done [00:37:51]opened in 1727050822 [00:37:51]opened+sec_in_day 1727137222 [00:37:51]quantity*price = 50036 [00:37:51]sum+1 = 50037 [00:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 8 23.09.2024 00:37 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7781 ФПД: 68901895735411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003751&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7781&fm=68901895735411&tin=02508201610067®Number=0000000000190446&sum=50000 [00:37:52]StoreToDocumentArchive [00:37:52]shift 71 fd 7781 [00:37:52]save to /storage/0071/doc_00007781 [00:37:52]save last doc name /storage/0071/doc_00007781 to /storage/kkm_last_doc_name [00:37:52]save OK [00:37:52]Clear old archive folders... [00:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:37:52]tlvbuf is 00EC8850 [00:37:52]SAM_PROTO_ClearQueue [00:37:52]wFMCommunicate request_size=4 [00:37:52]MH_SAM_APDU [00:37:52]CAPDU: 80 09 00 00 [00:37:52]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [00:37:52]Write i2c OK [00:37:52]MH_I2C_Read... [00:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:52]Read from MH i2c: E2 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 03 00 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [00:37:52]RAPDU: 90 00 [00:37:52]wFMCommunicate OK [00:37:52]SAM_PROTO_ClearQueue done [00:37:52]KKMCreateOFDPacket [00:37:52]OFDProtocolAddRootSTLVToBuf [00:37:52]FM_MakeSignedData [00:37:52]FM_MakeSignedData [00:37:52]SAM_PROTO_SignData [00:37:52]wFMCommunicate request_size=4 [00:37:52]MH_SAM_APDU [00:37:52]CAPDU: 80 0D 01 02 [00:37:52]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [00:37:52]Write i2c OK [00:37:52]MH_I2C_Read... [00:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:52]Read from MH i2c: E2 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 03 00 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [00:37:52]RAPDU: 90 00 [00:37:52]wFMCommunicate OK [00:37:52]wFMCommunicate request_size=255 [00:37:52]MH_SAM_APDU [00:37:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 5F B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 65 1E 00 00 35 04 06 00 3E [00:37:52]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5F B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 65 1E 00 00 35 04 06 00 3E 00 00 80 [00:37:52]Write i2c OK [00:37:52]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 03 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [00:37:53]RAPDU: 90 00 [00:37:53]wFMCommunicate OK [00:37:53]wFMCommunicate request_size=10 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 0D 02 02 05 AA 79 05 08 73 [00:37:53]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 AA 79 05 08 73 00 00 37 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 03 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [00:37:53]RAPDU: 90 00 [00:37:53]wFMCommunicate OK [00:37:53]wFMCommunicate request_size=4 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 0D 03 02 [00:37:53]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 0B 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 0B 00 10 01 00 95 30 7A A6 0B F0 BC EF 90 00 18 [00:37:53]RAPDU: 95 30 7A A6 0B F0 BC EF 90 00 [00:37:53]wFMCommunicate OK [00:37:53]SAM_PROTO_SignData done [00:37:53]FM_MakeSignedData done [00:37:53]CreateOFDProtocolMessage [00:37:53]wFMCommunicate request_size=4 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 11 00 00 [00:37:53]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 17 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 DD [00:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:37:53]wFMCommunicate OK [00:37:53]CreateOFDProtocolMessage done [00:37:53]OFDSenderStorePacket 7781 [00:37:53]StoreOFDPacket docnum=7781 [00:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 56 6C 07 01 C8 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 5F B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 65 1E 00 00 35 04 06 00 3E AA 79 05 08 73 95 30 7A A6 0B F0 BC EF [00:37:53]CheckFolder [00:37:53]dirname=/storage/ofd_packets [00:37:53]CheckFolder done [00:37:53]ProducePacketName [00:37:53]name=ofd_packets/00007781 [00:37:53]NVStorageSaveData ofd_packets/00007781 [00:37:53]File name is /storage/ofd_packets/00007781 [00:37:53]Write 301 bytes [00:37:53]NVStorageSaveData done [00:37:53]OFDSenderStorePacket done [00:37:53]KKMCreateOFDPacket done [00:37:53]NVStorageSaveData kkm_last_timestamp [00:37:53]File name is /storage/kkm_last_timestamp [00:37:53]Write 4 bytes [00:37:53]NVStorageSaveData done [00:37:53]ExternCall_PrintAddStr [00:37:53]wPrintStart [00:37:53]Write to MH i2c: 01 00 00 12 01 13 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: 01 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: 01 07 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [00:37:53]RasterBufferAndPrint [00:37:53]line Счет N : (1)872070 [00:37:53]line ИНН: 02508201610067 [00:37:53]line Контрольно-Кассовый Чек [00:37:53]line ПРОДАЖА [00:37:53]line ТРК (МРК, ГНК) : 43 [00:37:53]line Товар: 2710124130 [00:37:53]line Аи-92-К-5 [00:37:53]line 7.380 * 67.80 [00:37:53]line = 500.36 [00:37:53]line НДС 12% НСП 1% [00:37:53]line > о реализуемом товаре [00:37:53]line ОКРУГЛЕНИЕ: -0.36 [00:37:53]line ИТОГО: 500.00 [00:37:53]line Внесено: 500.00 [00:37:53]line СДАЧА: 0.00 [00:37:53]line НСП 1% : 4.43 [00:37:53]line НДС 12% : 53.14 [00:37:53]line Наличными: 500.00 [00:37:53]line Безнал.: 0.00 [00:37:53]line Место: АЗС № 137 "Партнер Нефть" [00:37:53]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:37:53]line СНО: Общий режим [00:37:53]line Чек 8 23.09.2024 00:37 [00:37:53]line Смена: 71 ФФД: 1.0 [00:37:53]line ЗНМ: 0300000041 [00:37:53]line РНМ: 0000000000190446 [00:37:53]line Версия ККМ: v1.0 [00:37:53]line ФМ: 0000000002094258 [00:37:53]line ФД: 7781 [00:37:53]line ФПД: 68901895735411 [00:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003751&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7781&fm=68901895735411&tin=02508201610067®Number=0000000000190446&sum=50000 [00:37:53]written 0, free lines is 4095 [00:37:53]recv_with_timeout no data received [00:37:53]Connected sock=11 [00:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 31 D5 07 01 76 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 57 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 64 1E 00 00 35 04 06 00 06 04 39 AA 2D 94 D1 33 AA 32 79 FB C7 72 [00:37:53]Write to MH i2c: 01 00 00 3D 01 3E [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: 01 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: 01 07 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 0A 0D 5C [00:37:53]RasterBufferAndPrint [00:37:53]line [00:37:53]line [00:37:53]line [00:37:53]line [00:37:53]line [00:37:53]written 0, free lines is 3350 [00:37:53]MH_Cut [00:37:53]Write to MH i2c: D1 01 00 44 01 01 17 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: D1 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: D1 01 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: D1 01 00 44 01 00 16 [00:37:53]Write to MH i2c: 01 00 00 45 01 46 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:54]*** Cut start [00:37:54]*** Purtial cut [00:37:54]*** Stage 1: CUTSNS_PIN = 1 [00:37:54]Read from MH i2c: 01 [00:37:54]MH_I2C_Read... [00:37:54]*** Stop cut motor [00:37:54]*** Cut end [00:37:54]Read from MH i2c: 01 07 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [00:37:54]process_action close_receipt done [00:37:54]requested_data is exist [00:37:54]produce_requested_data [00:37:54]requested_item fm.sn is exist - process it [00:37:54]wFMCommunicate request_size=4 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 11 00 00 [00:37:54]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 17 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 12 [00:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:37:54]wFMCommunicate OK [00:37:54]requested_item fd.num is exist - process it [00:37:54]SAM_PROTO_GetFieldsCounters [00:37:54]wFMCommunicate request_size=4 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 13 00 00 [00:37:54]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 62 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 65 1E 00 00 0E 04 04 00 47 00 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 C4 [00:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 65 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:55]wFMCommunicate OK [00:37:55]SAM_PROTO_GetFieldsCounters done [00:37:55]requested_item shift.num is exist - process it [00:37:55]requested_item shift.opened is exist - process it [00:37:55]req_shift_opened [00:37:55]FM_GetShiftState [00:37:55]SAM_PROTO_GetShiftState [00:37:55]wFMCommunicate request_size=4 [00:37:55]MH_SAM_APDU [00:37:55]CAPDU: 80 13 01 00 [00:37:55]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [00:37:55]Write i2c OK [00:37:55]MH_I2C_Read... [00:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:55]Read from MH i2c: E2 [00:37:55]MH_I2C_Read... [00:37:55]Read from MH i2c: E2 0E 00 [00:37:55]MH_I2C_Read... [00:37:55]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 22 [00:37:55]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:37:55]wFMCommunicate OK [00:37:55]SAM_PROTO_GetShiftState done [00:37:55]FM_GetShiftState done [00:37:55]req_shift_opened done [00:37:55]requested_item shift.open_date is exist - process it [00:37:55]req_shift_open_date [00:37:55]req_shift_open_date done [00:37:55]produce_requested_data done [00:37:55]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7781,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:37:55]process_action_free close_receipt [00:37:55]json_value_free [00:37:55]json_value_free done [00:37:55]process_json_proto returns [00:37:55]Send response to host [00:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7781,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:37:55]free response buf [00:37:55]execute_script done [00:37:55]execute_script returns [00:37:55]free content buf [00:37:55]Sock 10.Close socket [00:37:55]Sock 10.Thread stoped [00:37:58]recv_with_timeout no data received [00:37:58]CommunicateWithHost answer receiving error [00:37:58]CommunicateWithHost err = -3 [00:37:58]OFD Sender: Server communicate error [00:37:59]OFD Sender: Processing packet 7780 [packets to send 52, broken 50] [00:37:59]ProducePacketName [00:37:59]name=ofd_packets/00007780 [00:37:59]OFD Sender: To server: pG, [00:37:59]CommunicateWithHost lk.salyk.kg:30040 [00:37:59]ConnectInit lk.salyk.kg [00:38:04]Connected sock=10 [00:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 31 D5 07 01 76 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 57 B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 64 1E 00 00 35 04 06 00 06 04 39 AA 2D 94 D1 33 AA 32 79 FB C7 72 [00:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 D6 67 47 00 80 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 32 30 39 34 32 35 38 10 04 04 00 64 1E 00 00 F4 03 04 00 27 63 F0 66 B6 04 01 00 00 32 F2 32 A3 2C C7 09 68 [00:38:04]CommunicateWithHost err = 0 [00:38:04]CheckOFDResponse [00:38:04]1017 (14) - 77093643461234 [00:38:04]1041 (16) - 0000000002094258 [00:38:04]1040 (4) - 7780 [00:38:04]1012 (4) - 22.09.2024 18:34 [00:38:04]1206 (1) - 0 [00:38:04]OFD Sender: Remove packet 7780 [00:38:04]ProducePacketName [00:38:04]name=ofd_packets/00007780 [00:38:04]NVStorageDeleteData [00:38:05]OFD Sender: Processing packet 7781 [packets to send 51, broken 50] [00:38:05]ProducePacketName [00:38:05]name=ofd_packets/00007781 [00:38:05]OFD Sender: To server: pG, [00:38:05]CommunicateWithHost lk.salyk.kg:30040 [00:38:05]ConnectInit lk.salyk.kg [00:38:08]Connected sock=7 [00:38:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 56 6C 07 01 C8 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 5F B8 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 65 1E 00 00 35 04 06 00 3E AA 79 05 08 73 95 30 7A A6 0B F0 BC EF [00:38:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E7 63 47 00 F2 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 32 30 39 34 32 35 38 10 04 04 00 65 1E 00 00 F4 03 04 00 2B 63 F0 66 B6 04 01 00 00 41 92 C0 F5 CC 95 0E 6D [00:38:09]CommunicateWithHost err = 0 [00:38:09]CheckOFDResponse [00:38:09]1017 (14) - 77093643461234 [00:38:09]1041 (16) - 0000000002094258 [00:38:09]1040 (4) - 7781 [00:38:09]1012 (4) - 22.09.2024 18:34 [00:38:09]1206 (1) - 0 [00:38:09]OFD Sender: Remove packet 7781 [00:38:09]ProducePacketName [00:38:09]name=ofd_packets/00007781 [00:38:09]NVStorageDeleteData [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:33]recv_with_timeout no data received [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:52]recv_with_timeout no data received [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:02]recv_with_timeout no data received [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:05]recv_with_timeout no data received [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40: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]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: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: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:17]accept exits with 9 [00:42:17]New connection [00:42:17]New thread 3066781028 created [00:42:17]Thread 3066637668 joined [00:42:17]Waiting for new connection... [00:42:17] Sock 9.Parse request [00:42:17]Sock 9.Check first char [00:42:17]Sock 9.First char is OK [00:42:17]request: POST /json_proto HTTP/1.0 [00:42:17]Method: POST [00:42:17]URL: /json_proto [00:42:17]Method is POST - this is cgi request [00:42:17]url: /json_proto [00:42:17]query_string will be loaded in cgi processing [00:42:17]execute_cgi json_proto POST (null) [00:42:17]execute_cgi path=json_proto method=POST [00:42:17]POST find Content-Length [00:42:17]Host: 172.17.47.195:8080 [00:42:17]Content-Length: 682 [00:42:17]Content-Type: application/json [00:42:17] [00:42:17]POST finish read [00:42:17]Found Content-Length = 682 [00:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:17]execute_script... [00:42: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)872073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:17]POST & json_proto [00:42:17]process_json_proto [00:42:17]json parsed OK: [00:42:17]protocol is kg_v1.0 [00:42:17]action value=close_receipt [00:42:17]process_action close_receipt [00:42:17]cmd_close_receipt [00:42:17]MH_GetDate [00:42:17]Write to MH i2c: F0 00 00 49 01 39 [00:42:17]Write i2c OK [00:42:17]MH_I2C_Read... [00:42:17]Read from MH i2c: F0 [00:42:17]MH_I2C_Read... [00:42:17]Read from MH i2c: F0 09 00 [00:42:17]MH_I2C_Read... [00:42:17]Read from MH i2c: F0 09 00 49 01 00 6A B9 F0 66 96 2E 95 66 7A [00:42:17]GetLastDocTimeStamp 1727051871 [00:42:17]current date 1727052138 [00:42:17]FM_GetShiftState [00:42:17]SAM_PROTO_GetShiftState [00:42:17]wFMCommunicate request_size=4 [00:42:17]MH_SAM_APDU [00:42:17]CAPDU: 80 13 01 00 [00:42:17]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [00:42:17]Write i2c OK [00:42:17]MH_I2C_Read... [00:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:17]Read from MH i2c: E2 [00:42:17]MH_I2C_Read... [00:42:17]Read from MH i2c: E2 0E 00 [00:42:17]MH_I2C_Read... [00:42:17]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 24 [00:42:17]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:42:17]wFMCommunicate OK [00:42:17]SAM_PROTO_GetShiftState done [00:42:17]FM_GetShiftState done [00:42:17]opened in 1727050822 [00:42:17]opened+sec_in_day 1727137222 [00:42:17]quantity*price = 75057 [00:42:17]sum+1 = 75058 [00:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 9 23.09.2024 00:42 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7782 ФПД: 100124352325853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T004218&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7782&fm=100124352325853&tin=02508201610067®Number=0000000000190446&sum=75000 [00:42:18]StoreToDocumentArchive [00:42:18]shift 71 fd 7782 [00:42:18]save to /storage/0071/doc_00007782 [00:42:18]save last doc name /storage/0071/doc_00007782 to /storage/kkm_last_doc_name [00:42:18]save OK [00:42:18]Clear old archive folders... [00:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:42:18]tlvbuf is 00EA76F0 [00:42:18]SAM_PROTO_ClearQueue [00:42:18]wFMCommunicate request_size=4 [00:42:18]MH_SAM_APDU [00:42:18]CAPDU: 80 09 00 00 [00:42:18]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [00:42:18]Write i2c OK [00:42:18]MH_I2C_Read... [00:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:18]Read from MH i2c: E2 [00:42:18]MH_I2C_Read... [00:42:18]Read from MH i2c: E2 03 00 [00:42:18]MH_I2C_Read... [00:42:18]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [00:42:18]RAPDU: 90 00 [00:42:18]wFMCommunicate OK [00:42:18]SAM_PROTO_ClearQueue done [00:42:18]KKMCreateOFDPacket [00:42:18]OFDProtocolAddRootSTLVToBuf [00:42:18]FM_MakeSignedData [00:42:18]FM_MakeSignedData [00:42:18]SAM_PROTO_SignData [00:42:18]wFMCommunicate request_size=4 [00:42:18]MH_SAM_APDU [00:42:18]CAPDU: 80 0D 01 02 [00:42:18]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [00:42:18]Write i2c OK [00:42:18]MH_I2C_Read... [00:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:19]Read from MH i2c: E2 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 03 00 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [00:42:19]RAPDU: 90 00 [00:42:19]wFMCommunicate OK [00:42:19]wFMCommunicate request_size=255 [00:42:19]MH_SAM_APDU [00:42:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6A B9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 66 1E 00 00 35 04 06 00 [00:42:19]Write to MH i2c: E2 02 01 59 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 34 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6A B9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 66 1E 00 00 35 04 06 00 00 00 4E [00:42:19]Write i2c OK [00:42:19]MH_I2C_Read... [00:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:19]Read from MH i2c: E2 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 03 00 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [00:42:19]RAPDU: 90 00 [00:42:19]wFMCommunicate OK [00:42:19]wFMCommunicate request_size=11 [00:42:19]MH_SAM_APDU [00:42:19]CAPDU: 80 0D 02 02 06 5B 10 04 74 28 DD [00:42:19]Write to MH i2c: E2 0E 00 5A 01 80 0D 02 02 06 00 5B 10 04 74 28 DD 00 00 C9 [00:42:19]Write i2c OK [00:42:19]MH_I2C_Read... [00:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:19]Read from MH i2c: E2 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 03 00 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [00:42:19]RAPDU: 90 00 [00:42:19]wFMCommunicate OK [00:42:19]wFMCommunicate request_size=4 [00:42:19]MH_SAM_APDU [00:42:19]CAPDU: 80 0D 03 02 [00:42:19]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [00:42:19]Write i2c OK [00:42:19]MH_I2C_Read... [00:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:19]Read from MH i2c: E2 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 0B 00 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 0B 00 5B 01 00 B3 D8 40 04 E3 06 CA BD 90 00 17 [00:42:19]RAPDU: B3 D8 40 04 E3 06 CA BD 90 00 [00:42:19]wFMCommunicate OK [00:42:19]SAM_PROTO_SignData done [00:42:19]FM_MakeSignedData done [00:42:19]CreateOFDProtocolMessage [00:42:19]wFMCommunicate request_size=4 [00:42:19]MH_SAM_APDU [00:42:19]CAPDU: 80 11 00 00 [00:42:19]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [00:42:19]Write i2c OK [00:42:19]MH_I2C_Read... [00:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:19]Read from MH i2c: E2 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 17 00 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 28 [00:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:42:19]wFMCommunicate OK [00:42:19]CreateOFDProtocolMessage done [00:42:19]OFDSenderStorePacket 7782 [00:42:19]StoreOFDPacket docnum=7782 [00:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 9B BE 08 01 10 D2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6A B9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 66 1E 00 00 35 04 06 00 5B 10 04 74 28 DD B3 D8 40 04 E3 06 CA BD [00:42:19]CheckFolder [00:42:19]dirname=/storage/ofd_packets [00:42:19]CheckFolder done [00:42:19]ProducePacketName [00:42:19]name=ofd_packets/00007782 [00:42:19]NVStorageSaveData ofd_packets/00007782 [00:42:19]File name is /storage/ofd_packets/00007782 [00:42:19]Write 302 bytes [00:42:19]NVStorageSaveData done [00:42:19]OFDSenderStorePacket done [00:42:19]KKMCreateOFDPacket done [00:42:19]NVStorageSaveData kkm_last_timestamp [00:42:19]File name is /storage/kkm_last_timestamp [00:42:19]Write 4 bytes [00:42:19]NVStorageSaveData done [00:42:19]ExternCall_PrintAddStr [00:42:19]wPrintStart [00:42:19]Write to MH i2c: 01 00 00 5D 01 5E [00:42:19]Write i2c OK [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: 01 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: 01 07 00 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [00:42:19]RasterBufferAndPrint [00:42:19]line Счет N : (1)872073 [00:42:19]line ИНН: 02508201610067 [00:42:19]line Контрольно-Кассовый Чек [00:42:19]line ПРОДАЖА [00:42:19]line ТРК (МРК, ГНК) : 34 [00:42:19]line Товар: 2710194210 [00:42:19]line ДТ(л)-К-4 [00:42:19]line 9.850 * 76.20 [00:42:19]line = 750.57 [00:42:19]line НДС 12% НСП 1% [00:42:19]line > о реализуемом товаре [00:42:19]line ОКРУГЛЕНИЕ: -0.57 [00:42:19]line ИТОГО: 750.00 [00:42:19]line Внесено: 750.00 [00:42:19]line СДАЧА: 0.00 [00:42:19]line НСП 1% : 6.64 [00:42:19]line НДС 12% : 79.71 [00:42:19]line Наличными: 750.00 [00:42:19]line Безнал.: 0.00 [00:42:19]line Место: АЗС № 137 "Партнер Нефть" [00:42:19]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:42:19]line СНО: Общий режим [00:42:19]line Чек 9 23.09.2024 00:42 [00:42:19]line Смена: 71 ФФД: 1.0 [00:42:19]line ЗНМ: 0300000041 [00:42:19]line РНМ: 0000000000190446 [00:42:19]line Версия ККМ: v1.0 [00:42:19]line ФМ: 0000000002094258 [00:42:19]line ФД: 7782 [00:42:19]line ФПД: 100124352325853 [00:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T004218&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7782&fm=100124352325853&tin=02508201610067®Number=0000000000190446&sum=75000 [00:42:19]OFD Sender: Processing packet 7782 [packets to send 51, broken 50] [00:42:19]ProducePacketName [00:42:19]name=ofd_packets/00007782 [00:42:19]OFD Sender: To server: pG, [00:42:19]CommunicateWithHost lk.salyk.kg:30040 [00:42:19]ConnectInit lk.salyk.kg [00:42:19]written 0, free lines is 4095 [00:42:20]Write to MH i2c: 01 00 00 88 01 89 [00:42:20]Write i2c OK [00:42:20]MH_I2C_Read... [00:42:20]Read from MH i2c: 01 [00:42:20]MH_I2C_Read... [00:42:20]Read from MH i2c: 01 07 00 [00:42:20]MH_I2C_Read... [00:42:20]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 EA 0C 86 [00:42:20]RasterBufferAndPrint [00:42:20]line [00:42:20]line [00:42:20]line [00:42:20]line [00:42:20]line [00:42:20]written 0, free lines is 3312 [00:42:20]MH_Cut [00:42:20]Write to MH i2c: D1 01 00 8F 01 01 62 [00:42:20]Write i2c OK [00:42:20]MH_I2C_Read... [00:42:20]Read from MH i2c: D1 [00:42:20]MH_I2C_Read... [00:42:20]Read from MH i2c: D1 01 00 [00:42:20]MH_I2C_Read... [00:42:20]Read from MH i2c: D1 01 00 8F 01 00 61 [00:42:20]Write to MH i2c: 01 00 00 90 01 91 [00:42:20]Write i2c OK [00:42:20]MH_I2C_Read... [00:42:20]*** Cut start [00:42:20]*** Purtial cut [00:42:20]*** Stage 1: CUTSNS_PIN = 1 [00:42:21]Read from MH i2c: 01 [00:42:21]MH_I2C_Read... [00:42:21]*** Stop cut motor [00:42:21]*** Cut end [00:42:21]Read from MH i2c: 01 07 00 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [00:42:21]process_action close_receipt done [00:42:21]requested_data is exist [00:42:21]produce_requested_data [00:42:21]requested_item fm.sn is exist - process it [00:42:21]wFMCommunicate request_size=4 [00:42:21]MH_SAM_APDU [00:42:21]CAPDU: 80 11 00 00 [00:42:21]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [00:42:21]Write i2c OK [00:42:21]MH_I2C_Read... [00:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:21]Read from MH i2c: E2 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 17 00 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 5D [00:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:42:21]wFMCommunicate OK [00:42:21]requested_item fd.num is exist - process it [00:42:21]SAM_PROTO_GetFieldsCounters [00:42:21]wFMCommunicate request_size=4 [00:42:21]MH_SAM_APDU [00:42:21]CAPDU: 80 13 00 00 [00:42:21]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [00:42:21]Write i2c OK [00:42:21]MH_I2C_Read... [00:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:21]Read from MH i2c: E2 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 62 00 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 66 1E 00 00 0E 04 04 00 47 00 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 13 [00:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 66 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:21]wFMCommunicate OK [00:42:21]SAM_PROTO_GetFieldsCounters done [00:42:21]requested_item shift.num is exist - process it [00:42:21]requested_item shift.opened is exist - process it [00:42:21]req_shift_opened [00:42:21]FM_GetShiftState [00:42:21]SAM_PROTO_GetShiftState [00:42:21]wFMCommunicate request_size=4 [00:42:21]MH_SAM_APDU [00:42:21]CAPDU: 80 13 01 00 [00:42:21]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [00:42:21]Write i2c OK [00:42:21]MH_I2C_Read... [00:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:21]Read from MH i2c: E2 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 0E 00 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 6D [00:42:21]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:42:21]wFMCommunicate OK [00:42:21]SAM_PROTO_GetShiftState done [00:42:21]FM_GetShiftState done [00:42:21]req_shift_opened done [00:42:21]requested_item shift.open_date is exist - process it [00:42:21]req_shift_open_date [00:42:21]req_shift_open_date done [00:42:21]produce_requested_data done [00:42:21]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7782,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:42:21]process_action_free close_receipt [00:42:21]json_value_free [00:42:21]json_value_free done [00:42:21]process_json_proto returns [00:42:21]Send response to host [00:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7782,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:42:21]free response buf [00:42:21]execute_script done [00:42:21]execute_script returns [00:42:21]free content buf [00:42:21]Sock 9.Close socket [00:42:21]Sock 9.Thread stoped [00:42:23]Connected sock=11 [00:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 9B BE 08 01 10 D2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6A B9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 66 1E 00 00 35 04 06 00 5B 10 04 74 28 DD B3 D8 40 04 E3 06 CA BD [00:42:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 21 B4 47 00 CD 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 32 30 39 34 32 35 38 10 04 04 00 66 1E 00 00 F4 03 04 00 2A 64 F0 66 B6 04 01 00 00 D9 A3 F3 4E 2D 38 B9 75 [00:42:25]CommunicateWithHost err = 0 [00:42:25]CheckOFDResponse [00:42:25]1017 (14) - 77093643461234 [00:42:25]1041 (16) - 0000000002094258 [00:42:25]1040 (4) - 7782 [00:42:25]1012 (4) - 22.09.2024 18:38 [00:42:25]1206 (1) - 0 [00:42:25]OFD Sender: Remove packet 7782 [00:42:25]ProducePacketName [00:42:25]name=ofd_packets/00007782 [00:42:25]NVStorageDeleteData [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:06]recv_with_timeout no data received [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:45:24]ConnectInit Can't connect to host [00:45:28]ConnectInit Can't take IP for lk.salyk.kg [00:45:28]CommunicateWithHost connect error [00:45:28]CommunicateWithHost err = -1 [00:45:28]OFD Sender: Server communicate error [00:45:33]OFD Sender: Processing packet 7783 [packets to send 51, broken 50] [00:45:33]ProducePacketName [00:45:33]name=ofd_packets/00007783 [00:45:33]OFD Sender: To server: pG, [00:45:33]CommunicateWithHost lk.salyk.kg:30040 [00:45:33]ConnectInit lk.salyk.kg [00:45:35]recv_with_timeout no data received [00:45:38]ConnectInit Can't take IP for lk.salyk.kg [00:45:38]CommunicateWithHost connect error [00:45:38]CommunicateWithHost err = -1 [00:45:38]OFD Sender: Server communicate error [00:45:43]OFD Sender: Processing packet 7783 [packets to send 51, broken 50] [00:45:43]ProducePacketName [00:45:43]name=ofd_packets/00007783 [00:45:43]OFD Sender: To server: pG, [00:45:43]CommunicateWithHost lk.salyk.kg:30040 [00:45:43]ConnectInit lk.salyk.kg [00:45:45]Connected sock=9 [00:45:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 CA F6 07 01 6C 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 B3 B9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 67 1E 00 00 35 04 06 00 F6 02 43 D2 F1 1C 98 C2 A7 80 57 7A 36 F0 [00:45:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 DC E9 47 00 E6 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 67 1E 00 00 F4 03 04 00 F5 64 F0 66 B6 04 01 00 00 C5 8C 09 CD 1D F3 6E CD [00:45:47]CommunicateWithHost err = 0 [00:45:47]CheckOFDResponse [00:45:47]1017 (14) - 77093643461234 [00:45:47]1041 (16) - 0000000002094258 [00:45:47]1040 (4) - 7783 [00:45:47]1012 (4) - 22.09.2024 18:41 [00:45:47]1206 (1) - 0 [00:45:47]OFD Sender: Remove packet 7783 [00:45:47]ProducePacketName [00:45:47]name=ofd_packets/00007783 [00:45:47]NVStorageDeleteData [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:38]recv_with_timeout no data received [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:19]recv_with_timeout no data received [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:00]recv_with_timeout no data received [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:36]accept exits with 10 [00:52:36]New connection [00:52:36]New thread 3066781028 created [00:52:36]Thread 3066637668 joined [00:52:36]Waiting for new connection... [00:52:36] Sock 10.Parse request [00:52:36]Sock 10.Check first char [00:52:36]Sock 10.First char is OK [00:52:36]request: POST /json_proto HTTP/1.0 [00:52:36]Method: POST [00:52:36]URL: /json_proto [00:52:36]Method is POST - this is cgi request [00:52:36]url: /json_proto [00:52:36]query_string will be loaded in cgi processing [00:52:36]execute_cgi json_proto POST (null) [00:52:36]execute_cgi path=json_proto method=POST [00:52:36]POST find Content-Length [00:52:36]Host: 172.17.47.195:8080 [00:52:36]Content-Length: 677 [00:52:36]Content-Type: application/json [00:52:36] [00:52:36]POST finish read [00:52:36]Found Content-Length = 677 [00:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872076", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:36]execute_script... [00:52: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)872076", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:36]POST & json_proto [00:52:36]process_json_proto [00:52:36]json parsed OK: [00:52:36]protocol is kg_v1.0 [00:52:36]action value=close_receipt [00:52:36]process_action close_receipt [00:52:36]cmd_close_receipt [00:52:36]MH_GetDate [00:52:36]Write to MH i2c: F0 00 00 DF 01 CF [00:52:36]Write i2c OK [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: F0 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: F0 09 00 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: F0 09 00 DF 01 00 D5 BB F0 66 96 2E 95 66 7D [00:52:36]GetLastDocTimeStamp 1727052211 [00:52:36]current date 1727052757 [00:52:36]FM_GetShiftState [00:52:36]SAM_PROTO_GetShiftState [00:52:36]wFMCommunicate request_size=4 [00:52:36]MH_SAM_APDU [00:52:36]CAPDU: 80 13 01 00 [00:52:36]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [00:52:36]Write i2c OK [00:52:36]MH_I2C_Read... [00:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:36]Read from MH i2c: E2 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 0E 00 [00:52:36]MH_I2C_Read... [00:52:36]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 BA [00:52:36]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:52:36]wFMCommunicate OK [00:52:36]SAM_PROTO_GetShiftState done [00:52:36]FM_GetShiftState done [00:52:36]opened in 1727050822 [00:52:36]opened+sec_in_day 1727137222 [00:52:36]quantity*price = 50036 [00:52:36]sum+1 = 50037 [00:52:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 11 23.09.2024 00:52 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7784 ФПД: 46639590550696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T005237&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7784&fm=46639590550696&tin=02508201610067®Number=0000000000190446&sum=50000 [00:52:37]StoreToDocumentArchive [00:52:37]shift 71 fd 7784 [00:52:37]save to /storage/0071/doc_00007784 [00:52:37]save last doc name /storage/0071/doc_00007784 to /storage/kkm_last_doc_name [00:52:37]save OK [00:52:37]Clear old archive folders... [00:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:52:37]tlvbuf is 00F44500 [00:52:37]SAM_PROTO_ClearQueue [00:52:37]wFMCommunicate request_size=4 [00:52:37]MH_SAM_APDU [00:52:37]CAPDU: 80 09 00 00 [00:52:37]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [00:52:37]Write i2c OK [00:52:37]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 03 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [00:52:38]RAPDU: 90 00 [00:52:38]wFMCommunicate OK [00:52:38]SAM_PROTO_ClearQueue done [00:52:38]KKMCreateOFDPacket [00:52:38]OFDProtocolAddRootSTLVToBuf [00:52:38]FM_MakeSignedData [00:52:38]FM_MakeSignedData [00:52:38]SAM_PROTO_SignData [00:52:38]wFMCommunicate request_size=4 [00:52:38]MH_SAM_APDU [00:52:38]CAPDU: 80 0D 01 02 [00:52:38]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 03 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [00:52:38]RAPDU: 90 00 [00:52:38]wFMCommunicate OK [00:52:38]wFMCommunicate request_size=255 [00:52:38]MH_SAM_APDU [00:52:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D5 BB F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 68 1E 00 00 35 04 06 00 2A [00:52:38]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D5 BB F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 68 1E 00 00 35 04 06 00 2A 00 00 CC [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 03 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [00:52:38]RAPDU: 90 00 [00:52:38]wFMCommunicate OK [00:52:38]wFMCommunicate request_size=10 [00:52:38]MH_SAM_APDU [00:52:38]CAPDU: 80 0D 02 02 05 6B 20 3A 2C A8 [00:52:38]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 6B 20 3A 2C A8 00 00 0E [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 03 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [00:52:38]RAPDU: 90 00 [00:52:38]wFMCommunicate OK [00:52:38]wFMCommunicate request_size=4 [00:52:38]MH_SAM_APDU [00:52:38]CAPDU: 80 0D 03 02 [00:52:38]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 0B 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 0B 00 F1 01 00 50 01 D9 C8 9D 56 6B 19 90 00 D7 [00:52:38]RAPDU: 50 01 D9 C8 9D 56 6B 19 90 00 [00:52:38]wFMCommunicate OK [00:52:38]SAM_PROTO_SignData done [00:52:38]FM_MakeSignedData done [00:52:38]CreateOFDProtocolMessage [00:52:38]wFMCommunicate request_size=4 [00:52:38]MH_SAM_APDU [00:52:38]CAPDU: 80 11 00 00 [00:52:38]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:38]Read from MH i2c: E2 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 17 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 BE [00:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:52:38]wFMCommunicate OK [00:52:38]CreateOFDProtocolMessage done [00:52:38]OFDSenderStorePacket 7784 [00:52:38]StoreOFDPacket docnum=7784 [00:52:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 58 AD 07 01 45 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D5 BB F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 68 1E 00 00 35 04 06 00 2A 6B 20 3A 2C A8 50 01 D9 C8 9D 56 6B 19 [00:52:38]CheckFolder [00:52:38]dirname=/storage/ofd_packets [00:52:38]CheckFolder done [00:52:38]ProducePacketName [00:52:38]name=ofd_packets/00007784 [00:52:38]NVStorageSaveData ofd_packets/00007784 [00:52:38]File name is /storage/ofd_packets/00007784 [00:52:38]Write 301 bytes [00:52:38]NVStorageSaveData done [00:52:38]OFDSenderStorePacket done [00:52:38]KKMCreateOFDPacket done [00:52:38]NVStorageSaveData kkm_last_timestamp [00:52:38]File name is /storage/kkm_last_timestamp [00:52:38]Write 4 bytes [00:52:38]NVStorageSaveData done [00:52:38]ExternCall_PrintAddStr [00:52:38]wPrintStart [00:52:38]Write to MH i2c: 01 00 00 F3 01 F4 [00:52:38]Write i2c OK [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: 01 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: 01 07 00 [00:52:38]MH_I2C_Read... [00:52:38]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [00:52:38]RasterBufferAndPrint [00:52:38]line Счет N : (1)872076 [00:52:38]line ИНН: 02508201610067 [00:52:38]line Контрольно-Кассовый Чек [00:52:38]line ПРОДАЖА [00:52:38]line ТРК (МРК, ГНК) : 53 [00:52:38]line Товар: 2710124130 [00:52:38]line Аи-92-К-5 [00:52:38]line 7.380 * 67.80 [00:52:38]line = 500.36 [00:52:38]line НДС 12% НСП 1% [00:52:38]line > о реализуемом товаре [00:52:38]line ОКРУГЛЕНИЕ: -0.36 [00:52:38]line ИТОГО: 500.00 [00:52:38]line Внесено: 500.00 [00:52:38]line СДАЧА: 0.00 [00:52:38]line НСП 1% : 4.43 [00:52:38]line НДС 12% : 53.14 [00:52:38]line Наличными: 500.00 [00:52:38]line Безнал.: 0.00 [00:52:38]line Место: АЗС № 137 "Партнер Нефть" [00:52:38]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [00:52:38]line СНО: Общий режим [00:52:38]line Чек 11 23.09.2024 00:52 [00:52:38]line Смена: 71 ФФД: 1.0 [00:52:38]line ЗНМ: 0300000041 [00:52:38]line РНМ: 0000000000190446 [00:52:38]line Версия ККМ: v1.0 [00:52:38]line ФМ: 0000000002094258 [00:52:38]line ФД: 7784 [00:52:38]line ФПД: 46639590550696 [00:52:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T005237&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7784&fm=46639590550696&tin=02508201610067®Number=0000000000190446&sum=50000 [00:52:38]OFD Sender: Processing packet 7784 [packets to send 51, broken 50] [00:52:38]ProducePacketName [00:52:38]name=ofd_packets/00007784 [00:52:38]OFD Sender: To server: pG, [00:52:38]CommunicateWithHost lk.salyk.kg:30040 [00:52:38]ConnectInit lk.salyk.kg [00:52:38]written 0, free lines is 4095 [00:52:39]Write to MH i2c: 01 00 00 1E 02 20 [00:52:39]Write i2c OK [00:52:39]MH_I2C_Read... [00:52:39]Read from MH i2c: 01 [00:52:39]MH_I2C_Read... [00:52:39]Read from MH i2c: 01 07 00 [00:52:39]MH_I2C_Read... [00:52:39]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 E6 0C 19 [00:52:39]RasterBufferAndPrint [00:52:39]line [00:52:39]line [00:52:39]line [00:52:39]line [00:52:39]line [00:52:39]written 0, free lines is 3308 [00:52:39]MH_Cut [00:52:39]Write to MH i2c: D1 01 00 25 02 01 F9 [00:52:39]Write i2c OK [00:52:39]MH_I2C_Read... [00:52:39]Read from MH i2c: D1 [00:52:39]MH_I2C_Read... [00:52:39]Read from MH i2c: D1 01 00 [00:52:39]MH_I2C_Read... [00:52:39]Read from MH i2c: D1 01 00 25 02 00 F8 [00:52:39]Write to MH i2c: 01 00 00 26 02 28 [00:52:39]Write i2c OK [00:52:39]MH_I2C_Read... [00:52:39]*** Cut start [00:52:39]*** Purtial cut [00:52:39]*** Stage 1: CUTSNS_PIN = 1 [00:52:40]Read from MH i2c: 01 [00:52:40]MH_I2C_Read... [00:52:40]*** Stop cut motor [00:52:40]*** Cut end [00:52:40]Read from MH i2c: 01 07 00 [00:52:40]MH_I2C_Read... [00:52:40]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [00:52:40]process_action close_receipt done [00:52:40]requested_data is exist [00:52:40]produce_requested_data [00:52:40]requested_item fm.sn is exist - process it [00:52:40]wFMCommunicate request_size=4 [00:52:40]MH_SAM_APDU [00:52:40]CAPDU: 80 11 00 00 [00:52:40]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [00:52:40]Write i2c OK [00:52:40]MH_I2C_Read... [00:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:40]Read from MH i2c: E2 [00:52:40]MH_I2C_Read... [00:52:40]Read from MH i2c: E2 17 00 [00:52:40]MH_I2C_Read... [00:52:40]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 F4 [00:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [00:52:40]wFMCommunicate OK [00:52:40]requested_item fd.num is exist - process it [00:52:40]SAM_PROTO_GetFieldsCounters [00:52:40]wFMCommunicate request_size=4 [00:52:40]MH_SAM_APDU [00:52:40]CAPDU: 80 13 00 00 [00:52:40]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [00:52:40]Write i2c OK [00:52:40]MH_I2C_Read... [00:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:40]Read from MH i2c: E2 [00:52:40]MH_I2C_Read... [00:52:40]Read from MH i2c: E2 62 00 [00:52:40]MH_I2C_Read... [00:52:40]Read from MH i2c: E2 62 00 28 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 68 1E 00 00 0E 04 04 00 47 00 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 B2 [00:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 68 1E 00 00 0E 04 04 00 47 00 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 [00:52:40]wFMCommunicate OK [00:52:40]SAM_PROTO_GetFieldsCounters done [00:52:40]requested_item shift.num is exist - process it [00:52:40]requested_item shift.opened is exist - process it [00:52:40]req_shift_opened [00:52:40]FM_GetShiftState [00:52:40]SAM_PROTO_GetShiftState [00:52:40]wFMCommunicate request_size=4 [00:52:40]MH_SAM_APDU [00:52:40]CAPDU: 80 13 01 00 [00:52:40]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [00:52:40]Write i2c OK [00:52:40]MH_I2C_Read... [00:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:40]Read from MH i2c: E2 [00:52:40]MH_I2C_Read... [00:52:40]Read from MH i2c: E2 0E 00 [00:52:40]MH_I2C_Read... [00:52:40]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 04 [00:52:40]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [00:52:40]wFMCommunicate OK [00:52:40]SAM_PROTO_GetShiftState done [00:52:40]FM_GetShiftState done [00:52:40]req_shift_opened done [00:52:40]requested_item shift.open_date is exist - process it [00:52:40]req_shift_open_date [00:52:40]req_shift_open_date done [00:52:40]produce_requested_data done [00:52:40]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7784,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [00:52:40]process_action_free close_receipt [00:52:40]json_value_free [00:52:40]json_value_free done [00:52:40]process_json_proto returns [00:52:40]Send response to host [00:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7784,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [00:52:40]free response buf [00:52:40]execute_script done [00:52:40]execute_script returns [00:52:40]free content buf [00:52:40]Sock 10.Close socket [00:52:40]Sock 10.Thread stoped [00:54:51]ConnectInit Can't connect to host [00:54:51]CommunicateWithHost connect error [00:54:51]CommunicateWithHost err = -1 [00:54:51]OFD Sender: Server communicate error [00:54:56]OFD Sender: Processing packet 7784 [packets to send 51, broken 50] [00:54:56]ProducePacketName [00:54:56]name=ofd_packets/00007784 [00:54:56]OFD Sender: To server: pG, [00:54:56]CommunicateWithHost lk.salyk.kg:30040 [00:54:56]ConnectInit lk.salyk.kg [00:55:01]recv_with_timeout no data received [00:55:01]ConnectInit Can't take IP for lk.salyk.kg [00:55:01]CommunicateWithHost connect error [00:55:01]CommunicateWithHost err = -1 [00:55:01]OFD Sender: Server communicate error [00:55:06]OFD Sender: Processing packet 7784 [packets to send 51, broken 50] [00:55:06]ProducePacketName [00:55:06]name=ofd_packets/00007784 [00:55:06]OFD Sender: To server: pG, [00:55:06]CommunicateWithHost lk.salyk.kg:30040 [00:55:06]ConnectInit lk.salyk.kg [00:55:10]Connected sock=10 [00:55:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 58 AD 07 01 45 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D5 BB F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 68 1E 00 00 35 04 06 00 2A 6B 20 3A 2C A8 50 01 D9 C8 9D 56 6B 19 [00:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 EB 42 47 00 78 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 68 1E 00 00 F4 03 04 00 29 67 F0 66 B6 04 01 00 00 60 DA 0E EC FF 52 98 66 [00:55:12]CommunicateWithHost err = 0 [00:55:12]CheckOFDResponse [00:55:12]1017 (14) - 77093643461234 [00:55:12]1041 (16) - 0000000002094258 [00:55:12]1040 (4) - 7784 [00:55:12]1012 (4) - 22.09.2024 18:51 [00:55:12]1206 (1) - 0 [00:55:12]OFD Sender: Remove packet 7784 [00:55:12]ProducePacketName [00:55:12]name=ofd_packets/00007784 [00:55:12]NVStorageDeleteData [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:04]recv_with_timeout no data received [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:54]recv_with_timeout no data received [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:10]recv_with_timeout no data received [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:41]recv_with_timeout no data received [01:02:42]accept exits with 7 [01:02:42]New connection [01:02:42]New thread 3066637668 created [01:02:42]Thread 3066781028 joined [01:02:42]Waiting for new connection... [01:02:42] Sock 7.Parse request [01:02:42]Sock 7.Check first char [01:02:42]Sock 7.First char is OK [01:02:42]request: POST /json_proto HTTP/1.0 [01:02:42]Method: POST [01:02:42]URL: /json_proto [01:02:42]Method is POST - this is cgi request [01:02:42]url: /json_proto [01:02:42]query_string will be loaded in cgi processing [01:02:42]execute_cgi json_proto POST (null) [01:02:42]execute_cgi path=json_proto method=POST [01:02:42]POST find Content-Length [01:02:42]Host: 172.17.47.195:8080 [01:02:42]Content-Length: 677 [01:02:42]Content-Type: application/json [01:02:42] [01:02:42]POST finish read [01:02:42]Found Content-Length = 677 [01:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:42]execute_script... [01:02:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:42]POST & json_proto [01:02:42]process_json_proto [01:02:42]json parsed OK: [01:02:42]protocol is kg_v1.0 [01:02:42]action value=close_receipt [01:02:42]process_action close_receipt [01:02:42]cmd_close_receipt [01:02:42]MH_GetDate [01:02:42]Write to MH i2c: F0 00 00 2A 02 1B [01:02:42]Write i2c OK [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: F0 [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: F0 09 00 [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: F0 09 00 2A 02 00 33 BE F0 66 96 2E 95 66 2A [01:02:42]GetLastDocTimeStamp 1727052757 [01:02:42]current date 1727053363 [01:02:42]FM_GetShiftState [01:02:42]SAM_PROTO_GetShiftState [01:02:42]wFMCommunicate request_size=4 [01:02:42]MH_SAM_APDU [01:02:42]CAPDU: 80 13 01 00 [01:02:42]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [01:02:42]Write i2c OK [01:02:42]MH_I2C_Read... [01:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:42]Read from MH i2c: E2 [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: E2 0E 00 [01:02:42]MH_I2C_Read... [01:02:42]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 06 [01:02:42]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:02:42]wFMCommunicate OK [01:02:42]SAM_PROTO_GetShiftState done [01:02:42]FM_GetShiftState done [01:02:42]opened in 1727050822 [01:02:42]opened+sec_in_day 1727137222 [01:02:42]quantity*price = 50036 [01:02:42]sum+1 = 50037 [01:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 12 23.09.2024 01:02 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7785 ФПД: 263438135134401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T010243&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7785&fm=263438135134401&tin=02508201610067®Number=0000000000190446&sum=50000 [01:02:43]StoreToDocumentArchive [01:02:43]shift 71 fd 7785 [01:02:43]save to /storage/0071/doc_00007785 [01:02:43]save last doc name /storage/0071/doc_00007785 to /storage/kkm_last_doc_name [01:02:43]save OK [01:02:43]Clear old archive folders... [01:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:02:43]tlvbuf is 00F45B20 [01:02:43]SAM_PROTO_ClearQueue [01:02:43]wFMCommunicate request_size=4 [01:02:43]MH_SAM_APDU [01:02:43]CAPDU: 80 09 00 00 [01:02:43]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [01:02:43]Write i2c OK [01:02:43]MH_I2C_Read... [01:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:44]Read from MH i2c: E2 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 03 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [01:02:44]RAPDU: 90 00 [01:02:44]wFMCommunicate OK [01:02:44]SAM_PROTO_ClearQueue done [01:02:44]KKMCreateOFDPacket [01:02:44]OFDProtocolAddRootSTLVToBuf [01:02:44]FM_MakeSignedData [01:02:44]FM_MakeSignedData [01:02:44]SAM_PROTO_SignData [01:02:44]wFMCommunicate request_size=4 [01:02:44]MH_SAM_APDU [01:02:44]CAPDU: 80 0D 01 02 [01:02:44]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [01:02:44]Write i2c OK [01:02:44]MH_I2C_Read... [01:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:44]Read from MH i2c: E2 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 03 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [01:02:44]RAPDU: 90 00 [01:02:44]wFMCommunicate OK [01:02:44]wFMCommunicate request_size=255 [01:02:44]MH_SAM_APDU [01:02:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 33 BE F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 69 1E 00 00 35 04 06 00 EF [01:02:44]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 33 BE F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 69 1E 00 00 35 04 06 00 EF 00 00 40 [01:02:44]Write i2c OK [01:02:44]MH_I2C_Read... [01:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:44]Read from MH i2c: E2 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 03 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [01:02:44]RAPDU: 90 00 [01:02:44]wFMCommunicate OK [01:02:44]wFMCommunicate request_size=10 [01:02:44]MH_SAM_APDU [01:02:44]CAPDU: 80 0D 02 02 05 98 78 77 08 C1 [01:02:44]Write to MH i2c: E2 0D 00 3B 02 80 0D 02 02 05 00 98 78 77 08 C1 00 00 11 [01:02:44]Write i2c OK [01:02:44]MH_I2C_Read... [01:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:44]Read from MH i2c: E2 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 03 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [01:02:44]RAPDU: 90 00 [01:02:44]wFMCommunicate OK [01:02:44]wFMCommunicate request_size=4 [01:02:44]MH_SAM_APDU [01:02:44]CAPDU: 80 0D 03 02 [01:02:44]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [01:02:44]Write i2c OK [01:02:44]MH_I2C_Read... [01:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:44]Read from MH i2c: E2 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 0B 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 0B 00 3C 02 00 F9 57 18 73 24 DE 03 C8 90 00 62 [01:02:44]RAPDU: F9 57 18 73 24 DE 03 C8 90 00 [01:02:44]wFMCommunicate OK [01:02:44]SAM_PROTO_SignData done [01:02:44]FM_MakeSignedData done [01:02:44]CreateOFDProtocolMessage [01:02:44]wFMCommunicate request_size=4 [01:02:44]MH_SAM_APDU [01:02:44]CAPDU: 80 11 00 00 [01:02:44]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [01:02:44]Write i2c OK [01:02:44]MH_I2C_Read... [01:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:44]Read from MH i2c: E2 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 17 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 0A [01:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:02:44]wFMCommunicate OK [01:02:44]CreateOFDProtocolMessage done [01:02:44]OFDSenderStorePacket 7785 [01:02:44]StoreOFDPacket docnum=7785 [01:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E9 B3 07 01 22 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 33 BE F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 69 1E 00 00 35 04 06 00 EF 98 78 77 08 C1 F9 57 18 73 24 DE 03 C8 [01:02:44]CheckFolder [01:02:44]dirname=/storage/ofd_packets [01:02:44]CheckFolder done [01:02:44]ProducePacketName [01:02:44]name=ofd_packets/00007785 [01:02:44]NVStorageSaveData ofd_packets/00007785 [01:02:44]File name is /storage/ofd_packets/00007785 [01:02:44]Write 301 bytes [01:02:44]NVStorageSaveData done [01:02:44]OFDSenderStorePacket done [01:02:44]KKMCreateOFDPacket done [01:02:44]NVStorageSaveData kkm_last_timestamp [01:02:44]File name is /storage/kkm_last_timestamp [01:02:44]Write 4 bytes [01:02:44]NVStorageSaveData done [01:02:44]ExternCall_PrintAddStr [01:02:44]wPrintStart [01:02:44]Write to MH i2c: 01 00 00 3E 02 40 [01:02:44]Write i2c OK [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: 01 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: 01 07 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [01:02:44]RasterBufferAndPrint [01:02:44]line Счет N : (1)872079 [01:02:44]line ИНН: 02508201610067 [01:02:44]line Контрольно-Кассовый Чек [01:02:44]line ПРОДАЖА [01:02:44]line ТРК (МРК, ГНК) : 33 [01:02:44]line Товар: 2710124130 [01:02:44]line Аи-92-К-5 [01:02:44]line 7.380 * 67.80 [01:02:44]line = 500.36 [01:02:44]line НДС 12% НСП 1% [01:02:44]line > о реализуемом товаре [01:02:44]line ОКРУГЛЕНИЕ: -0.36 [01:02:44]line ИТОГО: 500.00 [01:02:44]line Внесено: 500.00 [01:02:44]line СДАЧА: 0.00 [01:02:44]line НСП 1% : 4.43 [01:02:44]line НДС 12% : 53.14 [01:02:44]line Наличными: 500.00 [01:02:44]line Безнал.: 0.00 [01:02:44]line Место: АЗС № 137 "Партнер Нефть" [01:02:44]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [01:02:44]line СНО: Общий режим [01:02:44]line Чек 12 23.09.2024 01:02 [01:02:44]line Смена: 71 ФФД: 1.0 [01:02:44]line ЗНМ: 0300000041 [01:02:44]line РНМ: 0000000000190446 [01:02:44]line Версия ККМ: v1.0 [01:02:44]line ФМ: 0000000002094258 [01:02:44]line ФД: 7785 [01:02:44]line ФПД: 263438135134401 [01:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T010243&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7785&fm=263438135134401&tin=02508201610067®Number=0000000000190446&sum=50000 [01:02:44]OFD Sender: Processing packet 7785 [packets to send 51, broken 50] [01:02:44]ProducePacketName [01:02:44]name=ofd_packets/00007785 [01:02:44]OFD Sender: To server: pG, [01:02:44]CommunicateWithHost lk.salyk.kg:30040 [01:02:44]ConnectInit lk.salyk.kg [01:02:44]written 0, free lines is 4095 [01:02:45]Write to MH i2c: 01 00 00 69 02 6B [01:02:45]Write i2c OK [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: 01 [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: 01 07 00 [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 EA 0C 68 [01:02:45]RasterBufferAndPrint [01:02:45]line [01:02:45]line [01:02:45]line [01:02:45]line [01:02:45]line [01:02:45]written 0, free lines is 3312 [01:02:45]MH_Cut [01:02:45]Write to MH i2c: D1 01 00 70 02 01 44 [01:02:45]Write i2c OK [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: D1 [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: D1 01 00 [01:02:45]MH_I2C_Read... [01:02:45]Read from MH i2c: D1 01 00 70 02 00 43 [01:02:45]Write to MH i2c: 01 00 00 71 02 73 [01:02:45]Write i2c OK [01:02:45]MH_I2C_Read... [01:02:45]*** Cut start [01:02:45]*** Purtial cut [01:02:45]*** Stage 1: CUTSNS_PIN = 1 [01:02:46]Read from MH i2c: 01 [01:02:46]MH_I2C_Read... [01:02:46]*** Stop cut motor [01:02:46]*** Cut end [01:02:46]Read from MH i2c: 01 07 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [01:02:46]process_action close_receipt done [01:02:46]requested_data is exist [01:02:46]produce_requested_data [01:02:46]requested_item fm.sn is exist - process it [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 11 00 00 [01:02:46]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 17 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 3F [01:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:02:46]wFMCommunicate OK [01:02:46]requested_item fd.num is exist - process it [01:02:46]SAM_PROTO_GetFieldsCounters [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 13 00 00 [01:02:46]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 62 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 62 00 73 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 69 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [01:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 69 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:02:46]wFMCommunicate OK [01:02:46]SAM_PROTO_GetFieldsCounters done [01:02:46]requested_item shift.num is exist - process it [01:02:46]requested_item shift.opened is exist - process it [01:02:46]req_shift_opened [01:02:46]FM_GetShiftState [01:02:46]SAM_PROTO_GetShiftState [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 13 01 00 [01:02:46]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 0E 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 4F [01:02:46]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:02:46]wFMCommunicate OK [01:02:46]SAM_PROTO_GetShiftState done [01:02:46]FM_GetShiftState done [01:02:46]req_shift_opened done [01:02:46]requested_item shift.open_date is exist - process it [01:02:46]req_shift_open_date [01:02:46]req_shift_open_date done [01:02:46]produce_requested_data done [01:02:46]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7785,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [01:02:46]process_action_free close_receipt [01:02:46]json_value_free [01:02:46]json_value_free done [01:02:46]process_json_proto returns [01:02:46]Send response to host [01:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7785,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [01:02:46]free response buf [01:02:46]execute_script done [01:02:46]execute_script returns [01:02:46]free content buf [01:02:46]Sock 7.Close socket [01:02:46]Sock 7.Thread stoped [01:02:49]ConnectInit Can't take IP for lk.salyk.kg [01:02:49]CommunicateWithHost connect error [01:02:49]CommunicateWithHost err = -1 [01:02:49]OFD Sender: Server communicate error [01:02:54]OFD Sender: Processing packet 7785 [packets to send 51, broken 50] [01:02:54]ProducePacketName [01:02:54]name=ofd_packets/00007785 [01:02:54]OFD Sender: To server: pG, [01:02:54]CommunicateWithHost lk.salyk.kg:30040 [01:02:54]ConnectInit lk.salyk.kg [01:02:55]Connected sock=7 [01:02:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 E9 B3 07 01 22 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 33 BE F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 69 1E 00 00 35 04 06 00 EF 98 78 77 08 C1 F9 57 18 73 24 DE 03 C8 [01:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F8 67 47 00 1A F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 69 1E 00 00 F4 03 04 00 FA 68 F0 66 B6 04 01 00 00 4B 10 0A 36 84 8C F5 96 [01:02:57]CommunicateWithHost err = 0 [01:02:57]CheckOFDResponse [01:02:57]1017 (14) - 77093643461234 [01:02:57]1041 (16) - 0000000002094258 [01:02:57]1040 (4) - 7785 [01:02:57]1012 (4) - 22.09.2024 18:59 [01:02:57]1206 (1) - 0 [01:02:57]OFD Sender: Remove packet 7785 [01:02:57]ProducePacketName [01:02:57]name=ofd_packets/00007785 [01:02:57]NVStorageDeleteData [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:39]recv_with_timeout no data received [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]recv_with_timeout no data received [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:34]recv_with_timeout no data received [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:34]recv_with_timeout no data received [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:01]recv_with_timeout no data received [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:12]recv_with_timeout no data received [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:20]accept exits with 9 [01:15:20]New connection [01:15:20]New thread 3066781028 created [01:15:20]Thread 3066637668 joined [01:15:20]Waiting for new connection... [01:15:20] Sock 9.Parse request [01:15:20]Sock 9.Check first char [01:15:20]Sock 9.First char is OK [01:15:20]request: POST /json_proto HTTP/1.0 [01:15:20]Method: POST [01:15:20]URL: /json_proto [01:15:20]Method is POST - this is cgi request [01:15:20]url: /json_proto [01:15:20]query_string will be loaded in cgi processing [01:15:20]execute_cgi json_proto POST (null) [01:15:20]execute_cgi path=json_proto method=POST [01:15:20]POST find Content-Length [01:15:20]Host: 172.17.47.195:8080 [01:15:20]Content-Length: 677 [01:15:20]Content-Type: application/json [01:15:20] [01:15:20]POST finish read [01:15:20]Found Content-Length = 677 [01:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:20]execute_script... [01:15: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)872080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:20]POST & json_proto [01:15:20]process_json_proto [01:15:20]json parsed OK: [01:15:20]protocol is kg_v1.0 [01:15:20]action value=close_receipt [01:15:20]process_action close_receipt [01:15:20]cmd_close_receipt [01:15:20]MH_GetDate [01:15:20]Write to MH i2c: F0 00 00 75 02 66 [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: F0 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: F0 09 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: F0 09 00 75 02 00 28 C1 F0 66 96 2E 95 66 6D [01:15:20]GetLastDocTimeStamp 1727053363 [01:15:20]current date 1727054120 [01:15:20]FM_GetShiftState [01:15:20]SAM_PROTO_GetShiftState [01:15:20]wFMCommunicate request_size=4 [01:15:20]MH_SAM_APDU [01:15:20]CAPDU: 80 13 01 00 [01:15:20]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:20]Read from MH i2c: E2 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 0E 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 51 [01:15:20]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:15:20]wFMCommunicate OK [01:15:20]SAM_PROTO_GetShiftState done [01:15:20]FM_GetShiftState done [01:15:20]opened in 1727050822 [01:15:20]opened+sec_in_day 1727137222 [01:15:20]quantity*price = 40002 [01:15:20]sum+1 = 40003 [01:15:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 13 23.09.2024 01:15 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7786 ФПД: 90109827682636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T011520&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7786&fm=90109827682636&tin=02508201610067®Number=0000000000190446&sum=40000 [01:15:21]StoreToDocumentArchive [01:15:21]shift 71 fd 7786 [01:15:21]save to /storage/0071/doc_00007786 [01:15:21]save last doc name /storage/0071/doc_00007786 to /storage/kkm_last_doc_name [01:15:21]save OK [01:15:21]Clear old archive folders... [01:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:15:21]tlvbuf is 00EB8BE0 [01:15:21]SAM_PROTO_ClearQueue [01:15:21]wFMCommunicate request_size=4 [01:15:21]MH_SAM_APDU [01:15:21]CAPDU: 80 09 00 00 [01:15:21]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:21]Read from MH i2c: E2 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [01:15:21]RAPDU: 90 00 [01:15:21]wFMCommunicate OK [01:15:21]SAM_PROTO_ClearQueue done [01:15:21]KKMCreateOFDPacket [01:15:21]OFDProtocolAddRootSTLVToBuf [01:15:21]FM_MakeSignedData [01:15:21]FM_MakeSignedData [01:15:21]SAM_PROTO_SignData [01:15:21]wFMCommunicate request_size=4 [01:15:21]MH_SAM_APDU [01:15:21]CAPDU: 80 0D 01 02 [01:15:21]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:21]Read from MH i2c: E2 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [01:15:21]RAPDU: 90 00 [01:15:21]wFMCommunicate OK [01:15:21]wFMCommunicate request_size=255 [01:15:21]MH_SAM_APDU [01:15: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 28 C1 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6A 1E 00 00 35 04 06 00 51 [01:15:21]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 28 C1 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6A 1E 00 00 35 04 06 00 51 00 00 CC [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 [01:15:21]MH_I2C_Read... [01:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:21]Read from MH i2c: E2 03 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [01:15:21]RAPDU: 90 00 [01:15:21]wFMCommunicate OK [01:15:21]wFMCommunicate request_size=10 [01:15:21]MH_SAM_APDU [01:15:21]CAPDU: 80 0D 02 02 05 F4 54 45 11 4C [01:15:21]Write to MH i2c: E2 0D 00 86 02 80 0D 02 02 05 00 F4 54 45 11 4C 00 00 F6 [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:21]Read from MH i2c: E2 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [01:15:21]RAPDU: 90 00 [01:15:21]wFMCommunicate OK [01:15:21]wFMCommunicate request_size=4 [01:15:21]MH_SAM_APDU [01:15:21]CAPDU: 80 0D 03 02 [01:15:21]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:21]Read from MH i2c: E2 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 0B 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 0B 00 87 02 00 FA 2C AD E8 90 F8 FC 21 90 00 65 [01:15:21]RAPDU: FA 2C AD E8 90 F8 FC 21 90 00 [01:15:21]wFMCommunicate OK [01:15:21]SAM_PROTO_SignData done [01:15:21]FM_MakeSignedData done [01:15:21]CreateOFDProtocolMessage [01:15:21]wFMCommunicate request_size=4 [01:15:21]MH_SAM_APDU [01:15:21]CAPDU: 80 11 00 00 [01:15:21]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:21]Read from MH i2c: E2 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 17 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 55 [01:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:15:21]wFMCommunicate OK [01:15:21]CreateOFDProtocolMessage done [01:15:21]OFDSenderStorePacket 7786 [01:15:21]StoreOFDPacket docnum=7786 [01:15:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 80 8A 07 01 F2 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 28 C1 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6A 1E 00 00 35 04 06 00 51 F4 54 45 11 4C FA 2C AD E8 90 F8 FC 21 [01:15:21]CheckFolder [01:15:21]dirname=/storage/ofd_packets [01:15:21]CheckFolder done [01:15:21]ProducePacketName [01:15:21]name=ofd_packets/00007786 [01:15:21]NVStorageSaveData ofd_packets/00007786 [01:15:21]File name is /storage/ofd_packets/00007786 [01:15:21]Write 301 bytes [01:15:21]NVStorageSaveData done [01:15:21]OFDSenderStorePacket done [01:15:21]KKMCreateOFDPacket done [01:15:21]NVStorageSaveData kkm_last_timestamp [01:15:21]File name is /storage/kkm_last_timestamp [01:15:21]Write 4 bytes [01:15:21]NVStorageSaveData done [01:15:21]ExternCall_PrintAddStr [01:15:21]wPrintStart [01:15:21]Write to MH i2c: 01 00 00 89 02 8B [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: 01 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: 01 07 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [01:15:21]RasterBufferAndPrint [01:15:21]line Счет N : (1)872080 [01:15:21]line ИНН: 02508201610067 [01:15:21]line Контрольно-Кассовый Чек [01:15:21]line ПРОДАЖА [01:15:21]line ТРК (МРК, ГНК) : 33 [01:15:21]line Товар: 2710124130 [01:15:21]line Аи-92-К-5 [01:15:21]line 5.900 * 67.80 [01:15:21]line = 400.02 [01:15:21]line НДС 12% НСП 1% [01:15:21]line > о реализуемом товаре [01:15:21]line ОКРУГЛЕНИЕ: -0.02 [01:15:21]line ИТОГО: 400.00 [01:15:21]line Внесено: 400.00 [01:15:21]line СДАЧА: 0.00 [01:15:21]line НСП 1% : 3.54 [01:15:21]line НДС 12% : 42.48 [01:15:21]line Наличными: 400.00 [01:15:21]line Безнал.: 0.00 [01:15:21]line Место: АЗС № 137 "Партнер Нефть" [01:15:21]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [01:15:21]line СНО: Общий режим [01:15:21]line Чек 13 23.09.2024 01:15 [01:15:21]line Смена: 71 ФФД: 1.0 [01:15:21]line ЗНМ: 0300000041 [01:15:21]line РНМ: 0000000000190446 [01:15:21]line Версия ККМ: v1.0 [01:15:21]line ФМ: 0000000002094258 [01:15:21]line ФД: 7786 [01:15:21]line ФПД: 90109827682636 [01:15:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T011520&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7786&fm=90109827682636&tin=02508201610067®Number=0000000000190446&sum=40000 [01:15:22]OFD Sender: Processing packet 7786 [packets to send 51, broken 50] [01:15:22]ProducePacketName [01:15:22]name=ofd_packets/00007786 [01:15:22]OFD Sender: To server: pG, [01:15:22]CommunicateWithHost lk.salyk.kg:30040 [01:15:22]ConnectInit lk.salyk.kg [01:15:22]written 0, free lines is 4095 [01:15:22]Write to MH i2c: 01 00 00 B4 02 B6 [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 07 00 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 F0 0C B9 [01:15:22]RasterBufferAndPrint [01:15:22]line [01:15:22]line [01:15:22]line [01:15:22]line [01:15:22]line [01:15:22]written 0, free lines is 3318 [01:15:22]MH_Cut [01:15:22]Write to MH i2c: D1 01 00 BB 02 01 8F [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: D1 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: D1 01 00 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: D1 01 00 BB 02 00 8E [01:15:22]Write to MH i2c: 01 00 00 BC 02 BE [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:23]*** Cut start [01:15:23]*** Purtial cut [01:15:23]*** Stage 1: CUTSNS_PIN = 1 [01:15:23]Read from MH i2c: 01 [01:15:23]MH_I2C_Read... [01:15:23]*** Stop cut motor [01:15:23]*** Cut end [01:15:23]Read from MH i2c: 01 07 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [01:15:23]process_action close_receipt done [01:15:23]requested_data is exist [01:15:23]produce_requested_data [01:15:23]requested_item fm.sn is exist - process it [01:15:23]wFMCommunicate request_size=4 [01:15:23]MH_SAM_APDU [01:15:23]CAPDU: 80 11 00 00 [01:15:23]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:23]Read from MH i2c: E2 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 17 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 8A [01:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:15:23]wFMCommunicate OK [01:15:23]requested_item fd.num is exist - process it [01:15:23]SAM_PROTO_GetFieldsCounters [01:15:23]wFMCommunicate request_size=4 [01:15:23]MH_SAM_APDU [01:15:23]CAPDU: 80 13 00 00 [01:15:23]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:23]Read from MH i2c: E2 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 62 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6A 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [01:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6A 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:15:23]wFMCommunicate OK [01:15:23]SAM_PROTO_GetFieldsCounters done [01:15:23]requested_item shift.num is exist - process it [01:15:23]requested_item shift.opened is exist - process it [01:15:23]req_shift_opened [01:15:23]FM_GetShiftState [01:15:23]SAM_PROTO_GetShiftState [01:15:23]wFMCommunicate request_size=4 [01:15:23]MH_SAM_APDU [01:15:23]CAPDU: 80 13 01 00 [01:15:23]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:23]Read from MH i2c: E2 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 0E 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 9A [01:15:23]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:15:23]wFMCommunicate OK [01:15:23]SAM_PROTO_GetShiftState done [01:15:23]FM_GetShiftState done [01:15:23]req_shift_opened done [01:15:23]requested_item shift.open_date is exist - process it [01:15:23]req_shift_open_date [01:15:23]req_shift_open_date done [01:15:23]produce_requested_data done [01:15:23]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7786,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [01:15:23]process_action_free close_receipt [01:15:23]json_value_free [01:15:23]json_value_free done [01:15:23]process_json_proto returns [01:15:23]Send response to host [01:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7786,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [01:15:23]free response buf [01:15:23]execute_script done [01:15:23]execute_script returns [01:15:23]free content buf [01:15:23]Sock 9.Close socket [01:15:23]Sock 9.Thread stoped [01:15:25]Connected sock=11 [01:15:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 80 8A 07 01 F2 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 28 C1 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6A 1E 00 00 35 04 06 00 51 F4 54 45 11 4C FA 2C AD E8 90 F8 FC 21 [01:15:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 6D 8F 47 00 84 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6A 1E 00 00 F4 03 04 00 E9 6B F0 66 B6 04 01 00 00 14 CE 12 60 81 19 89 1F [01:15:26]CommunicateWithHost err = 0 [01:15:26]CheckOFDResponse [01:15:26]1017 (14) - 77093643461234 [01:15:26]1041 (16) - 0000000002094258 [01:15:26]1040 (4) - 7786 [01:15:26]1012 (4) - 22.09.2024 19:11 [01:15:26]1206 (1) - 0 [01:15:26]OFD Sender: Remove packet 7786 [01:15:26]ProducePacketName [01:15:26]name=ofd_packets/00007786 [01:15:26]NVStorageDeleteData [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:52]recv_with_timeout no data received [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]recv_with_timeout no data received [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:03]recv_with_timeout no data received [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]recv_with_timeout no data received [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:08]recv_with_timeout no data received [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:49]recv_with_timeout no data received [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:30]recv_with_timeout no data received [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:49]recv_with_timeout no data received [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:24]accept exits with 7 [01:30:24]New connection [01:30:24]New thread 3066637668 created [01:30:24]Thread 3066781028 joined [01:30:24]Waiting for new connection... [01:30:24] Sock 7.Parse request [01:30:24]Sock 7.Check first char [01:30:24]Sock 7.First char is OK [01:30:24]request: POST /json_proto HTTP/1.0 [01:30:24]Method: POST [01:30:24]URL: /json_proto [01:30:24]Method is POST - this is cgi request [01:30:24]url: /json_proto [01:30:24]query_string will be loaded in cgi processing [01:30:24]execute_cgi json_proto POST (null) [01:30:24]execute_cgi path=json_proto method=POST [01:30:24]POST find Content-Length [01:30:24]Host: 172.17.47.195:8080 [01:30:24]Content-Length: 677 [01:30:24]Content-Type: application/json [01:30:24] [01:30:24]POST finish read [01:30:24]Found Content-Length = 677 [01:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:24]execute_script... [01:30: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)872081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:24]POST & json_proto [01:30:24]process_json_proto [01:30:24]json parsed OK: [01:30:24]protocol is kg_v1.0 [01:30:24]action value=close_receipt [01:30:24]process_action close_receipt [01:30:24]cmd_close_receipt [01:30:24]MH_GetDate [01:30:24]Write to MH i2c: F0 00 00 C0 02 B1 [01:30:24]Write i2c OK [01:30:24]MH_I2C_Read... [01:30:24]Read from MH i2c: F0 [01:30:24]MH_I2C_Read... [01:30:24]Read from MH i2c: F0 09 00 [01:30:24]MH_I2C_Read... [01:30:24]Read from MH i2c: F0 09 00 C0 02 00 B0 C4 F0 66 96 2E 95 66 43 [01:30:24]GetLastDocTimeStamp 1727054120 [01:30:24]current date 1727055024 [01:30:24]FM_GetShiftState [01:30:24]SAM_PROTO_GetShiftState [01:30:24]wFMCommunicate request_size=4 [01:30:24]MH_SAM_APDU [01:30:24]CAPDU: 80 13 01 00 [01:30:24]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [01:30:24]Write i2c OK [01:30:24]MH_I2C_Read... [01:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:24]Read from MH i2c: E2 [01:30:24]MH_I2C_Read... [01:30:24]Read from MH i2c: E2 0E 00 [01:30:24]MH_I2C_Read... [01:30:24]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 9C [01:30:24]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:30:24]wFMCommunicate OK [01:30:24]SAM_PROTO_GetShiftState done [01:30:24]FM_GetShiftState done [01:30:24]opened in 1727050822 [01:30:24]opened+sec_in_day 1727137222 [01:30:24]quantity*price = 50036 [01:30:24]sum+1 = 50037 [01:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 14 23.09.2024 01:30 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7787 ФПД: 91548103183552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T013025&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7787&fm=91548103183552&tin=02508201610067®Number=0000000000190446&sum=50000 [01:30:25]StoreToDocumentArchive [01:30:25]shift 71 fd 7787 [01:30:25]save to /storage/0071/doc_00007787 [01:30:25]save last doc name /storage/0071/doc_00007787 to /storage/kkm_last_doc_name [01:30:25]save OK [01:30:25]Clear old archive folders... [01:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:30:25]tlvbuf is 00F3F660 [01:30:25]SAM_PROTO_ClearQueue [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 09 00 00 [01:30:25]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 03 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [01:30:25]RAPDU: 90 00 [01:30:25]wFMCommunicate OK [01:30:25]SAM_PROTO_ClearQueue done [01:30:25]KKMCreateOFDPacket [01:30:25]OFDProtocolAddRootSTLVToBuf [01:30:25]FM_MakeSignedData [01:30:25]FM_MakeSignedData [01:30:25]SAM_PROTO_SignData [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 0D 01 02 [01:30:25]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 03 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [01:30:25]RAPDU: 90 00 [01:30:25]wFMCommunicate OK [01:30:25]wFMCommunicate request_size=255 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B1 C4 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6B 1E 00 00 35 04 06 00 53 [01:30:25]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B1 C4 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6B 1E 00 00 35 04 06 00 53 00 00 C2 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 03 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [01:30:25]RAPDU: 90 00 [01:30:25]wFMCommunicate OK [01:30:25]wFMCommunicate request_size=10 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 0D 02 02 05 43 34 2B 8C C0 [01:30:25]Write to MH i2c: E2 0D 00 D1 02 80 0D 02 02 05 00 43 34 2B 8C C0 00 00 45 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 03 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [01:30:25]RAPDU: 90 00 [01:30:25]wFMCommunicate OK [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 0D 03 02 [01:30:25]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:26]Read from MH i2c: E2 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: E2 0B 00 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: E2 0B 00 D2 02 00 AD 39 D1 03 33 DF 1D AB 90 00 E4 [01:30:26]RAPDU: AD 39 D1 03 33 DF 1D AB 90 00 [01:30:26]wFMCommunicate OK [01:30:26]SAM_PROTO_SignData done [01:30:26]FM_MakeSignedData done [01:30:26]CreateOFDProtocolMessage [01:30:26]wFMCommunicate request_size=4 [01:30:26]MH_SAM_APDU [01:30:26]CAPDU: 80 11 00 00 [01:30:26]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [01:30:26]Write i2c OK [01:30:26]MH_I2C_Read... [01:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:26]Read from MH i2c: E2 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: E2 17 00 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 A0 [01:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:30:26]wFMCommunicate OK [01:30:26]CreateOFDProtocolMessage done [01:30:26]OFDSenderStorePacket 7787 [01:30:26]StoreOFDPacket docnum=7787 [01:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D6 46 07 01 84 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B1 C4 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6B 1E 00 00 35 04 06 00 53 43 34 2B 8C C0 AD 39 D1 03 33 DF 1D AB [01:30:26]CheckFolder [01:30:26]dirname=/storage/ofd_packets [01:30:26]CheckFolder done [01:30:26]ProducePacketName [01:30:26]name=ofd_packets/00007787 [01:30:26]NVStorageSaveData ofd_packets/00007787 [01:30:26]File name is /storage/ofd_packets/00007787 [01:30:26]Write 301 bytes [01:30:26]NVStorageSaveData done [01:30:26]OFDSenderStorePacket done [01:30:26]KKMCreateOFDPacket done [01:30:26]NVStorageSaveData kkm_last_timestamp [01:30:26]File name is /storage/kkm_last_timestamp [01:30:26]Write 4 bytes [01:30:26]NVStorageSaveData done [01:30:26]ExternCall_PrintAddStr [01:30:26]wPrintStart [01:30:26]Write to MH i2c: 01 00 00 D4 02 D6 [01:30:26]Write i2c OK [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: 01 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: 01 07 00 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [01:30:26]RasterBufferAndPrint [01:30:26]line Счет N : (1)872081 [01:30:26]line ИНН: 02508201610067 [01:30:26]line Контрольно-Кассовый Чек [01:30:26]line ПРОДАЖА [01:30:26]line ТРК (МРК, ГНК) : 33 [01:30:26]line Товар: 2710124130 [01:30:26]line Аи-92-К-5 [01:30:26]line 7.380 * 67.80 [01:30:26]line = 500.36 [01:30:26]line НДС 12% НСП 1% [01:30:26]line > о реализуемом товаре [01:30:26]line ОКРУГЛЕНИЕ: -0.36 [01:30:26]line ИТОГО: 500.00 [01:30:26]line Внесено: 500.00 [01:30:26]line СДАЧА: 0.00 [01:30:26]line НСП 1% : 4.43 [01:30:26]line НДС 12% : 53.14 [01:30:26]line Наличными: 500.00 [01:30:26]line Безнал.: 0.00 [01:30:26]line Место: АЗС № 137 "Партнер Нефть" [01:30:26]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [01:30:26]line СНО: Общий режим [01:30:26]line Чек 14 23.09.2024 01:30 [01:30:26]line Смена: 71 ФФД: 1.0 [01:30:26]line ЗНМ: 0300000041 [01:30:26]line РНМ: 0000000000190446 [01:30:26]line Версия ККМ: v1.0 [01:30:26]line ФМ: 0000000002094258 [01:30:26]line ФД: 7787 [01:30:26]line ФПД: 91548103183552 [01:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T013025&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7787&fm=91548103183552&tin=02508201610067®Number=0000000000190446&sum=50000 [01:30:26]OFD Sender: Processing packet 7787 [packets to send 51, broken 50] [01:30:26]ProducePacketName [01:30:26]name=ofd_packets/00007787 [01:30:26]OFD Sender: To server: pG, [01:30:26]CommunicateWithHost lk.salyk.kg:30040 [01:30:26]ConnectInit lk.salyk.kg [01:30:26]written 0, free lines is 4095 [01:30:26]Write to MH i2c: 01 00 00 FF 02 01 [01:30:26]Write i2c OK [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: 01 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: 01 07 00 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 EA 0C FE [01:30:26]RasterBufferAndPrint [01:30:26]line [01:30:26]line [01:30:26]line [01:30:26]line [01:30:26]line [01:30:26]written 0, free lines is 3312 [01:30:26]MH_Cut [01:30:26]Write to MH i2c: D1 01 00 06 03 01 DB [01:30:26]Write i2c OK [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: D1 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: D1 01 00 [01:30:26]MH_I2C_Read... [01:30:26]Read from MH i2c: D1 01 00 06 03 00 DA [01:30:26]Write to MH i2c: 01 00 00 07 03 0A [01:30:26]Write i2c OK [01:30:26]MH_I2C_Read... [01:30:27]*** Cut start [01:30:27]*** Purtial cut [01:30:27]*** Stage 1: CUTSNS_PIN = 1 [01:30:27]Read from MH i2c: 01 [01:30:27]MH_I2C_Read... [01:30:27]*** Stop cut motor [01:30:27]*** Cut end [01:30:27]Read from MH i2c: 01 07 00 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [01:30:27]process_action close_receipt done [01:30:27]requested_data is exist [01:30:27]produce_requested_data [01:30:27]requested_item fm.sn is exist - process it [01:30:27]wFMCommunicate request_size=4 [01:30:27]MH_SAM_APDU [01:30:27]CAPDU: 80 11 00 00 [01:30:27]Write to MH i2c: E2 08 00 08 03 80 11 00 00 00 00 00 00 85 [01:30:27]Write i2c OK [01:30:27]MH_I2C_Read... [01:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:27]Read from MH i2c: E2 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 17 00 [01:30:27]MH_I2C_Read... [01:30:27]Read from MH i2c: E2 17 00 08 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 D6 [01:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:30:27]wFMCommunicate OK [01:30:27]requested_item fd.num is exist - process it [01:30:27]SAM_PROTO_GetFieldsCounters [01:30:27]wFMCommunicate request_size=4 [01:30:27]MH_SAM_APDU [01:30:27]CAPDU: 80 13 00 00 [01:30:27]Write to MH i2c: E2 08 00 09 03 80 13 00 00 00 00 00 00 88 [01:30:27]Write i2c OK [01:30:27]MH_I2C_Read... [01:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:28]Read from MH i2c: E2 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: E2 62 00 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: E2 62 00 09 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6B 1E 00 00 0E 04 04 00 47 00 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 A0 [01:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6B 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:28]wFMCommunicate OK [01:30:28]SAM_PROTO_GetFieldsCounters done [01:30:28]requested_item shift.num is exist - process it [01:30:28]requested_item shift.opened is exist - process it [01:30:28]req_shift_opened [01:30:28]FM_GetShiftState [01:30:28]SAM_PROTO_GetShiftState [01:30:28]wFMCommunicate request_size=4 [01:30:28]MH_SAM_APDU [01:30:28]CAPDU: 80 13 01 00 [01:30:28]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [01:30:28]Write i2c OK [01:30:28]MH_I2C_Read... [01:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:28]Read from MH i2c: E2 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: E2 0E 00 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 E6 [01:30:28]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:30:28]wFMCommunicate OK [01:30:28]SAM_PROTO_GetShiftState done [01:30:28]FM_GetShiftState done [01:30:28]req_shift_opened done [01:30:28]requested_item shift.open_date is exist - process it [01:30:28]req_shift_open_date [01:30:28]req_shift_open_date done [01:30:28]produce_requested_data done [01:30:28]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7787,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [01:30:28]process_action_free close_receipt [01:30:28]json_value_free [01:30:28]json_value_free done [01:30:28]process_json_proto returns [01:30:28]Send response to host [01:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7787,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [01:30:28]free response buf [01:30:28]execute_script done [01:30:28]execute_script returns [01:30:28]free content buf [01:30:28]Sock 7.Close socket [01:30:28]Sock 7.Thread stoped [01:30:28]Connected sock=11 [01:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 D6 46 07 01 84 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B1 C4 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6B 1E 00 00 35 04 06 00 53 43 34 2B 8C C0 AD 39 D1 03 33 DF 1D AB [01:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 99 D1 47 00 26 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6B 1E 00 00 F4 03 04 00 70 6F F0 66 B6 04 01 00 00 1A F4 36 A1 32 87 03 BE [01:30:30]CommunicateWithHost err = 0 [01:30:30]CheckOFDResponse [01:30:30]1017 (14) - 77093643461234 [01:30:30]1041 (16) - 0000000002094258 [01:30:30]1040 (4) - 7787 [01:30:30]1012 (4) - 22.09.2024 19:26 [01:30:30]1206 (1) - 0 [01:30:30]OFD Sender: Remove packet 7787 [01:30:30]ProducePacketName [01:30:30]name=ofd_packets/00007787 [01:30:30]NVStorageDeleteData [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:54]recv_with_timeout no data received [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]recv_with_timeout no data received [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:27]recv_with_timeout no data received [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [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:27]recv_with_timeout no data received [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:46]recv_with_timeout no data received [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:44:57]accept exits with 9 [01:44:57]New connection [01:44:57]New thread 3066781028 created [01:44:57]Thread 3066637668 joined [01:44:57]Waiting for new connection... [01:44:57] Sock 9.Parse request [01:44:57]Sock 9.Check first char [01:44:57]Sock 9.First char is OK [01:44:57]request: POST /json_proto HTTP/1.0 [01:44:57]Method: POST [01:44:57]URL: /json_proto [01:44:57]Method is POST - this is cgi request [01:44:57]url: /json_proto [01:44:57]query_string will be loaded in cgi processing [01:44:57]execute_cgi json_proto POST (null) [01:44:57]execute_cgi path=json_proto method=POST [01:44:57]POST find Content-Length [01:44:57]Host: 172.17.47.195:8080 [01:44:57]Content-Length: 800 [01:44:57]Content-Type: application/json [01:44:57] [01:44:57]POST finish read [01:44:57]Found Content-Length = 800 [01:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:57]execute_script... [01:44:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:57]POST & json_proto [01:44:57]process_json_proto [01:44:57]json parsed OK: [01:44:57]protocol is kg_v1.0 [01:44:57]action value=close_receipt [01:44:57]process_action close_receipt [01:44:57]cmd_close_receipt [01:44:57]MH_GetDate [01:44:57]Write to MH i2c: F0 00 00 0B 03 FD [01:44:57]Write i2c OK [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: F0 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: F0 09 00 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: F0 09 00 0B 03 00 1A C8 F0 66 96 2E 95 66 FD [01:44:57]GetLastDocTimeStamp 1727055025 [01:44:57]current date 1727055898 [01:44:57]FM_GetShiftState [01:44:57]SAM_PROTO_GetShiftState [01:44:57]wFMCommunicate request_size=4 [01:44:57]MH_SAM_APDU [01:44:57]CAPDU: 80 13 01 00 [01:44:57]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [01:44:57]Write i2c OK [01:44:57]MH_I2C_Read... [01:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:57]Read from MH i2c: E2 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 0E 00 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 E8 [01:44:57]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:44:57]wFMCommunicate OK [01:44:57]SAM_PROTO_GetShiftState done [01:44:57]FM_GetShiftState done [01:44:57]opened in 1727050822 [01:44:57]opened+sec_in_day 1727137222 [01:44:57]quantity*price = 50036 [01:44:57]sum+1 = 50037 [01:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре [01:49:26]line ИТОГО: 500.36 [01:49:26]line НСП 1% : 4.43 [01:49:26]line НДС 12% : 53.14 [01:49:26]line Наличными: 0.00 [01:49:26]line Безнал.: 500.36 [01:49:26]line Место: АЗС № 137 "Партнер Нефть" [01:49:26]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [01:49:26]line СНО: Общий режим [01:49:26]line Чек 15 23.09.2024 01:44 [01:49:26]line Смена: 71 ФФД: 1.0 [01:49:26]line ЗНМ: 0300000041 [01:49:26]line РНМ: 0000000000190446 [01:49:26]line Версия ККМ: v1.0 [01:49:26]line Платежная система: O! деньги [01:49:26]line ФМ: 0000000002094258 [01:49:26]line ФД: 7788 [01:49:26]line ФПД: 222496967772068 [01:49:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T014458&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7788&fm=222496967772068&tin=02508201610067®Number=0000000000190446&sum=50036 [01:49:26]written 0, free lines is 4095 [01:49:27]Write to MH i2c: 01 00 00 47 00 47 [01:49:27]Write i2c OK [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: 01 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: 01 07 00 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 13 0D 6E [01:49:27]RasterBufferAndPrint [01:49:27]line [01:49:27]line [01:49:27]line [01:49:27]line [01:49:27]line [01:49:27]written 0, free lines is 3365 [01:49:27]MH_Cut [01:49:27]Write to MH i2c: D1 01 00 4E 00 01 20 [01:49:27]Write i2c OK [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: D1 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: D1 01 00 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: D1 01 00 4E 00 00 1F [01:49:27]Write to MH i2c: 01 00 00 4F 00 4F [01:49:27]Write i2c OK [01:49:27]MH_I2C_Read... [01:49:27]*** Cut start [01:49:27]*** Purtial cut [01:49:27]*** Stage 1: CUTSNS_PIN = 1 [01:49:28]Read from MH i2c: 01 [01:49:28]MH_I2C_Read... [01:49:28]*** Stop cut motor [01:49:28]*** Cut end [01:49:28]Read from MH i2c: 01 07 00 [01:49:28]MH_I2C_Read... [01:49:28]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [01:49:28]process_action print_doc done [01:49:28]requested_data is exist [01:49:28]produce_requested_data [01:49:28]produce_requested_data return (null) [01:49:28]process_action_free print_doc [01:49:28]json_value_free [01:49:28]json_value_free done [01:49:28]process_json_proto returns [01:49:28]Send response to host [01:49:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [01:49:28]free response buf [01:49:28]execute_script done [01:49:28]execute_script returns [01:49:28]free content buf [01:49:28]Sock 9.Close socket [01:49:28]Sock 9.Thread stoped [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:49]recv_with_timeout no data received [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:00]recv_with_timeout no data received [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:12]accept exits with 7 [01:50:12]New connection [01:50:12]New thread 3066781028 created [01:50:12]Thread 3066924388 joined [01:50:12]Waiting for new connection... [01:50:12] Sock 7.Parse request [01:50:12]Sock 7.Check first char [01:50:12]Sock 7.First char is OK [01:50:12]request: POST /json_proto HTTP/1.0 [01:50:12]Method: POST [01:50:12]URL: /json_proto [01:50:12]Method is POST - this is cgi request [01:50:12]url: /json_proto [01:50:12]query_string will be loaded in cgi processing [01:50:12]execute_cgi json_proto POST (null) [01:50:12]execute_cgi path=json_proto method=POST [01:50:12]POST find Content-Length [01:50:12]Host: 172.17.47.195:8080 [01:50:12]Content-Length: 682 [01:50:12]Content-Type: application/json [01:50:12] [01:50:12]POST finish read [01:50:12]Found Content-Length = 682 [01:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872083", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:12]execute_script... [01:50: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)872083", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:12]POST & json_proto [01:50:12]process_json_proto [01:50:12]json parsed OK: [01:50:12]protocol is kg_v1.0 [01:50:12]action value=close_receipt [01:50:12]process_action close_receipt [01:50:12]cmd_close_receipt [01:50:12]MH_GetDate [01:50:12]Write to MH i2c: F0 00 00 50 00 3F [01:50:12]Write i2c OK [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: F0 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: F0 09 00 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: F0 09 00 50 00 00 55 C9 F0 66 96 2E 95 66 7B [01:50:12]GetLastDocTimeStamp 1727055898 [01:50:12]current date 1727056213 [01:50:12]FM_GetShiftState [01:50:12]SAM_PROTO_GetShiftState [01:50:12]wFMCommunicate request_size=4 [01:50:12]MH_SAM_APDU [01:50:12]CAPDU: 80 13 01 00 [01:50:12]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [01:50:12]Write i2c OK [01:50:12]MH_I2C_Read... [01:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:12]Read from MH i2c: E2 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: E2 0E 00 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 2A [01:50:12]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:50:12]wFMCommunicate OK [01:50:12]SAM_PROTO_GetShiftState done [01:50:12]FM_GetShiftState done [01:50:12]opened in 1727050822 [01:50:12]opened+sec_in_day 1727137222 [01:50:12]quantity*price = 100005 [01:50:12]sum+1 = 100006 [01:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 16 23.09.2024 01:50 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7789 ФПД: 95102026369617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T015013&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7789&fm=95102026369617&tin=02508201610067®Number=0000000000190446&sum=100000 [01:50:13]StoreToDocumentArchive [01:50:13]shift 71 fd 7789 [01:50:13]save to /storage/0071/doc_00007789 [01:50:13]save last doc name /storage/0071/doc_00007789 to /storage/kkm_last_doc_name [01:50:13]save OK [01:50:13]Clear old archive folders... [01:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:50:13]tlvbuf is 014464A0 [01:50:13]SAM_PROTO_ClearQueue [01:50:13]wFMCommunicate request_size=4 [01:50:13]MH_SAM_APDU [01:50:13]CAPDU: 80 09 00 00 [01:50:13]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [01:50:13]Write i2c OK [01:50:13]MH_I2C_Read... [01:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:50:13]Read from MH i2c: E2 [01:50:13]MH_I2C_Read... [01:50:13]Read from MH i2c: E2 03 00 [01:50:13]MH_I2C_Read... [01:50:13]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [01:50:13]RAPDU: 90 00 [01:50:13]wFMCommunicate OK [01:50:13]SAM_PROTO_ClearQueue done [01:50:13]KKMCreateOFDPacket [01:50:13]OFDProtocolAddRootSTLVToBuf [01:50:13]FM_MakeSignedData [01:50:13]FM_MakeSignedData [01:50:13]SAM_PROTO_SignData [01:50:13]wFMCommunicate request_size=4 [01:50:13]MH_SAM_APDU [01:50:13]CAPDU: 80 0D 01 02 [01:50:13]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [01:50:13]Write i2c OK [01:50:13]MH_I2C_Read... [01:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:50:13]Read from MH i2c: E2 [01:50:13]MH_I2C_Read... [01:50:13]Read from MH i2c: E2 03 00 [01:50:13]MH_I2C_Read... [01:50:13]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [01:50:13]RAPDU: 90 00 [01:50:13]wFMCommunicate OK [01:50:13]wFMCommunicate request_size=255 [01:50:13]MH_SAM_APDU [01:50:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 C9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6D 1E 00 00 35 04 06 00 56 [01:50:13]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 C9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6D 1E 00 00 35 04 06 00 56 00 00 8F [01:50:13]Write i2c OK [01:50:13]MH_I2C_Read... [01:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:14]Read from MH i2c: E2 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: E2 03 00 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [01:50:14]RAPDU: 90 00 [01:50:14]wFMCommunicate OK [01:50:14]wFMCommunicate request_size=10 [01:50:14]MH_SAM_APDU [01:50:14]CAPDU: 80 0D 02 02 05 7E AA 7F CA 51 [01:50:14]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 7E AA 7F CA 51 00 00 A7 [01:50:14]Write i2c OK [01:50:14]MH_I2C_Read... [01:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:14]Read from MH i2c: E2 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: E2 03 00 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [01:50:14]RAPDU: 90 00 [01:50:14]wFMCommunicate OK [01:50:14]wFMCommunicate request_size=4 [01:50:14]MH_SAM_APDU [01:50:14]CAPDU: 80 0D 03 02 [01:50:14]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [01:50:14]Write i2c OK [01:50:14]MH_I2C_Read... [01:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:50:14]Read from MH i2c: E2 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: E2 0B 00 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: E2 0B 00 62 00 00 F1 49 52 71 7B 5E 73 60 90 00 87 [01:50:14]RAPDU: F1 49 52 71 7B 5E 73 60 90 00 [01:50:14]wFMCommunicate OK [01:50:14]SAM_PROTO_SignData done [01:50:14]FM_MakeSignedData done [01:50:14]CreateOFDProtocolMessage [01:50:14]wFMCommunicate request_size=4 [01:50:14]MH_SAM_APDU [01:50:14]CAPDU: 80 11 00 00 [01:50:14]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [01:50:14]Write i2c OK [01:50:14]MH_I2C_Read... [01:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:14]Read from MH i2c: E2 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: E2 17 00 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 2E [01:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:50:14]wFMCommunicate OK [01:50:14]CreateOFDProtocolMessage done [01:50:14]OFDSenderStorePacket 7789 [01:50:14]StoreOFDPacket docnum=7789 [01:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 99 DE 07 01 A2 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 C9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6D 1E 00 00 35 04 06 00 56 7E AA 7F CA 51 F1 49 52 71 7B 5E 73 60 [01:50:14]CheckFolder [01:50:14]dirname=/storage/ofd_packets [01:50:14]CheckFolder done [01:50:14]ProducePacketName [01:50:14]name=ofd_packets/00007789 [01:50:14]NVStorageSaveData ofd_packets/00007789 [01:50:14]File name is /storage/ofd_packets/00007789 [01:50:14]Write 301 bytes [01:50:14]NVStorageSaveData done [01:50:14]OFDSenderStorePacket done [01:50:14]KKMCreateOFDPacket done [01:50:14]NVStorageSaveData kkm_last_timestamp [01:50:14]File name is /storage/kkm_last_timestamp [01:50:14]Write 4 bytes [01:50:14]NVStorageSaveData done [01:50:14]ExternCall_PrintAddStr [01:50:14]wPrintStart [01:50:14]Write to MH i2c: 01 00 00 64 00 64 [01:50:14]Write i2c OK [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: 01 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: 01 07 00 [01:50:14]MH_I2C_Read... [01:50:14]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [01:50:14]RasterBufferAndPrint [01:50:14]line Счет N : (1)872083 [01:50:14]line ИНН: 02508201610067 [01:50:14]line Контрольно-Кассовый Чек [01:50:14]line ПРОДАЖА [01:50:14]line ТРК (МРК, ГНК) : 53 [01:50:14]line Товар: 2710124130 [01:50:14]line Аи-92-К-5 [01:50:14]line 14.750 * 67.80 [01:50:14]line = 1000.05 [01:50:14]line НДС 12% НСП 1% [01:50:14]line > о реализуемом товаре [01:50:14]line ОКРУГЛЕНИЕ: -0.05 [01:50:14]line ИТОГО: 1000.00 [01:50:14]line Внесено: 1000.00 [01:50:14]line СДАЧА: 0.00 [01:50:14]line НСП 1% : 8.85 [01:50:14]line НДС 12% : 106.20 [01:50:14]line Наличными: 1000.00 [01:50:14]line Безнал.: 0.00 [01:50:14]line Место: АЗС № 137 "Партнер Нефть" [01:50:14]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [01:50:14]line СНО: Общий режим [01:50:14]line Чек 16 23.09.2024 01:50 [01:50:14]line Смена: 71 ФФД: 1.0 [01:50:14]line ЗНМ: 0300000041 [01:50:14]line РНМ: 0000000000190446 [01:50:14]line Версия ККМ: v1.0 [01:50:14]line ФМ: 0000000002094258 [01:50:14]line ФД: 7789 [01:50:14]line ФПД: 95102026369617 [01:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T015013&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7789&fm=95102026369617&tin=02508201610067®Number=0000000000190446&sum=100000 [01:50:14]OFD Sender: Processing packet 7789 [packets to send 51, broken 50] [01:50:14]ProducePacketName [01:50:14]name=ofd_packets/00007789 [01:50:14]OFD Sender: To server: pG, [01:50:14]CommunicateWithHost lk.salyk.kg:30040 [01:50:14]ConnectInit lk.salyk.kg [01:50:14]written 0, free lines is 4095 [01:50:15]Write to MH i2c: 01 00 00 8F 00 8F [01:50:15]Write i2c OK [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: 01 [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: 01 07 00 [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 E7 0C 89 [01:50:15]RasterBufferAndPrint [01:50:15]line [01:50:15]line [01:50:15]line [01:50:15]line [01:50:15]line [01:50:15]written 0, free lines is 3309 [01:50:15]MH_Cut [01:50:15]Write to MH i2c: D1 01 00 96 00 01 68 [01:50:15]Write i2c OK [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: D1 [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: D1 01 00 [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: D1 01 00 96 00 00 67 [01:50:15]Write to MH i2c: 01 00 00 97 00 97 [01:50:15]Write i2c OK [01:50:15]MH_I2C_Read... [01:50:15]*** Cut start [01:50:15]*** Purtial cut [01:50:15]*** Stage 1: CUTSNS_PIN = 1 [01:50:16]Read from MH i2c: 01 [01:50:16]MH_I2C_Read... [01:50:16]*** Stop cut motor [01:50:16]*** Cut end [01:50:16]Read from MH i2c: 01 07 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [01:50:16]process_action close_receipt done [01:50:16]requested_data is exist [01:50:16]produce_requested_data [01:50:16]requested_item fm.sn is exist - process it [01:50:16]wFMCommunicate request_size=4 [01:50:16]MH_SAM_APDU [01:50:16]CAPDU: 80 11 00 00 [01:50:16]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 17 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 63 [01:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:50:16]wFMCommunicate OK [01:50:16]requested_item fd.num is exist - process it [01:50:16]SAM_PROTO_GetFieldsCounters [01:50:16]wFMCommunicate request_size=4 [01:50:16]MH_SAM_APDU [01:50:16]CAPDU: 80 13 00 00 [01:50:16]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 62 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6D 1E 00 00 0E 04 04 00 47 00 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 35 [01:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6D 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:50:16]wFMCommunicate OK [01:50:16]SAM_PROTO_GetFieldsCounters done [01:50:16]requested_item shift.num is exist - process it [01:50:16]requested_item shift.opened is exist - process it [01:50:16]req_shift_opened [01:50:16]FM_GetShiftState [01:50:16]SAM_PROTO_GetShiftState [01:50:16]wFMCommunicate request_size=4 [01:50:16]MH_SAM_APDU [01:50:16]CAPDU: 80 13 01 00 [01:50:16]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 0E 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 73 [01:50:16]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:50:16]wFMCommunicate OK [01:50:16]SAM_PROTO_GetShiftState done [01:50:16]FM_GetShiftState done [01:50:16]req_shift_opened done [01:50:16]requested_item shift.open_date is exist - process it [01:50:16]req_shift_open_date [01:50:16]req_shift_open_date done [01:50:16]produce_requested_data done [01:50:16]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7789,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [01:50:16]process_action_free close_receipt [01:50:16]json_value_free [01:50:16]json_value_free done [01:50:16]process_json_proto returns [01:50:16]Send response to host [01:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7789,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [01:50:16]free response buf [01:50:16]execute_script done [01:50:16]execute_script returns [01:50:16]free content buf [01:50:16]Sock 7.Close socket [01:50:16]Sock 7.Thread stoped [01:50:18]Connected sock=11 [01:50:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 99 DE 07 01 A2 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 C9 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6D 1E 00 00 35 04 06 00 56 7E AA 7F CA 51 F1 49 52 71 7B 5E 73 60 [01:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 F5 E1 47 00 45 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6D 1E 00 00 F4 03 04 00 15 74 F0 66 B6 04 01 00 00 13 A5 53 E1 F1 7D 9B AC [01:50:19]CommunicateWithHost err = 0 [01:50:19]CheckOFDResponse [01:50:19]1017 (14) - 77093643461234 [01:50:19]1041 (16) - 0000000002094258 [01:50:19]1040 (4) - 7789 [01:50:19]1012 (4) - 22.09.2024 19:46 [01:50:19]1206 (1) - 0 [01:50:19]OFD Sender: Remove packet 7789 [01:50:19]ProducePacketName [01:50:19]name=ofd_packets/00007789 [01:50:19]NVStorageDeleteData [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:26]recv_with_timeout no data received [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:30]recv_with_timeout no data received [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:03]recv_with_timeout no data received [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:12]recv_with_timeout no data received [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:18]accept exits with 10 [01:55:18]New connection [01:55:18]New thread 3066924388 created [01:55:18]Thread 3066781028 joined [01:55:18]Waiting for new connection... [01:55:18] Sock 10.Parse request [01:55:18]Sock 10.Check first char [01:55:18]Sock 10.First char is OK [01:55:18]request: POST /json_proto HTTP/1.0 [01:55:18]Method: POST [01:55:18]URL: /json_proto [01:55:18]Method is POST - this is cgi request [01:55:18]url: /json_proto [01:55:18]query_string will be loaded in cgi processing [01:55:18]execute_cgi json_proto POST (null) [01:55:18]execute_cgi path=json_proto method=POST [01:55:18]POST find Content-Length [01:55:18]Host: 172.17.47.195:8080 [01:55:18]Content-Length: 677 [01:55:18]Content-Type: application/json [01:55:18] [01:55:18]POST finish read [01:55:18]Found Content-Length = 677 [01:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:55:18]execute_script... [01:55: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)872084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:55:18]POST & json_proto [01:55:18]process_json_proto [01:55:18]json parsed OK: [01:55:18]protocol is kg_v1.0 [01:55:18]action value=close_receipt [01:55:18]process_action close_receipt [01:55:18]cmd_close_receipt [01:55:18]MH_GetDate [01:55:18]Write to MH i2c: F0 00 00 9B 00 8A [01:55:18]Write i2c OK [01:55:18]MH_I2C_Read... [01:55:18]Read from MH i2c: F0 [01:55:18]MH_I2C_Read... [01:55:18]Read from MH i2c: F0 09 00 [01:55:18]MH_I2C_Read... [01:55:18]Read from MH i2c: F0 09 00 9B 00 00 87 CA F0 66 96 2E 95 66 F9 [01:55:18]GetLastDocTimeStamp 1727056213 [01:55:18]current date 1727056519 [01:55:18]FM_GetShiftState [01:55:18]SAM_PROTO_GetShiftState [01:55:18]wFMCommunicate request_size=4 [01:55:18]MH_SAM_APDU [01:55:18]CAPDU: 80 13 01 00 [01:55:18]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [01:55:18]Write i2c OK [01:55:18]MH_I2C_Read... [01:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:18]Read from MH i2c: E2 [01:55:18]MH_I2C_Read... [01:55:18]Read from MH i2c: E2 0E 00 [01:55:18]MH_I2C_Read... [01:55:18]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 75 [01:55:18]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:55:18]wFMCommunicate OK [01:55:18]SAM_PROTO_GetShiftState done [01:55:18]FM_GetShiftState done [01:55:18]opened in 1727050822 [01:55:18]opened+sec_in_day 1727137222 [01:55:18]quantity*price = 50036 [01:55:18]sum+1 = 50037 [01:55:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 17 23.09.2024 01:55 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7790 ФПД: 158349022682190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T015519&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7790&fm=158349022682190&tin=02508201610067®Number=0000000000190446&sum=50000 [01:55:19]StoreToDocumentArchive [01:55:19]shift 71 fd 7790 [01:55:19]save to /storage/0071/doc_00007790 [01:55:19]save last doc name /storage/0071/doc_00007790 to /storage/kkm_last_doc_name [01:55:19]save OK [01:55:19]Clear old archive folders... [01:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:55:19]tlvbuf is 0144FC50 [01:55:19]SAM_PROTO_ClearQueue [01:55:19]wFMCommunicate request_size=4 [01:55:19]MH_SAM_APDU [01:55:19]CAPDU: 80 09 00 00 [01:55:19]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [01:55:19]Write i2c OK [01:55:19]MH_I2C_Read... [01:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:55:19]Read from MH i2c: E2 [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: E2 03 00 [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [01:55:19]RAPDU: 90 00 [01:55:19]wFMCommunicate OK [01:55:19]SAM_PROTO_ClearQueue done [01:55:19]KKMCreateOFDPacket [01:55:19]OFDProtocolAddRootSTLVToBuf [01:55:19]FM_MakeSignedData [01:55:19]FM_MakeSignedData [01:55:19]SAM_PROTO_SignData [01:55:19]wFMCommunicate request_size=4 [01:55:19]MH_SAM_APDU [01:55:19]CAPDU: 80 0D 01 02 [01:55:19]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [01:55:19]Write i2c OK [01:55:19]MH_I2C_Read... [01:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:55:19]Read from MH i2c: E2 [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: E2 03 00 [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [01:55:19]RAPDU: 90 00 [01:55:19]wFMCommunicate OK [01:55:19]wFMCommunicate request_size=255 [01:55:19]MH_SAM_APDU [01:55: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 CA F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6E 1E 00 00 35 04 06 00 90 [01:55:19]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 87 CA F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6E 1E 00 00 35 04 06 00 90 00 00 BA [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:20]Read from MH i2c: E2 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [01:55:20]RAPDU: 90 00 [01:55:20]wFMCommunicate OK [01:55:20]wFMCommunicate request_size=10 [01:55:20]MH_SAM_APDU [01:55:20]CAPDU: 80 0D 02 02 05 04 81 3F 5C 4E [01:55:20]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 04 81 3F 5C 4E 00 00 9E [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:20]Read from MH i2c: E2 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [01:55:20]RAPDU: 90 00 [01:55:20]wFMCommunicate OK [01:55:20]wFMCommunicate request_size=4 [01:55:20]MH_SAM_APDU [01:55:20]CAPDU: 80 0D 03 02 [01:55:20]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:55:20]Read from MH i2c: E2 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 0B 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 0B 00 AD 00 00 19 CB DC 6C E1 42 06 F2 90 00 70 [01:55:20]RAPDU: 19 CB DC 6C E1 42 06 F2 90 00 [01:55:20]wFMCommunicate OK [01:55:20]SAM_PROTO_SignData done [01:55:20]FM_MakeSignedData done [01:55:20]CreateOFDProtocolMessage [01:55:20]wFMCommunicate request_size=4 [01:55:20]MH_SAM_APDU [01:55:20]CAPDU: 80 11 00 00 [01:55:20]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:20]Read from MH i2c: E2 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 17 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 79 [01:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:55:20]wFMCommunicate OK [01:55:20]CreateOFDProtocolMessage done [01:55:20]OFDSenderStorePacket 7790 [01:55:20]StoreOFDPacket docnum=7790 [01:55:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 40 6D 07 01 05 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 CA F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6E 1E 00 00 35 04 06 00 90 04 81 3F 5C 4E 19 CB DC 6C E1 42 06 F2 [01:55:20]CheckFolder [01:55:20]dirname=/storage/ofd_packets [01:55:20]CheckFolder done [01:55:20]ProducePacketName [01:55:20]name=ofd_packets/00007790 [01:55:20]NVStorageSaveData ofd_packets/00007790 [01:55:20]File name is /storage/ofd_packets/00007790 [01:55:20]Write 301 bytes [01:55:20]NVStorageSaveData done [01:55:20]OFDSenderStorePacket done [01:55:20]KKMCreateOFDPacket done [01:55:20]NVStorageSaveData kkm_last_timestamp [01:55:20]File name is /storage/kkm_last_timestamp [01:55:20]Write 4 bytes [01:55:20]NVStorageSaveData done [01:55:20]ExternCall_PrintAddStr [01:55:20]wPrintStart [01:55:20]Write to MH i2c: 01 00 00 AF 00 AF [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: 01 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: 01 07 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [01:55:20]RasterBufferAndPrint [01:55:20]line Счет N : (1)872084 [01:55:20]line ИНН: 02508201610067 [01:55:20]line Контрольно-Кассовый Чек [01:55:20]line ПРОДАЖА [01:55:20]line ТРК (МРК, ГНК) : 43 [01:55:20]line Товар: 2710124130 [01:55:20]line Аи-92-К-5 [01:55:20]line 7.380 * 67.80 [01:55:20]line = 500.36 [01:55:20]line НДС 12% НСП 1% [01:55:20]line > о реализуемом товаре [01:55:20]line ОКРУГЛЕНИЕ: -0.36 [01:55:20]line ИТОГО: 500.00 [01:55:20]line Внесено: 500.00 [01:55:20]line СДАЧА: 0.00 [01:55:20]line НСП 1% : 4.43 [01:55:20]line НДС 12% : 53.14 [01:55:20]line Наличными: 500.00 [01:55:20]line Безнал.: 0.00 [01:55:20]line Место: АЗС № 137 "Партнер Нефть" [01:55:20]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [01:55:20]line СНО: Общий режим [01:55:20]line Чек 17 23.09.2024 01:55 [01:55:20]line Смена: 71 ФФД: 1.0 [01:55:20]line ЗНМ: 0300000041 [01:55:20]line РНМ: 0000000000190446 [01:55:20]line Версия ККМ: v1.0 [01:55:20]line ФМ: 0000000002094258 [01:55:20]line ФД: 7790 [01:55:20]line ФПД: 158349022682190 [01:55:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T015519&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7790&fm=158349022682190&tin=02508201610067®Number=0000000000190446&sum=50000 [01:55:20]OFD Sender: Processing packet 7790 [packets to send 51, broken 50] [01:55:20]ProducePacketName [01:55:20]name=ofd_packets/00007790 [01:55:20]OFD Sender: To server: pG, [01:55:20]CommunicateWithHost lk.salyk.kg:30040 [01:55:20]ConnectInit lk.salyk.kg [01:55:20]written 0, free lines is 4095 [01:55:21]Write to MH i2c: 01 00 00 DA 00 DA [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 07 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 ED 0C DA [01:55:21]RasterBufferAndPrint [01:55:21]line [01:55:21]line [01:55:21]line [01:55:21]line [01:55:21]line [01:55:21]written 0, free lines is 3315 [01:55:21]MH_Cut [01:55:21]Write to MH i2c: D1 01 00 E1 00 01 B3 [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: D1 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: D1 01 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: D1 01 00 E1 00 00 B2 [01:55:21]Write to MH i2c: 01 00 00 E2 00 E2 [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]*** Cut start [01:55:21]*** Purtial cut [01:55:21]*** Stage 1: CUTSNS_PIN = 1 [01:55:22]Read from MH i2c: 01 [01:55:22]MH_I2C_Read... [01:55:22]*** Stop cut motor [01:55:22]*** Cut end [01:55:22]Read from MH i2c: 01 07 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [01:55:22]process_action close_receipt done [01:55:22]requested_data is exist [01:55:22]produce_requested_data [01:55:22]requested_item fm.sn is exist - process it [01:55:22]wFMCommunicate request_size=4 [01:55:22]MH_SAM_APDU [01:55:22]CAPDU: 80 11 00 00 [01:55:22]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:22]Read from MH i2c: E2 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 17 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 AE [01:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [01:55:22]wFMCommunicate OK [01:55:22]requested_item fd.num is exist - process it [01:55:22]SAM_PROTO_GetFieldsCounters [01:55:22]wFMCommunicate request_size=4 [01:55:22]MH_SAM_APDU [01:55:22]CAPDU: 80 13 00 00 [01:55:22]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:55:22]Read from MH i2c: E2 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 62 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6E 1E 00 00 0E 04 04 00 47 00 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 84 [01:55:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6E 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:55:22]wFMCommunicate OK [01:55:22]SAM_PROTO_GetFieldsCounters done [01:55:22]requested_item shift.num is exist - process it [01:55:22]requested_item shift.opened is exist - process it [01:55:22]req_shift_opened [01:55:22]FM_GetShiftState [01:55:22]SAM_PROTO_GetShiftState [01:55:22]wFMCommunicate request_size=4 [01:55:22]MH_SAM_APDU [01:55:22]CAPDU: 80 13 01 00 [01:55:22]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:22]Read from MH i2c: E2 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 0E 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 BE [01:55:22]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [01:55:22]wFMCommunicate OK [01:55:22]SAM_PROTO_GetShiftState done [01:55:22]FM_GetShiftState done [01:55:22]req_shift_opened done [01:55:22]requested_item shift.open_date is exist - process it [01:55:22]req_shift_open_date [01:55:22]req_shift_open_date done [01:55:22]produce_requested_data done [01:55:22]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7790,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [01:55:22]process_action_free close_receipt [01:55:22]json_value_free [01:55:22]json_value_free done [01:55:22]process_json_proto returns [01:55:22]Send response to host [01:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7790,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [01:55:22]free response buf [01:55:22]execute_script done [01:55:22]execute_script returns [01:55:22]free content buf [01:55:22]Sock 10.Close socket [01:55:22]Sock 10.Thread stoped [01:55:26]recv_with_timeout no data received [01:55:29]Connected sock=11 [01:55:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 40 6D 07 01 05 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 CA F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6E 1E 00 00 35 04 06 00 90 04 81 3F 5C 4E 19 CB DC 6C E1 42 06 F2 [01:55:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 3F 5F 47 00 34 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 32 30 39 34 32 35 38 10 04 04 00 6E 1E 00 00 F4 03 04 00 4D 75 F0 66 B6 04 01 00 00 CA EA A1 D7 88 8C 1B F3 [01:55:34]CommunicateWithHost err = 0 [01:55:34]CheckOFDResponse [01:55:34]1017 (14) - 77093643461234 [01:55:34]1041 (16) - 0000000002094258 [01:55:34]1040 (4) - 7790 [01:55:34]1012 (4) - 22.09.2024 19:51 [01:55:34]1206 (1) - 0 [01:55:34]OFD Sender: Remove packet 7790 [01:55:34]ProducePacketName [01:55:34]name=ofd_packets/00007790 [01:55:34]NVStorageDeleteData [01:55:35]OFD Sender: No OFD packet to send [01:55:39]recv_with_timeout no data received [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:53]recv_with_timeout no data received [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:36]recv_with_timeout no data received [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:53]recv_with_timeout no data received [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:00]recv_with_timeout no data received [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:12]recv_with_timeout no data received [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:43]recv_with_timeout no data received [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:04]recv_with_timeout no data received [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:31]recv_with_timeout no data received [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:19:57]recv_with_timeout no data received [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:24]accept exits with 7 [02:22:24]New connection [02:22:24]New thread 3066781028 created [02:22:24]Thread 3066924388 joined [02:22:24]Waiting for new connection... [02:22:24] Sock 7.Parse request [02:22:24]Sock 7.Check first char [02:22:24]Sock 7.First char is OK [02:22:24]request: POST /json_proto HTTP/1.0 [02:22:24]Method: POST [02:22:24]URL: /json_proto [02:22:24]Method is POST - this is cgi request [02:22:24]url: /json_proto [02:22:24]query_string will be loaded in cgi processing [02:22:24]execute_cgi json_proto POST (null) [02:22:24]execute_cgi path=json_proto method=POST [02:22:24]POST find Content-Length [02:22:24]Host: 172.17.47.195:8080 [02:22:24]Content-Length: 687 [02:22:24]Content-Type: application/json [02:22:24] [02:22:24]POST finish read [02:22:24]Found Content-Length = 687 [02:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:24]execute_script... [02:22: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)872085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:24]POST & json_proto [02:22:24]process_json_proto [02:22:24]json parsed OK: [02:22:24]protocol is kg_v1.0 [02:22:24]action value=close_receipt [02:22:24]process_action close_receipt [02:22:24]cmd_close_receipt [02:22:24]MH_GetDate [02:22:24]Write to MH i2c: F0 00 00 E6 00 D5 [02:22:24]Write i2c OK [02:22:24]MH_I2C_Read... [02:22:24]Read from MH i2c: F0 [02:22:24]MH_I2C_Read... [02:22:24]Read from MH i2c: F0 09 00 [02:22:24]MH_I2C_Read... [02:22:24]Read from MH i2c: F0 09 00 E6 00 00 E1 D0 F0 66 96 2E 95 66 A4 [02:22:24]GetLastDocTimeStamp 1727056519 [02:22:24]current date 1727058145 [02:22:24]FM_GetShiftState [02:22:24]SAM_PROTO_GetShiftState [02:22:24]wFMCommunicate request_size=4 [02:22:24]MH_SAM_APDU [02:22:24]CAPDU: 80 13 01 00 [02:22:24]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [02:22:24]Write i2c OK [02:22:24]MH_I2C_Read... [02:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:24]Read from MH i2c: E2 [02:22:24]MH_I2C_Read... [02:22:24]Read from MH i2c: E2 0E 00 [02:22:24]MH_I2C_Read... [02:22:24]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 C0 [02:22:24]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [02:22:24]wFMCommunicate OK [02:22:24]SAM_PROTO_GetShiftState done [02:22:24]FM_GetShiftState done [02:22:24]opened in 1727050822 [02:22:24]opened+sec_in_day 1727137222 [02:22:24]quantity*price = 100050 [02:22:24]sum+1 = 100052 [02:22:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 18 23.09.2024 02:22 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7791 ФПД: 93012651440524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T022225&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7791&fm=93012651440524&tin=02508201610067®Number=0000000000190446&sum=100000 [02:22:25]StoreToDocumentArchive [02:22:25]shift 71 fd 7791 [02:22:25]save to /storage/0071/doc_00007791 [02:22:25]save last doc name /storage/0071/doc_00007791 to /storage/kkm_last_doc_name [02:22:25]save OK [02:22:25]Clear old archive folders... [02:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:22:25]tlvbuf is 013E8C30 [02:22:25]SAM_PROTO_ClearQueue [02:22:25]wFMCommunicate request_size=4 [02:22:25]MH_SAM_APDU [02:22:25]CAPDU: 80 09 00 00 [02:22:25]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [02:22:25]Write i2c OK [02:22:25]MH_I2C_Read... [02:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:22:26]Read from MH i2c: E2 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 03 00 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [02:22:26]RAPDU: 90 00 [02:22:26]wFMCommunicate OK [02:22:26]SAM_PROTO_ClearQueue done [02:22:26]KKMCreateOFDPacket [02:22:26]OFDProtocolAddRootSTLVToBuf [02:22:26]FM_MakeSignedData [02:22:26]FM_MakeSignedData [02:22:26]SAM_PROTO_SignData [02:22:26]wFMCommunicate request_size=4 [02:22:26]MH_SAM_APDU [02:22:26]CAPDU: 80 0D 01 02 [02:22:26]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [02:22:26]Write i2c OK [02:22:26]MH_I2C_Read... [02:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:22:26]Read from MH i2c: E2 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 03 00 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [02:22:26]RAPDU: 90 00 [02:22:26]wFMCommunicate OK [02:22:26]wFMCommunicate request_size=255 [02:22:26]MH_SAM_APDU [02:22: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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 E1 D0 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6F 1E 00 00 35 04 06 00 [02:22:26]Write to MH i2c: E2 02 01 F6 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 E1 D0 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6F 1E 00 00 35 04 06 00 00 00 C4 [02:22:26]Write i2c OK [02:22:26]MH_I2C_Read... [02:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:26]Read from MH i2c: E2 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 03 00 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [02:22:26]RAPDU: 90 00 [02:22:26]wFMCommunicate OK [02:22:26]wFMCommunicate request_size=11 [02:22:26]MH_SAM_APDU [02:22:26]CAPDU: 80 0D 02 02 06 54 98 32 0C 79 8C [02:22:26]Write to MH i2c: E2 0E 00 F7 00 80 0D 02 02 06 00 54 98 32 0C 79 8C 00 00 AC [02:22:26]Write i2c OK [02:22:26]MH_I2C_Read... [02:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:26]Read from MH i2c: E2 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 03 00 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [02:22:26]RAPDU: 90 00 [02:22:26]wFMCommunicate OK [02:22:26]wFMCommunicate request_size=4 [02:22:26]MH_SAM_APDU [02:22:26]CAPDU: 80 0D 03 02 [02:22:26]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [02:22:26]Write i2c OK [02:22:26]MH_I2C_Read... [02:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:22:26]Read from MH i2c: E2 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 0B 00 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 0B 00 F8 00 00 B1 5B 96 3E C5 8C 3D 02 90 00 E4 [02:22:26]RAPDU: B1 5B 96 3E C5 8C 3D 02 90 00 [02:22:26]wFMCommunicate OK [02:22:26]SAM_PROTO_SignData done [02:22:26]FM_MakeSignedData done [02:22:26]CreateOFDProtocolMessage [02:22:26]wFMCommunicate request_size=4 [02:22:26]MH_SAM_APDU [02:22:26]CAPDU: 80 11 00 00 [02:22:26]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [02:22:26]Write i2c OK [02:22:26]MH_I2C_Read... [02:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:26]Read from MH i2c: E2 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 17 00 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 C4 [02:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [02:22:26]wFMCommunicate OK [02:22:26]CreateOFDProtocolMessage done [02:22:26]OFDSenderStorePacket 7791 [02:22:26]StoreOFDPacket docnum=7791 [02:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 19 7B 08 01 8B 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 E1 D0 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6F 1E 00 00 35 04 06 00 54 98 32 0C 79 8C B1 5B 96 3E C5 8C 3D 02 [02:22:26]CheckFolder [02:22:26]dirname=/storage/ofd_packets [02:22:26]CheckFolder done [02:22:26]ProducePacketName [02:22:26]name=ofd_packets/00007791 [02:22:26]NVStorageSaveData ofd_packets/00007791 [02:22:26]File name is /storage/ofd_packets/00007791 [02:22:26]Write 302 bytes [02:22:26]NVStorageSaveData done [02:22:26]OFDSenderStorePacket done [02:22:26]KKMCreateOFDPacket done [02:22:26]NVStorageSaveData kkm_last_timestamp [02:22:26]File name is /storage/kkm_last_timestamp [02:22:26]Write 4 bytes [02:22:26]NVStorageSaveData done [02:22:26]ExternCall_PrintAddStr [02:22:26]wPrintStart [02:22:26]Write to MH i2c: 01 00 00 FA 00 FA [02:22:26]Write i2c OK [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: 01 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: 01 07 00 [02:22:26]MH_I2C_Read... [02:22:26]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [02:22:26]RasterBufferAndPrint [02:22:26]line Счет N : (1)872085 [02:22:26]line ИНН: 02508201610067 [02:22:26]line Контрольно-Кассовый Чек [02:22:26]line ПРОДАЖА [02:22:26]line ТРК (МРК, ГНК) : 34 [02:22:26]line Товар: 2710194210 [02:22:26]line ДТ(л)-К-4 [02:22:26]line 13.130 * 76.20 [02:22:26]line = 1000.51 [02:22:26]line НДС 12% НСП 1% [02:22:26]line > о реализуемом товаре [02:22:26]line ОКРУГЛЕНИЕ: -0.51 [02:22:26]line ИТОГО: 1000.00 [02:22:26]line Внесено: 1000.00 [02:22:26]line СДАЧА: 0.00 [02:22:26]line НСП 1% : 8.85 [02:22:26]line НДС 12% : 106.25 [02:22:26]line Наличными: 1000.00 [02:22:26]line Безнал.: 0.00 [02:22:26]line Место: АЗС № 137 "Партнер Нефть" [02:22:26]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [02:22:26]line СНО: Общий режим [02:22:26]line Чек 18 23.09.2024 02:22 [02:22:26]line Смена: 71 ФФД: 1.0 [02:22:26]line ЗНМ: 0300000041 [02:22:26]line РНМ: 0000000000190446 [02:22:26]line Версия ККМ: v1.0 [02:22:26]line ФМ: 0000000002094258 [02:22:26]line ФД: 7791 [02:22:26]line ФПД: 93012651440524 [02:22:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T022225&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7791&fm=93012651440524&tin=02508201610067®Number=0000000000190446&sum=100000 [02:22:26]OFD Sender: Processing packet 7791 [packets to send 51, broken 50] [02:22:26]ProducePacketName [02:22:26]name=ofd_packets/00007791 [02:22:26]OFD Sender: To server: pG, [02:22:26]CommunicateWithHost lk.salyk.kg:30040 [02:22:26]ConnectInit lk.salyk.kg [02:22:26]written 0, free lines is 4095 [02:22:27]Write to MH i2c: 01 00 00 25 01 26 [02:22:27]Write i2c OK [02:22:27]MH_I2C_Read... [02:22:27]Read from MH i2c: 01 [02:22:27]MH_I2C_Read... [02:22:27]Read from MH i2c: 01 07 00 [02:22:27]MH_I2C_Read... [02:22:27]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 F0 0C 29 [02:22:27]RasterBufferAndPrint [02:22:27]line [02:22:27]line [02:22:27]line [02:22:27]line [02:22:27]line [02:22:27]written 0, free lines is 3318 [02:22:27]MH_Cut [02:22:27]Write to MH i2c: D1 01 00 2C 01 01 FF [02:22:27]Write i2c OK [02:22:27]MH_I2C_Read... [02:22:27]Read from MH i2c: D1 [02:22:27]MH_I2C_Read... [02:22:27]Read from MH i2c: D1 01 00 [02:22:27]MH_I2C_Read... [02:22:27]Read from MH i2c: D1 01 00 2C 01 00 FE [02:22:27]Write to MH i2c: 01 00 00 2D 01 2E [02:22:27]Write i2c OK [02:22:27]MH_I2C_Read... [02:22:27]Connected sock=10 [02:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 01 00 00 19 7B 08 01 8B 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 E1 D0 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 6F 1E 00 00 35 04 06 00 54 98 32 0C 79 8C B1 5B 96 3E C5 8C 3D 02 [02:22:28]*** Cut start [02:22:28]*** Purtial cut [02:22:28]*** Stage 1: CUTSNS_PIN = 1 [02:22:28]Read from MH i2c: 01 [02:22:28]MH_I2C_Read... [02:22:28]*** Stop cut motor [02:22:28]*** Cut end [02:22:28]Read from MH i2c: 01 07 00 [02:22:28]MH_I2C_Read... [02:22:28]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [02:22:28]process_action close_receipt done [02:22:28]requested_data is exist [02:22:28]produce_requested_data [02:22:28]requested_item fm.sn is exist - process it [02:22:28]wFMCommunicate request_size=4 [02:22:28]MH_SAM_APDU [02:22:28]CAPDU: 80 11 00 00 [02:22:28]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [02:22:28]Write i2c OK [02:22:28]MH_I2C_Read... [02:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:28]Read from MH i2c: E2 [02:22:28]MH_I2C_Read... [02:22:28]Read from MH i2c: E2 17 00 [02:22:28]MH_I2C_Read... [02:22:28]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 FA [02:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [02:22:28]wFMCommunicate OK [02:22:28]requested_item fd.num is exist - process it [02:22:28]SAM_PROTO_GetFieldsCounters [02:22:28]wFMCommunicate request_size=4 [02:22:28]MH_SAM_APDU [02:22:28]CAPDU: 80 13 00 00 [02:22:28]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [02:22:28]Write i2c OK [02:22:28]MH_I2C_Read... [02:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:22:28]Read from MH i2c: E2 [02:22:28]MH_I2C_Read... [02:22:28]Read from MH i2c: E2 62 00 [02:22:28]MH_I2C_Read... [02:22:28]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6F 1E 00 00 0E 04 04 00 47 00 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 D4 [02:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 6F 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:22:28]wFMCommunicate OK [02:22:28]SAM_PROTO_GetFieldsCounters done [02:22:28]requested_item shift.num is exist - process it [02:22:28]requested_item shift.opened is exist - process it [02:22:28]req_shift_opened [02:22:28]FM_GetShiftState [02:22:28]SAM_PROTO_GetShiftState [02:22:28]wFMCommunicate request_size=4 [02:22:28]MH_SAM_APDU [02:22:28]CAPDU: 80 13 01 00 [02:22:28]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [02:22:28]Write i2c OK [02:22:28]MH_I2C_Read... [02:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:28]Read from MH i2c: E2 [02:22:28]MH_I2C_Read... [02:22:28]Read from MH i2c: E2 0E 00 [02:22:28]MH_I2C_Read... [02:22:28]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 0A [02:22:28]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [02:22:28]wFMCommunicate OK [02:22:28]SAM_PROTO_GetShiftState done [02:22:28]FM_GetShiftState done [02:22:28]req_shift_opened done [02:22:28]requested_item shift.open_date is exist - process it [02:22:28]req_shift_open_date [02:22:28]req_shift_open_date done [02:22:28]produce_requested_data done [02:22:28]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7791,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [02:22:28]process_action_free close_receipt [02:22:28]json_value_free [02:22:28]json_value_free done [02:22:28]process_json_proto returns [02:22:28]Send response to host [02:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7791,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [02:22:28]free response buf [02:22:28]execute_script done [02:22:28]execute_script returns [02:22:28]free content buf [02:22:28]Sock 7.Close socket [02:22:28]Sock 7.Thread stoped [02:22:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 25 A8 47 00 3B 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 32 30 39 34 32 35 38 10 04 04 00 6F 1E 00 00 F4 03 04 00 9F 7B F0 66 B6 04 01 00 00 0C 95 33 98 0C DE E1 7D [02:22:31]CommunicateWithHost err = 0 [02:22:31]CheckOFDResponse [02:22:31]1017 (14) - 77093643461234 [02:22:31]1041 (16) - 0000000002094258 [02:22:31]1040 (4) - 7791 [02:22:31]1012 (4) - 22.09.2024 20:18 [02:22:31]1206 (1) - 0 [02:22:31]OFD Sender: Remove packet 7791 [02:22:31]ProducePacketName [02:22:31]name=ofd_packets/00007791 [02:22:31]NVStorageDeleteData [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:22]recv_with_timeout no data received [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:37]recv_with_timeout no data received [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:24]recv_with_timeout no data received [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:19]recv_with_timeout no data received [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:30:58]accept exits with 9 [02:30:58]New connection [02:30:58]New thread 3066924388 created [02:30:58]Thread 3066781028 joined [02:30:58]Waiting for new connection... [02:30:58] Sock 9.Parse request [02:30:58]Sock 9.Check first char [02:30:58]Sock 9.First char is OK [02:30:58]request: POST /json_proto HTTP/1.0 [02:30:58]Method: POST [02:30:58]URL: /json_proto [02:30:58]Method is POST - this is cgi request [02:30:58]url: /json_proto [02:30:58]query_string will be loaded in cgi processing [02:30:58]execute_cgi json_proto POST (null) [02:30:58]execute_cgi path=json_proto method=POST [02:30:58]POST find Content-Length [02:30:58]Host: 172.17.47.195:8080 [02:30:58]Content-Length: 682 [02:30:58]Content-Type: application/json [02:30:58] [02:30:58]POST finish read [02:30:58]Found Content-Length = 682 [02:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:30:58]execute_script... [02:30: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)872086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:30:58]POST & json_proto [02:30:58]process_json_proto [02:30:58]json parsed OK: [02:30:58]protocol is kg_v1.0 [02:30:58]action value=close_receipt [02:30:58]process_action close_receipt [02:30:58]cmd_close_receipt [02:30:58]MH_GetDate [02:30:58]Write to MH i2c: F0 00 00 31 01 21 [02:30:58]Write i2c OK [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: F0 [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: F0 09 00 [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: F0 09 00 31 01 00 E3 D2 F0 66 96 2E 95 66 F4 [02:30:58]GetLastDocTimeStamp 1727058145 [02:30:58]current date 1727058659 [02:30:58]FM_GetShiftState [02:30:58]SAM_PROTO_GetShiftState [02:30:58]wFMCommunicate request_size=4 [02:30:58]MH_SAM_APDU [02:30:58]CAPDU: 80 13 01 00 [02:30:58]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [02:30:58]Write i2c OK [02:30:58]MH_I2C_Read... [02:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:58]Read from MH i2c: E2 [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: E2 0E 00 [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 0C [02:30:58]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [02:30:58]wFMCommunicate OK [02:30:58]SAM_PROTO_GetShiftState done [02:30:58]FM_GetShiftState done [02:30:58]opened in 1727050822 [02:30:58]opened+sec_in_day 1727137222 [02:30:58]quantity*price = 100005 [02:30:58]sum+1 = 100006 [02:30:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 137 "Партнер Нефть" Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 СНО: Общий режим Чек 19 23.09.2024 02:30 Смена: 71 ФФД: 1.0 ЗНМ: 0300000041 РНМ: 0000000000190446 Версия ККМ: v1.0 ФМ: 0000000002094258 ФД: 7792 ФПД: 187399606417853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T023059&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7792&fm=187399606417853&tin=02508201610067®Number=0000000000190446&sum=100000 [02:30:59]StoreToDocumentArchive [02:30:59]shift 71 fd 7792 [02:30:59]save to /storage/0071/doc_00007792 [02:30:59]save last doc name /storage/0071/doc_00007792 to /storage/kkm_last_doc_name [02:30:59]save OK [02:30:59]Clear old archive folders... [02:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:30:59]tlvbuf is 01441AC0 [02:30:59]SAM_PROTO_ClearQueue [02:30:59]wFMCommunicate request_size=4 [02:30:59]MH_SAM_APDU [02:30:59]CAPDU: 80 09 00 00 [02:30:59]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [02:30:59]Write i2c OK [02:30:59]MH_I2C_Read... [02:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:30:59]Read from MH i2c: E2 [02:30:59]MH_I2C_Read... [02:30:59]Read from MH i2c: E2 03 00 [02:30:59]MH_I2C_Read... [02:30:59]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [02:30:59]RAPDU: 90 00 [02:30:59]wFMCommunicate OK [02:30:59]SAM_PROTO_ClearQueue done [02:30:59]KKMCreateOFDPacket [02:30:59]OFDProtocolAddRootSTLVToBuf [02:30:59]FM_MakeSignedData [02:30:59]FM_MakeSignedData [02:30:59]SAM_PROTO_SignData [02:30:59]wFMCommunicate request_size=4 [02:30:59]MH_SAM_APDU [02:30:59]CAPDU: 80 0D 01 02 [02:30:59]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [02:30:59]Write i2c OK [02:30:59]MH_I2C_Read... [02:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:30:59]Read from MH i2c: E2 [02:30:59]MH_I2C_Read... [02:30:59]Read from MH i2c: E2 03 00 [02:30:59]MH_I2C_Read... [02:30:59]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [02:30:59]RAPDU: 90 00 [02:30:59]wFMCommunicate OK [02:30:59]wFMCommunicate request_size=255 [02:30:59]MH_SAM_APDU [02:30: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E3 D2 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 70 1E 00 00 35 04 06 00 AA [02:30:59]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E3 D2 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 70 1E 00 00 35 04 06 00 AA 00 00 62 [02:30:59]Write i2c OK [02:30:59]MH_I2C_Read... [02:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:59]Read from MH i2c: E2 [02:30:59]MH_I2C_Read... [02:30:59]Read from MH i2c: E2 03 00 [02:30:59]MH_I2C_Read... [02:30:59]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [02:30:59]RAPDU: 90 00 [02:30:59]wFMCommunicate OK [02:30:59]wFMCommunicate request_size=10 [02:30:59]MH_SAM_APDU [02:30:59]CAPDU: 80 0D 02 02 05 70 5E F8 B9 BD [02:30:59]Write to MH i2c: E2 0D 00 42 01 80 0D 02 02 05 00 70 5E F8 B9 BD 00 00 03 [02:30:59]Write i2c OK [02:30:59]MH_I2C_Read... [02:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:00]Read from MH i2c: E2 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: E2 03 00 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [02:31:00]RAPDU: 90 00 [02:31:00]wFMCommunicate OK [02:31:00]wFMCommunicate request_size=4 [02:31:00]MH_SAM_APDU [02:31:00]CAPDU: 80 0D 03 02 [02:31:00]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [02:31:00]Write i2c OK [02:31:00]MH_I2C_Read... [02:31:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:31:00]Read from MH i2c: E2 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: E2 0B 00 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: E2 0B 00 43 01 00 AB 41 CA 91 EC 36 BC F4 90 00 D9 [02:31:00]RAPDU: AB 41 CA 91 EC 36 BC F4 90 00 [02:31:00]wFMCommunicate OK [02:31:00]SAM_PROTO_SignData done [02:31:00]FM_MakeSignedData done [02:31:00]CreateOFDProtocolMessage [02:31:00]wFMCommunicate request_size=4 [02:31:00]MH_SAM_APDU [02:31:00]CAPDU: 80 11 00 00 [02:31:00]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [02:31:00]Write i2c OK [02:31:00]MH_I2C_Read... [02:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:00]Read from MH i2c: E2 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: E2 17 00 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 10 [02:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [02:31:00]wFMCommunicate OK [02:31:00]CreateOFDProtocolMessage done [02:31:00]OFDSenderStorePacket 7792 [02:31:00]StoreOFDPacket docnum=7792 [02:31:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 51 23 07 01 A3 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E3 D2 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 70 1E 00 00 35 04 06 00 AA 70 5E F8 B9 BD AB 41 CA 91 EC 36 BC F4 [02:31:00]CheckFolder [02:31:00]dirname=/storage/ofd_packets [02:31:00]CheckFolder done [02:31:00]ProducePacketName [02:31:00]name=ofd_packets/00007792 [02:31:00]NVStorageSaveData ofd_packets/00007792 [02:31:00]File name is /storage/ofd_packets/00007792 [02:31:00]Write 301 bytes [02:31:00]NVStorageSaveData done [02:31:00]OFDSenderStorePacket done [02:31:00]KKMCreateOFDPacket done [02:31:00]NVStorageSaveData kkm_last_timestamp [02:31:00]File name is /storage/kkm_last_timestamp [02:31:00]Write 4 bytes [02:31:00]NVStorageSaveData done [02:31:00]ExternCall_PrintAddStr [02:31:00]wPrintStart [02:31:00]Write to MH i2c: 01 00 00 45 01 46 [02:31:00]Write i2c OK [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: 01 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: 01 07 00 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [02:31:00]RasterBufferAndPrint [02:31:00]line Счет N : (1)872086 [02:31:00]line ИНН: 02508201610067 [02:31:00]line Контрольно-Кассовый Чек [02:31:00]line ПРОДАЖА [02:31:00]line ТРК (МРК, ГНК) : 43 [02:31:00]line Товар: 2710124130 [02:31:00]line Аи-92-К-5 [02:31:00]line 14.750 * 67.80 [02:31:00]line = 1000.05 [02:31:00]line НДС 12% НСП 1% [02:31:00]line > о реализуемом товаре [02:31:00]line ОКРУГЛЕНИЕ: -0.05 [02:31:00]line ИТОГО: 1000.00 [02:31:00]line Внесено: 1000.00 [02:31:00]line СДАЧА: 0.00 [02:31:00]line НСП 1% : 8.85 [02:31:00]line НДС 12% : 106.20 [02:31:00]line Наличными: 1000.00 [02:31:00]line Безнал.: 0.00 [02:31:00]line Место: АЗС № 137 "Партнер Нефть" [02:31:00]line Адрес: 720000, с. Питомник, Дон-Булак а/а, Узгенский район, 40.753654,73.381554 [02:31:00]line СНО: Общий режим [02:31:00]line Чек 19 23.09.2024 02:30 [02:31:00]line Смена: 71 ФФД: 1.0 [02:31:00]line ЗНМ: 0300000041 [02:31:00]line РНМ: 0000000000190446 [02:31:00]line Версия ККМ: v1.0 [02:31:00]line ФМ: 0000000002094258 [02:31:00]line ФД: 7792 [02:31:00]line ФПД: 187399606417853 [02:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T023059&type=1&operation_type=1&fn_number=0000000002094258&fd_number=7792&fm=187399606417853&tin=02508201610067®Number=0000000000190446&sum=100000 [02:31:00]OFD Sender: Processing packet 7792 [packets to send 51, broken 50] [02:31:00]ProducePacketName [02:31:00]name=ofd_packets/00007792 [02:31:00]OFD Sender: To server: pG, [02:31:00]CommunicateWithHost lk.salyk.kg:30040 [02:31:00]ConnectInit lk.salyk.kg [02:31:00]written 0, free lines is 4095 [02:31:00]Write to MH i2c: 01 00 00 70 01 71 [02:31:00]Write i2c OK [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: 01 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: 01 07 00 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 FB 0C 7F [02:31:00]RasterBufferAndPrint [02:31:00]line [02:31:00]line [02:31:00]line [02:31:00]line [02:31:00]line [02:31:00]written 0, free lines is 3329 [02:31:00]MH_Cut [02:31:00]Write to MH i2c: D1 01 00 77 01 01 4A [02:31:00]Write i2c OK [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: D1 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: D1 01 00 [02:31:00]MH_I2C_Read... [02:31:00]Read from MH i2c: D1 01 00 77 01 00 49 [02:31:00]Write to MH i2c: 01 00 00 78 01 79 [02:31:00]Write i2c OK [02:31:00]MH_I2C_Read... [02:31:01]Connected sock=7 [02:31:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0F 01 00 00 51 23 07 01 A3 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E3 D2 F0 66 0E 04 04 00 47 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 70 1E 00 00 35 04 06 00 AA 70 5E F8 B9 BD AB 41 CA 91 EC 36 BC F4 [02:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 4F 00 00 00 E9 FD 47 00 3F 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 10 04 04 00 70 1E 00 00 F4 03 04 00 A0 7D F0 66 B6 04 01 00 00 FB 31 0C 75 B4 B4 B3 9A [02:31:01]CommunicateWithHost err = 0 [02:31:01]CheckOFDResponse [02:31:01]1017 (14) - 77093643461234 [02:31:01]1041 (16) - 0000000002094258 [02:31:01]1040 (4) - 7792 [02:31:01]1012 (4) - 22.09.2024 20:27 [02:31:01]1206 (1) - 0 [02:31:01]OFD Sender: Remove packet 7792 [02:31:01]ProducePacketName [02:31:01]name=ofd_packets/00007792 [02:31:01]NVStorageDeleteData [02:31:01]*** Cut start [02:31:01]*** Purtial cut [02:31:01]*** Stage 1: CUTSNS_PIN = 1 [02:31:01]Read from MH i2c: 01 [02:31:01]MH_I2C_Read... [02:31:01]*** Stop cut motor [02:31:01]*** Cut end [02:31:01]Read from MH i2c: 01 07 00 [02:31:01]MH_I2C_Read... [02:31:01]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [02:31:01]process_action close_receipt done [02:31:01]requested_data is exist [02:31:01]produce_requested_data [02:31:01]requested_item fm.sn is exist - process it [02:31:01]wFMCommunicate request_size=4 [02:31:01]MH_SAM_APDU [02:31:01]CAPDU: 80 11 00 00 [02:31:01]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [02:31:01]Write i2c OK [02:31:01]MH_I2C_Read... [02:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:01]Read from MH i2c: E2 [02:31:01]MH_I2C_Read... [02:31:01]Read from MH i2c: E2 17 00 [02:31:01]MH_I2C_Read... [02:31:01]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 45 [02:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 90 00 [02:31:01]wFMCommunicate OK [02:31:01]requested_item fd.num is exist - process it [02:31:01]SAM_PROTO_GetFieldsCounters [02:31:01]wFMCommunicate request_size=4 [02:31:01]MH_SAM_APDU [02:31:01]CAPDU: 80 13 00 00 [02:31:01]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [02:31:01]Write i2c OK [02:31:01]MH_I2C_Read... [02:31:02]OFD Sender: No OFD packet to send [02:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:31:02]Read from MH i2c: E2 [02:31:02]MH_I2C_Read... [02:31:02]Read from MH i2c: E2 62 00 [02:31:02]MH_I2C_Read... [02:31:02]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 70 1E 00 00 0E 04 04 00 47 00 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 23 [02:31:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 39 30 34 34 36 10 04 04 00 70 1E 00 00 0E 04 04 00 47 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:31:02]wFMCommunicate OK [02:31:02]SAM_PROTO_GetFieldsCounters done [02:31:02]requested_item shift.num is exist - process it [02:31:02]requested_item shift.opened is exist - process it [02:31:02]req_shift_opened [02:31:02]FM_GetShiftState [02:31:02]SAM_PROTO_GetShiftState [02:31:02]wFMCommunicate request_size=4 [02:31:02]MH_SAM_APDU [02:31:02]CAPDU: 80 13 01 00 [02:31:02]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [02:31:02]Write i2c OK [02:31:02]MH_I2C_Read... [02:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:31:02]Read from MH i2c: E2 [02:31:02]MH_I2C_Read... [02:31:02]Read from MH i2c: E2 0E 00 [02:31:02]MH_I2C_Read... [02:31:02]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 46 B4 F0 66 00 00 00 00 90 00 55 [02:31:02]RAPDU: 09 00 01 46 B4 F0 66 00 00 00 00 90 00 [02:31:02]wFMCommunicate OK [02:31:02]SAM_PROTO_GetShiftState done [02:31:02]FM_GetShiftState done [02:31:02]req_shift_opened done [02:31:02]requested_item shift.open_date is exist - process it [02:31:02]req_shift_open_date [02:31:02]req_shift_open_date done [02:31:02]produce_requested_data done [02:31:02]produce_requested_data return {"fm.sn":"0000000002094258","fd.num":7792,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822} [02:31:02]process_action_free close_receipt [02:31:02]json_value_free [02:31:02]json_value_free done [02:31:02]process_json_proto returns [02:31:02]Send response to host [02:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094258","fd.num":7792,"shift.num":71,"shift.opened":1,"shift.open_date":1727050822}}} [02:31:02]free response buf [02:31:02]execute_script done [02:31:02]execute_script returns [02:31:02]free content buf [02:31:02]Sock 9.Close socket [02:31:02]Sock 9.Thread stoped [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:18]recv_with_timeout no data received [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:40]recv_with_timeout no data received [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:11]recv_with_timeout no data received [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:12]recv_with_timeout no data received [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:21]recv_with_timeout no data received [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]recv_with_timeout no data received [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:40:58]recv_with_timeout no data received [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:18]recv_with_timeout no data received [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:31]recv_with_timeout no data received [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:20]recv_with_timeout no data received [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:38]recv_with_timeout no data received [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]recv_with_timeout no data received [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:56]recv_with_timeout no data received [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:37]recv_with_timeout no data received [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:14]recv_with_timeout no data received [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:49]recv_with_timeout no data received [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:56]recv_with_timeout no data received [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:09]recv_with_timeout no data received [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send